Click here to Skip to main content
15,885,278 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Data.SqlClient.SqlException: Login failed for user 'sa'.


if (conn.State != ConnectionState.Open)


Line 345: conn.Open();
Line 346:
Line 347: cmd.Connection = conn;
Posted
Updated 4-May-11 3:39am
v2
Comments
fjdiewornncalwe 4-May-11 8:18am    
Your Exception Details tell you exactly what is wrong.

The issue here is that password of "sa" user is not correct. Due to which it is failing to query database with user "sa"
 
Share this answer
 
Either the password is wrong for the specified user ID, or the specified user ID isn't a valid one for the database you're trrying to conect to. The exception told you exactly what was wrong.
 
Share this answer
 
Check your database userID password.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900