Joe Wilson

Joe Wilson

  • NA
  • 7.8k
  • 434.5k

How can I solve the connection error in SQL ?

Jun 29 2015 3:25 PM
I have created a database in SQL but when I want to access it by C# but the compiler can't access and open database.
 
the error is :
 
An unhandled exception of type 'System.Data.SqlClient.SqlException' occurred in System.Data.dll

Additional information: Cannot open database "Restaurant" requested by the login. The login failed.

Login failed for user 'Milad0007\Milad.H'
 
 
Please guide me to solve it.

Answers (14)