/[AnywhereTS-MSSQL]/trunk/TSAdminTool/Database.cs
ViewVC logotype

Diff of /trunk/TSAdminTool/Database.cs

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

--- trunk/TSAdminTool/Database.cs	2012/07/12 12:59:45	44
+++ trunk/TSAdminTool/Database.cs	2012/07/12 13:01:44	45
@@ -264,7 +264,6 @@
                     using (log4net.NDC.Push(string.Format("SQL Statment={0}", "SELECT value from AnywhereTS..AppInfo where property='version'")))
                     {
                         Logging.ATSAdminLog.Debug("Gettting AnywhereTS Database Version");
-                        sqlCon.Close();
                         sqlCon = new SqlConnection(Properties.Settings.Default.atsConnectionString);
                         if (sqlCon.State != ConnectionState.Open) sqlCon.Open();
                         sqlCmd = new SqlCommand("SELECT value from AnywhereTS..AppInfo where property='version'", sqlCon);
@@ -296,7 +295,6 @@
                         using (log4net.NDC.Push(string.Format("SQL Statment={0}", "SELECT value from AnywhereTS..AppInfo where property='version'")))
                         {
                             Logging.ATSAdminLog.Debug("Gettting AnywhereTS Database Version");
-                            sqlCon.Close();
                             sqlCon = new SqlConnection(Properties.Settings.Default.atsConnectionString);
                             if (sqlCon.State != ConnectionState.Open) sqlCon.Open();
                             sqlCmd = new SqlCommand("SELECT value from AnywhereTS..AppInfo where property='version'", sqlCon);

 

  ViewVC Help
Powered by ViewVC 1.1.22