Multiple choice technology databases

Which of the following is not a method of a Connection Object in VB.NET?

  1. Open

  2. Begin Transaction

  3. Execute

  4. Commit Transaction

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

In ADO.NET, the DbConnection class (such as SqlConnection or OleDbConnection used in VB.NET) features methods like Open(), BeginTransaction(), and Close(). The Execute() method does not belong to the Connection object; execution is instead handled by a Command object (SqlCommand.ExecuteNonQuery, etc.). Note that Commit is on the transaction object, but Execute is definitely not on the connection.