Abhishek  Jaiswal

Abhishek Jaiswal

  • 90
  • 19.8k
  • 9.5m

Error in connectivity

Jul 9 2014 12:17 AM
hello!
 
 am getting this error in select operation (button click event)

Cannot open database "SignUp" requested by the login. The login failed.
Login failed for user 'ABC\abhishekj'.

 
Line 29:         string strcon = ConfigurationManager.ConnectionStrings["connection"].ConnectionString; 
Line 30: SqlConnection con = new SqlConnection(strcon);
Line 31: con.Open();
Line 32: SqlCommand cmd = new SqlCommand("SELECT * FROM SignUp", con);
Line 33: DataSet ds = new DataSet("SignUpDataSet");

Please tell me, How to resolve it.
 

Answers (7)