7
Answers

Error in connectivity

Abhishek  Jaiswal

Abhishek Jaiswal

10y
805
1
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)