Google News
logo
ADO.NET - Quiz(MCQ)
Syntax for closing and opening the connection in ADO.net is_________
A)
sqlConn.open() and sqlConn.Close()
B)
sqlConn.Open() and sqlConn.close()
C)
sqlConn.Open() and sqlConn.Close()
D)
None of the above

Correct Answer :   sqlConn.Open() and sqlConn.Close()


Explanation : The Close method rolls back any pending transactions and releases the Connection from the SQL Server Database.

Advertisement