Top "Sqldatareader" questions

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

DataReader or DataSet when pulling multiple recordsets in ASP.NET

I've got an ASP.NET page that has a bunch of controls that need to be populated (e.g. dropdown …

asp.net performance dataset sqldatareader
ADO.NET Question: When to use DataReader, DataAdapter

i just wondering, what things i have to consider when using DataReader and DataAdapter in fetching data from the database …

c# ado.net sqldatareader
'ExecuteReader requires an open and available Connection. The connection's current state is open'

A fairly large web application written in C# keeps throwing up 2 errors: 'ExecuteReader requires an open and available Connection. The …

c# tsql exception sqldatareader
How to get table name of a column from SqlDataReader

I have an SQL query I get from a configuration file, this query usually contains 3-6 joins. I need to …

c# .net sql-server sqldatareader
How to use SqlDataReader if I'm having more than one select statements in a stored procedure

I have coded three select statements in stored procedure in Microsoft SQL Server 2005. Both select statements return multiple number of …

stored-procedures sqldatareader multiple-select
Million inserts: SqlBulkCopy timeout

We already have a running system that handles all connection-strings (db2, oracle, MSServer). Currently, We are using ExecuteNonQuery() to do …

c# sql-server bulkinsert sqldatareader sqlbulkcopy
"already an open DataReader" exception with nested SqlDataReader in ASP.NET

I wanted to use nested SqlDataReader in the code below but I couldn't make it.I get "System.InvalidOperationException: There …

c# asp.net sqldatareader
Trouble loading SQL Data Reader data into DataTable

string query = "select * from cfo_daily_trans_hist"; try { using (SqlConnection connection = new SqlConnection( cnnString)) { SqlCommand command = new SqlCommand(query); …

c# .net sql-server-2008 datatable sqldatareader
How can I get return value of stored procedure when using SqlDataReader?

Is it not possible to get the return value of a stored procedeure when using a datareader? The return value …

asp.net .net sql sqldatareader
How to implement one to many relationship

I have a one to many relationship coming from a stored procedure. I have several one to many relationships in …

c# ado.net sqldatareader