Incorrect syntax near 'ÿ' | SQL Server Performance Forums

SQL Server Performance Forum – Threads Archive

Incorrect syntax near ‘ÿ’

I am trying to run scripts using OSQL/ISQL. Both time I am getting the error "Incorrect syntax near ‘ÿ’". If I copy the scripts on Query Analyser, it works perfectly fine. there seems no foreign character in the scripts also. Please Help
Harsh
Interestingly
I was using /U /P to define the User Name etc. I changed that to -U -P, and its working fine now. Any explanations?
I believe /U/P were used in previous version of SQL and from SQL 2K its replaced with -. Satya SKJ
Moderator
http://www.SQL-Server-Performance.Com/forum
This posting is provided “AS IS” with no rights for the sake of knowledge sharing.
]]>