locked
Error in SqlConnection RRS feed

  • Question

  • Hi can any one help me why is error occured .....?

    and i am using conneciton in this way..

     

    SqlConnection con = new SqlConnection(ConfigurationSettings.AppSettings["ConnectionStringNew"]);

    Error is

    Cannot open database "aTestingDB" requested by the login. The login failed. Login failed for user 'KBBALOCH-PC\KBBALOCH'.

     

    And an other question i s

     

    I am using dataset and update the dataset column like below and when i call it , it show th updated result in gridview . but it is not updating the database why can nay one help me....?

     

    ds.Tables[0].Rows[9]["name"] = "Khuda bux";

    • Moved by edhickey Tuesday, June 14, 2011 3:18 PM (From:.NET 3.0/3.5 Windows Workflow Foundation)
    Tuesday, June 14, 2011 10:48 AM

Answers