G
Guest
Wondering why the following if statement does not run.
// obviously the name of my datareader is not sqldatareader
if(sqldatareader.read())
{
//code
}
For some reason when my code hits the following if statement it is reading
"(!sqldatareader.read()).
There are no other sqldatareaders open.
When querying the storedprocedure in query analyzer records are returned.
The connection is open and everything goes fine while reading the name of
the stored proc, etc..
What other reasons might the datareader.read() not be executing?
// obviously the name of my datareader is not sqldatareader
if(sqldatareader.read())
{
//code
}
For some reason when my code hits the following if statement it is reading
"(!sqldatareader.read()).
There are no other sqldatareaders open.
When querying the storedprocedure in query analyzer records are returned.
The connection is open and everything goes fine while reading the name of
the stored proc, etc..
What other reasons might the datareader.read() not be executing?