Joined: Fri Mar 20, 2009 4:03 am Posts: 21 Location: Indonesia Has thanked: 0 time Have thanks: 0 time
ExecuteScalar method is to retrieve a single value, for example, an aggregate value, from a data source. This requires less code than using the ExecuteReader method, and then performing the operations that are required to generate the single value using the data returned by an OleDbDataReader.
It only Executes the query, and returns the first column of the first row in the resultset returned by the query. Extra columns or rows are ignored.
Users browsing this forum: No registered users and 1 guest
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum