Everything is possible with the OleDBDataRea开发者_StackOverflow中文版der class. ExecuteReader() for SELECT statements, and ExecuteNonQuery() for DELETE, UPDATE and INSERT statements.
So why is OleDbDataAdapter class needed?
From OleDbDataAdapter Class
Represents a set of data commands and a database connection that are used to fill the DataSet and update the data source.
精彩评论