/[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 14:51:57	50
+++ trunk/TSAdminTool/Database.cs	2012/07/12 16:21:35	51
@@ -268,7 +268,7 @@
                     using (log4net.NDC.Push(string.Format("SQL Statment={0}", "SELECT value from AnywhereTS..AppInfo where property='version'")))
                     {
                         Logging.ATSAdminLog.Debug("Getting AnywhereTS Database Version#1");
-                        sqlCon = new SqlConnection(Properties.Settings.Default.atsConnectionString);
+                        sqlCon = new SqlConnection(Properties.Settings.Default.atsConnectionString.Replace("AnywhereTS", "master"));
                         if (sqlCon.State != ConnectionState.Open) sqlCon.Open();
                         sqlCmd = new SqlCommand("SELECT value from AnywhereTS..AppInfo where property='version'", sqlCon);
                         strResult = (string)sqlCmd.ExecuteScalar();
@@ -299,7 +299,7 @@
                         using (log4net.NDC.Push(string.Format("SQL Statment={0}", "SELECT value from AnywhereTS..AppInfo where property='version'")))
                         {
                             Logging.ATSAdminLog.Debug("Getting AnywhereTS Database Version#2");
-                            sqlCon = new SqlConnection(Properties.Settings.Default.atsConnectionString);
+                            sqlCon = new SqlConnection(Properties.Settings.Default.atsConnectionString.Replace("AnywhereTS", "master"));
                             if (sqlCon.State != ConnectionState.Open) sqlCon.Open();
                             sqlCmd = new SqlCommand("SELECT value from AnywhereTS..AppInfo where property='version'", sqlCon);
                             strResult = (string)sqlCmd.ExecuteScalar();

 

  ViewVC Help
Powered by ViewVC 1.1.22