Saturday, May 23, 2009

Close connection after fetching data by DataReader

 using (SqlDataReader reader =

command.ExecuteReader
(CommandBehavior.CloseConnection))
{
dt.Load(reader);
}

No comments:

Post a Comment