Which ADO.NET method is used to open a database connection explicitly?

  • Begin()
  • Connect()
  • Open()
  • Start()
The Open() method is used in ADO.NET to explicitly open a database connection. It is a member function of the SqlConnection class, which represents a connection to a SQL Server database. By calling the Open() method, the application establishes a connection to the database, allowing it to execute commands and retrieve data.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *