SqlConnection sc;SqlCommand scmd;string strcon = (@"Persist Security Info=False;User ID=sa;password=systems;Initial Catalog=ODMS;Data Source=SQLEXPRESS"); sc = new SqlConnection(strcon); try { sc.Open(); } catch (Exception ex) { MessageBox.Show(ex.Message); }