pricerc wrote:If the data reader is instantiated *by* a 'using' block, then closing the statement block will close the DataReader. By definition. Some refactoring tools can actually recommend losing the .Close().
But it's not.
The data reader is not instantiated *by* a using block in this case, but the SQLCommand is.
That might be ok, I'm just not used to accessing a DataReader after the SQLCommand is disposed of like that. I'm not saying that's causing the issue - without me being able to follow some steps to make the error happen I'm just pointing out something which smelled to me.



