?
Categories
Account

In ADO.NET, which class is used to represent a connection to a database?

₹0.0
Login to Download
  • 📥 Instant PDF Download
  • ♾ Lifetime Access
  • 🛡 Secure & Original Content

What’s inside this PDF?

Question: In ADO.NET, which class is used to represent a connection to a database?

Options:

  1. SqlConnection
  2. SqlCommand
  3. SqlDataAdapter
  4. SqlDataReader

Correct Answer: SqlConnection

Solution:

SqlConnection class is used to establish a connection to a SQL Server database in ADO.NET.

In ADO.NET, which class is used to represent a connection to a database?

Practice Questions

Q1
In ADO.NET, which class is used to represent a connection to a database?
  1. SqlConnection
  2. SqlCommand
  3. SqlDataAdapter
  4. SqlDataReader

Questions & Step-by-Step Solutions

In ADO.NET, which class is used to represent a connection to a database?
  • ADO.NET – ADO.NET is a set of classes that expose data access services for .NET Framework programmers.
  • SqlConnection Class – The SqlConnection class is specifically designed to connect to SQL Server databases.
Soulshift Feedback ×

On a scale of 0–10, how likely are you to recommend The Soulshift Academy?

Not likely Very likely
Home Practice Performance eBooks