1.

How will you create the SQL Server Connection Objects in Code? Choose the correct option.

A. SqlConnection con = new SqlConnection ("Data Source=ServerName; Initial Catalog=DatabaseName;Integrated Security=True");
B. SqlConnection con = new SqlConnection();
C. using (SqlConnection con = new SqlConnection("Data Source=ServerName; Initial Catalog=DatabaseName;Integrated Security=True"))
D. All of the above codes are correct.
Answer» E.


Discussion

No Comment Found

Related MCQs