/[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

revision 24 by william, Wed Jul 11 20:15:18 2012 UTC revision 25 by william, Wed Jul 11 20:39:32 2012 UTC
# Line 67  namespace AnywhereTS Line 67  namespace AnywhereTS
67                      sqlCon.Open();                      sqlCon.Open();
68                      RunScript(Resource1.CreateTables.ToString());                      RunScript(Resource1.CreateTables.ToString());
69                      sqlCon.Close();                      sqlCon.Close();
70                      sqlCon = new SqlConnection(Properties.Settings.Default.atsConnectionString);                      //sqlCon = new SqlConnection(Properties.Settings.Default.atsConnectionString);
71                      sqlCon.Open();                      //sqlCon.Open();
72                  }                  }
73                  catch (SqlException sql_ex1)                  catch (SqlException sql_ex1)
74                  {                  {
# Line 82  namespace AnywhereTS Line 82  namespace AnywhereTS
82              Version databaseVersion; // The current version of the database              Version databaseVersion; // The current version of the database
83              int chkVer = CheckVersion(out databaseVersion);              int chkVer = CheckVersion(out databaseVersion);
84              VersionCheck verChk = (VersionCheck)chkVer;              VersionCheck verChk = (VersionCheck)chkVer;
85              //MessageBox.Show(string.Format("Version Check: {0} Version: {1}", verChk.ToString(), databaseVersion.ToString()));              MessageBox.Show(string.Format("Version Check: {0} Version: {1}", verChk.ToString(), databaseVersion.ToString()));
86              switch (chkVer)              switch (chkVer)
87              {              {
88                  case (int)VersionCheck.Equal:                  case (int)VersionCheck.Equal:

Legend:
Removed from v.24  
changed lines
  Added in v.25

  ViewVC Help
Powered by ViewVC 1.1.22