Does the following code, cleanup all SqlDataReaders correctly:
using (IDataReader reader = SqlHelper.GetDataReader(sql.ToString())) {
if (reader.Read()) {
result = reader.IsDBNull(0) ? string.Empty : reader[0].ToString();
}
}
I have some concurrency/deallocation issues in my code and trying to hunt them down.