SqlCommand.ExecuteReader Method

Sends the CommandText to the Connection and builds a SqlDataReader.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

  Name Description
Public method ExecuteReader() Sends the CommandText to the Connection and builds a SqlDataReader.
Public method ExecuteReader(CommandBehavior) Sends the CommandText to the Connection, and builds a SqlDataReader using one of the CommandBehavior values.
Top
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft