What are the important methods of an SqlDataReader object

 Posted by deccansoft on 9/18/2010 | Category: C# Interview questions | Views: 987

If true,advances the data reader to next record.
dr.GetOrdinal()----->Gets the column ordinal given the name.
dr.GetName()---------->Gets the name of the specified column.
dr.IsDBNull()----------->Gets a value that indicates whether a column
contains missing values.
dr.NextResult()----------->Advances datareader to next result,when
reading the results of a batch of T-sql statements.
dr.GetX()------------------->To get the value,where X is a datatype.

Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response