J
Joe Ross
We are wrestling with an intermittent database error and would like to be
able to capture some specific data when the error occurs. We are trying to
grab as much state information from a SqlDataReader object as possible.
Unfortunately (for our cause here), the data reader is sealed and most of
the meaningful properties are either protected or private. However, we can
access these items when using QuickWatch inside the debugger (we have been
unable to reproduce the problem in-house, so this does us no good).
Is it possible to grab things like _command, _activeConnection, etc at run
time? Will reflection give us this flexibility? Is there any other way to
get more complete state information on a SqlDataReader?
Thank you for any suggestions...apologies in advance for the cross-posting,
-joe
able to capture some specific data when the error occurs. We are trying to
grab as much state information from a SqlDataReader object as possible.
Unfortunately (for our cause here), the data reader is sealed and most of
the meaningful properties are either protected or private. However, we can
access these items when using QuickWatch inside the debugger (we have been
unable to reproduce the problem in-house, so this does us no good).
Is it possible to grab things like _command, _activeConnection, etc at run
time? Will reflection give us this flexibility? Is there any other way to
get more complete state information on a SqlDataReader?
Thank you for any suggestions...apologies in advance for the cross-posting,
-joe