/[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:41:04	41
+++ trunk/TSAdminTool/Database.cs	2012/07/12 12:43:29	43
@@ -27,7 +27,6 @@
         private SqlCommand sqlCmd = new SqlCommand();
 
         const string SQL_BROWSER_SERVICE_NAME = "SQLBrowser";
-        static Version CURRENT_DB_VERSION = new Version(1, 0, 0, 3);
         public static string InstanceName
         {
             get
@@ -149,13 +148,13 @@
                                     //MessageBox.Show("Error: Not able to upgrade database (51188)");
                                     if (databaseVersion == new Version(0, 0, 0, 0))
                                     {
-                                        string format = string.Format("Database version is {0}, this should have been auto upgraded to {1}", databaseVersion.ToString(), CURRENT_DB_VERSION.ToString());
+                                        string format = string.Format("Database version is {0}, this should have been auto upgraded to {1}", databaseVersion.ToString(), ATSGlobals.strDatabaseVersion);
                                         Logging.ATSAdminLog.Fatal(format);
                                         MessageBox.Show(format);
                                     }
                                     else
                                     {
-                                        string format = string.Format("Failed to upgrade Database from version: {0} to version: {1}", databaseVersion.ToString(), CURRENT_DB_VERSION.ToString());
+                                        string format = string.Format("Failed to upgrade Database from version: {0} to version: {1}", databaseVersion.ToString(), ATSGlobals.strDatabaseVersion);
                                         Logging.ATSAdminLog.Fatal(format);
                                         MessageBox.Show(format);
                                     }                                    

 

  ViewVC Help
Powered by ViewVC 1.1.22