Questions IMP
Questions IMP
A DataSet is like a virtual table that holds data retrieved from a database. It can
work offline and store multiple tables. A DataReader is like a read-only cursor
that fetches data one row at a time from a database, and is efficient for large
datasets.
ExecuteNonQuery() is like a command to execute SQL queries that don't return data
(like INSERT, UPDATE, DELETE). ExecuteScalar() is like a command that returns a
single value (like the result of an aggregate function). ExecuteReader() is like a
command for fetching a set of records.
The Data Access Layer is like a barrier between the application and the database.
It encapsulates the logic for interacting with the database, making it easier to
manage and maintain database operations.