M
Mike P
I've recently started using the using keyword for my connections, but I
have just seen some code where you have a using within a using, which is
opening a command :
using (SqlConnection _conn = new
SqlConnection(ConfigurationManager.ConnectionStrings["constreng"].ToStri
ng()))
{
using (SqlCommand _comm = new
SqlCommand("GetRevenueByOwner", _conn))
{
Is it good practice to use something like this?
have just seen some code where you have a using within a using, which is
opening a command :
using (SqlConnection _conn = new
SqlConnection(ConfigurationManager.ConnectionStrings["constreng"].ToStri
ng()))
{
using (SqlCommand _comm = new
SqlCommand("GetRevenueByOwner", _conn))
{
Is it good practice to use something like this?