R
Rnes
Has anyone run into a problem where a datareader does not return any
data but the same code with a dataset does return data ?
I.E.
This code DOES NOT return any results
Dim dr As SqlDataReader
dr = SqlHelper.ExecuteReader(_connectionStringRead,
CommandType.StoredProcedure, "GetTopDocumentStatus")
This code DOES return data to the dataset
Dim ds As New DataSet
ds = SqlHelper.ExecuteDataset(_connectionStringRead,
CommandType.StoredProcedure, "GetTopDocumentStatus")
I would like to use the datareader instead of the dataset, but for
some reason no results are comming back. Any ideas?
data but the same code with a dataset does return data ?
I.E.
This code DOES NOT return any results
Dim dr As SqlDataReader
dr = SqlHelper.ExecuteReader(_connectionStringRead,
CommandType.StoredProcedure, "GetTopDocumentStatus")
This code DOES return data to the dataset
Dim ds As New DataSet
ds = SqlHelper.ExecuteDataset(_connectionStringRead,
CommandType.StoredProcedure, "GetTopDocumentStatus")
I would like to use the datareader instead of the dataset, but for
some reason no results are comming back. Any ideas?