Can you use 2 'using' statements for both sqlconnection and sqldatareader ?
- by Blankman
Can you use 2 'using' statements like:
using (SqlConnection ..)
{
using(SqlDataReader reader = new SqlDataReader())
{
}
}
I'm trying to do this put getting an error on the constructor of the SqlDataReader