Which method is used to open a database connection in ADO.NET?
- Begin()
- Connect()
- Open()
- Start()
The method used to open a database connection in ADO.NET is Open(). Calling this method establishes a connection to the database specified by the connection string associated with the connection object.
Loading...
Related Quiz
- What is the difference between EntityState.Added and EntityState.Modified in Entity Framework?
- You need to make changes to the database schema while keeping the existing data intact. Which feature of Entity Framework Code-First should you use?
- How can you configure the size of the connection pool in ADO.NET?
- Which component is responsible for representing the data model in Entity Framework?
- You are developing an application using Entity Framework, and you want to define the data model using C# classes. Which approach would you choose?