ADO.NET provides mechanisms to automatically ___________ and ___________ connections when they are no longer needed.
- Close; Dispose
- Connect; Disconnect
- Open; Close
- Open; Dispose
In ADO.NET, the methods Open() and Dispose() are used to respectively establish and release connections. The Open() method opens a connection to a data source, while the Dispose() method releases the resources used by the connection.
Loading...
Related Quiz
- What is the difference between EntityState.Added and EntityState.Modified in Entity Framework?
- Which ADO.NET class or object is commonly used to create parameterized queries?
- When working with multiple related DataTables, what ADO.NET feature allows you to define relationships between them?
- What are some techniques for enhancing the performance of Repeater and DataList controls when dealing with large datasets?
- Which event is triggered when a user selects a row in a DataGrid or DataGridView control?