A
Arjen
Hello,
With my SqlDataReader I select 2 records.
Here is a little bit of my code:
SqlDataReader dr = documents.GetDocuments(ModuleId);
// Load first row into Datareader
if (dr.Read()) {
// Read it!
}
// Load second row into Datareader
if (dr.NextResult()) {
// Read it!
}
dr.Close();
The problem is that the second record dr.NextResult() doesn't work. But
there are two records selected!!!
Why is it not working?
Thanks!
With my SqlDataReader I select 2 records.
Here is a little bit of my code:
SqlDataReader dr = documents.GetDocuments(ModuleId);
// Load first row into Datareader
if (dr.Read()) {
// Read it!
}
// Load second row into Datareader
if (dr.NextResult()) {
// Read it!
}
dr.Close();
The problem is that the second record dr.NextResult() doesn't work. But
there are two records selected!!!
Why is it not working?
Thanks!