Interviews - C# Corner

Sandeep Soni
Valid Code for Creating a SqlConnection Object in ADO.NET would be : a) SqlConnection conn = new SqlConnection( "Data Source=(local);Initial Catalog=Northwind;Integrated Security=SSPI"); b) SqlConnect conn = new SqlConnection( "Data Source=(local);Initial Catalog=Northwind;Integrated Security=SSPI"); c) SqlConnection conn = new SqlConnect( "Data Source=(local);Initial Catalog=Northwind;Integrated Security=SSPI"); d) All of the mentioned
By Sandeep Soni in .NET onNov 15 2018
  • Hidayat Sawardekar
    Feb, 2019 6

    option a) is valid keyword SqlConnect used in b) and c) is not valid keyword for connection declaration .

    • 1
  • Rupesh Verma
    Jan, 2019 19

    a) SqlConnection conn = new SqlConnection( "Data Source=(local);Initial Catalog=Northwind;Integrated Security=SSPI");

    • 1
  • nitin ware
    Sep, 2019 15

    Option A

    • 0
  • Kaushik Dudhat
    Jul, 2019 9

    Option a) is right answer.

    • 0
  • Manoth Kumar
    Nov, 2018 26

    option a.

    • 0

Most Popular Companies

Most Popular Job Functions

MOST LIKED QUESTIONS