SqlConnection GetConnection()
{
SqlConnection retVal = null;
SqlConnection sql = null;
try
{
sql = new SqlConnection(ConnectionString);
sql.Open();
retVal = sql;
}
finally
{
if (retVal == null)
{
sql.Dispose();
}
}
return retVal;
}
SqlConnection ActiveConnection { get; set; }