In ADO.NET, how can you populate a DataTable with data from a database?
- DataAdapter.Fill
- DataTable.Load
- SqlCommand.ExecuteReader
- SqlConnection.Open
You can populate a DataTable with data from a database using the Fill method of a DataAdapter. It retrieves data from the database and populates the DataTable with the result set.
Loading...
Related Quiz
- Data binding can simplify UI development by automatically synchronizing ___________ and data source.
- Scenario: You are working on a WinForms project with a complex data structure. What considerations should you keep in mind when implementing data binding for hierarchical data?
- Which ADO.NET class or object is commonly used to create parameterized queries?
- Which ADO.NET class represents a single table of in-memory data?
- When using LINQ to DataSet, how can you perform aggregation operations such as sum, count, or average on grouped data?