Forum

Number Of Page View:100,000+/Months
LOGIN |New User

Reply

How to create a SqlDataReader Object in ADO.Net?
There is a little different way to creating object of a SqlDataReader like other object creation in C#. Necessary call ExecuteReader on a command object.
SqlDataReader rdr = cmd.ExecuteReader();
The ExecuteReader method of the SqlCommand object, cmd , returns a SqlDataReader instance.