Quote:
quote:Originally posted by bmains
Hello,
The problem is the quotes around parameters in the query:
N'@username and password=N'@password
You shouldn't have those ' in the query; the ' will throw it off. Parameters don't use the ', otherwise it assumes the user name is '@username', Although with no ending quote that will throw an error also.
It should be:
username = @username and password = @password
Someone correct me if I'm wrong.
Brian and Others That Notifies Me
|
thanx to brian.
but i examined it the only way that i can correctly insert data into a remote sql server database and when i ommite it the data was ureadable and substituted (or) each character replaced with a '?'
i must mentioned that i am using farsi or arabic collation to insert farsi data into a sql server database and the only solution that i found the i use the 'N Switch in my queries.
ant one have using this switch or this type experience.
i have had this problem ASP And Not In ASP.NET(ADO.NET) I dont know that i will encoutred such a problem in ASP.NET Or No But I think its a Query And It is Correct For All Type Of Query And I Use It Succefully In Query Analyzer And In The ASP And I Get The Proper Goal.
But I Must Check It In New Platform(.Net) And I Must Examine that is it work correct witnout using this switch with the Farsi Locals.
Thanx TO All:)
Any One To Help Me.