st = "Data source =eduDotNet-Pc06; Initial Catalog=My_database; Integrated security=true"; cn = new SqlConnection(st); try { cn.Open(); } catch (Exception e1) { MessageBox.Show(e1.Message); }
st = "Data source =eduDotNet-Pc06; Initial Catalog=My_database; Integrated security=SSPI"; User Id=myUsername; Password=myPassword;
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)