G
Guest
hey all,
i've never seen "using" in the following context before, could someone
please explain:
static void Main()
{
string queryString =
"SELECT CategoryID, CategoryName FROM dbo.Categories;";
using (SqlConnection connection = GetConnectionString())
{
...
}
thanks,
rodchar
i've never seen "using" in the following context before, could someone
please explain:
static void Main()
{
string queryString =
"SELECT CategoryID, CategoryName FROM dbo.Categories;";
using (SqlConnection connection = GetConnectionString())
{
...
}
thanks,
rodchar