ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/AnywhereTS-MSSQL/trunk/TSAdminTool/Database.cs
(Generate patch)

Comparing trunk/TSAdminTool/Database.cs (file contents):
Revision 50 by william, Thu Jul 12 14:51:57 2012 UTC vs.
Revision 51 by william, Thu Jul 12 16:21:35 2012 UTC

# Line 268 | Line 268 | namespace AnywhereTS
268                      using (log4net.NDC.Push(string.Format("SQL Statment={0}", "SELECT value from AnywhereTS..AppInfo where property='version'")))
269                      {
270                          Logging.ATSAdminLog.Debug("Getting AnywhereTS Database Version#1");
271 <                        sqlCon = new SqlConnection(Properties.Settings.Default.atsConnectionString);
271 >                        sqlCon = new SqlConnection(Properties.Settings.Default.atsConnectionString.Replace("AnywhereTS", "master"));
272                          if (sqlCon.State != ConnectionState.Open) sqlCon.Open();
273                          sqlCmd = new SqlCommand("SELECT value from AnywhereTS..AppInfo where property='version'", sqlCon);
274                          strResult = (string)sqlCmd.ExecuteScalar();
# Line 299 | Line 299 | namespace AnywhereTS
299                          using (log4net.NDC.Push(string.Format("SQL Statment={0}", "SELECT value from AnywhereTS..AppInfo where property='version'")))
300                          {
301                              Logging.ATSAdminLog.Debug("Getting AnywhereTS Database Version#2");
302 <                            sqlCon = new SqlConnection(Properties.Settings.Default.atsConnectionString);
302 >                            sqlCon = new SqlConnection(Properties.Settings.Default.atsConnectionString.Replace("AnywhereTS", "master"));
303                              if (sqlCon.State != ConnectionState.Open) sqlCon.Open();
304                              sqlCmd = new SqlCommand("SELECT value from AnywhereTS..AppInfo where property='version'", sqlCon);
305                              strResult = (string)sqlCmd.ExecuteScalar();

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines