/[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/15 05:00:59	133
+++ trunk/TSAdminTool/Database.cs	2012/07/15 05:13:20	134
@@ -121,7 +121,7 @@
                         }
                     case (int)VersionCheck.DatabaseIsOlder:
                         {
-                            using (MsSqlConnector conn = new MsSqlConnector(ProSupport.strDatabaseServer, ProSupport.strDatabaseInstance, ATSGlobals.strDatabaseName))
+                            using (MsSqlConnector conn = new MsSqlConnector(ProSupport.strDatabaseServer, ProSupport.strDatabaseInstance, "master"))
                             {
                                 try
                                 {
@@ -156,7 +156,7 @@
                                             {   // Current database is version 1.0.0.3, update to 1.0.0.4
                                                 Logging.DatabaseLog.InfoFormat("Upgrading Database from version: {0} to version: {1}", "1.0.0.3", "1.0.0.4");
                                                 bContinue = RunScript(SQLServerResources.UpdateDatabase4, conn, out ErrorInfo);
-                                                Logging.DatabaseLog.InfoFormat("Upgraded Database from version: {0} to version: {1}", "1.0.0.4", "1.0.0.4");
+                                                Logging.DatabaseLog.InfoFormat("Upgraded Database from version: {0} to version: {1}", "1.0.0.3", "1.0.0.4");
                                                 break;
                                             }
                                         default:
@@ -251,7 +251,7 @@
                 int db_count = -1;
                 //Verify that the AnywhereTS database exists
                 #region Get Database Count
-                using (MsSqlConnector conn = new MsSqlConnector(ProSupport.strDatabaseServer, ProSupport.strDatabaseInstance, ATSGlobals.strDatabaseName))
+                using (MsSqlConnector conn = new MsSqlConnector(ProSupport.strDatabaseServer, ProSupport.strDatabaseInstance, "master"))
                 {
                     try
                     {
@@ -364,7 +364,7 @@
 
 
                 #region Get Database Version
-                using (MsSqlConnector conn = new MsSqlConnector(ProSupport.strDatabaseServer, ProSupport.strDatabaseInstance, ATSGlobals.strDatabaseName))
+                using (MsSqlConnector conn = new MsSqlConnector(ProSupport.strDatabaseServer, ProSupport.strDatabaseInstance, "master"))
                 {
                     try
                     {

 

  ViewVC Help
Powered by ViewVC 1.1.22