G
Guest
Hi,
I am getting a 'Login failed for user 'myusername'' when executing an update
query via a web service.
I am using the SqlCommand's ExecuteNonQuery function, I simply give it the
connection string and query.
I have given update and select permissions to the user.
If I use the same connection string but add the variables to the parameters
collection of the SqlCommand object, it works.
So the question is what do I have to do to allow an update query to run?
Many thanks for any pointers, suggestions etc.
Regards,
Steve.
I am getting a 'Login failed for user 'myusername'' when executing an update
query via a web service.
I am using the SqlCommand's ExecuteNonQuery function, I simply give it the
connection string and query.
I have given update and select permissions to the user.
If I use the same connection string but add the variables to the parameters
collection of the SqlCommand object, it works.
So the question is what do I have to do to allow an update query to run?
Many thanks for any pointers, suggestions etc.
Regards,
Steve.