SqlDataReader to Retrieve Multiple Rows
The SqlDataReader approach to retrieve multiple rows is illustrated in the following code fragment.
The SqlDataReader approach to retrieve multiple rows is illustrated in the following code fragment.
using System.IO;
using System.Data;
using System.Data.SqlClient;
public SqlDataReader
RetrieveRowsWithDataReader()
{
SqlConnection conn = new SqlConnection(
SqlCommand cmd = new SqlCommand("DATRetrieveProducts", conn );
cmd.CommandType = CommandType.StoredProcedure;
try
{