Top "Sqldatareader" questions

Provides a way of reading a forward-only stream of rows from a SQL Server database.

SqlDataReader - How to convert the current row to a dictionary

Is there an easy way to convert all the columns of the current row of a SqlDataReader to a dictionary? …

c# sql-server linq sqldatareader
Why is DataTable faster than DataReader

So we have had a heated debate at work as to which DataAccess route to take: DataTable or DataReader. DISCLAIMER …

.net data-access-layer sqldatareader
How to deal with SqlDataReader null values in VB.net

I have the follwoing code that performs a query and returns a result. However, I looked around and found some …

asp.net vb.net sqldatareader dbnull
Why use the GetOrdinal() Method of the SqlDataReader

What's the difference between reading a value from an SqlDataReader using this syntax: Dim reader As SqlClient.SqlDataReader reader("value").…

sqldatareader
using on SQLDataReader

I know I asked a related question earlier. I just had another thought. using (SqlConnection conn = new SqlConnection('blah blah')) { …

c# dispose sqldatareader using-statement
SqlDataReader Reading a bit datatype from SQL Server 2008?

I am using SQL Server 2008 in a asp.net/c# program. I am trying to use SqlDataReader to fetch the …

c# sql-server-2008 stored-procedures sqldatareader
c# - Fill generic list from SqlDataReader

How can I add values that a SqlDataReader returns to a generic List? I have a method where I use …

c# sql sqldatareader
How to get nullable DateTime out of the database

My SQL Server database contains nullable DateTime values. How can I convert them to a nullable DateTime object in my …

c# sql-server datetime nullable sqldatareader
How to Close a DataReader on Exception

I have the following code in some methods of my Data Layer: StringBuilder sb = new StringBuilder(); SqlCommand s = new SqlCommand(…

c# .net-1.1 sqldatareader sqlcommand
DataReader: Specified cast is not valid (Int32)

Why does SqlDataReader throw an exception when converting 0 to integer? ?dataReader(3) 0 {Short} Short: 0 ?dataReader.GetInt16(3) 0 ?dataReader.GetInt32(3) {"Specified cast is …

.net sqldatareader datareader