private void Form1_Load(object sender, EventArgs e) { SqlConnection con = new SqlConnection(); using (con) { con.ConnectionString = @"Data Source =server;Initial Catalog = pubs;userid=sa;password=password"; con.Open(); MessageBox.Show(con.State.ToString()); } MessageBox.Show(con.State.ToString()); } What is the output?

 Posted by deccansoft on 8/5/2010 | Category: C# Interview questions | Views: 3081


Closed. Open Closed.


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response