مشكلة اثناء الاتصال بقاعدة البيانات وهي
can't open database ----- requst by the login the login faild
الكود :
//INFO UPDATE
string connetionString1 = null;
SqlConnection connection1;
SqlDataAdapter adapter1 = new SqlDataAdapter();
stringsql1 = null;
connetionString1 = (@"server=.\SQLEXPRESS; database=InsData; integrated security= true");
connection1 = new SqlConnection(connetionString1);
sql1 = "update instinfo set instinfoNAME = textBox2.text where instinfoID ='1'";
try
{
connection1.Open();
adapter1.UpdateCommand = connection1.CreateCommand();
adapter1.UpdateCommand.CommandText = sql1;
adapter1.UpdateCommand.ExecuteNonQuery();
MessageBox.Show("Row updated !! ");
}
catch (Exception ex)
{
MessageBox.Show(ex.ToString());
}
//