internal bool ReadRecord ()
{
readResultUsed = false;
if ((command.CommandBehavior & CommandBehavior.SingleRow) != 0 && haveRead)
return false;
if ((command.CommandBehavior & CommandBehavior.SchemaOnly) != 0)
return false;
if (!moreResults)
return false;
try {
bool result = command.Tds.NextRow ();
if (result)
rowsRead++;
haveRead = true;
return result;
} catch (TdsInternalException ex) {
command.Connection.Close ();
throw SqlException.FromTdsInternalException ((TdsInternalException) ex);
}
}