/[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 92 by william, Sat Jul 14 00:55:41 2012 UTC revision 93 by william, Sat Jul 14 02:35:50 2012 UTC
# Line 35  namespace AnywhereTS Line 35  namespace AnywhereTS
35              Exception ErrorInfo = null;              Exception ErrorInfo = null;
36              bool bContinue = false;              bool bContinue = false;
37              // Create a connection to SQL Server              // Create a connection to SQL Server
38                Logging.ATSAdminLog.Debug("SetupDatabase() called ");
39              ProSupport.strDatabaseServer = Properties.Settings.Default.DBServer;              ProSupport.strDatabaseServer = Properties.Settings.Default.DBServer;
40              ProSupport.strDatabaseInstance = Properties.Settings.Default.DBInstance;              ProSupport.strDatabaseInstance = Properties.Settings.Default.DBInstance;
41    
42              ATSGlobals.SetATSRegValue(ProSupport.strRegDatabaseServer, ProSupport.strDatabaseServer);              ATSGlobals.SetATSRegValue(ProSupport.strRegDatabaseServer, ProSupport.strDatabaseServer);
43              ATSGlobals.SetATSRegValue(ProSupport.strRegDatabaseInstance, ProSupport.strRegDatabaseInstance);              ATSGlobals.SetATSRegValue(ProSupport.strRegDatabaseInstance, ProSupport.strRegDatabaseInstance);
44    
45              Logging.ATSAdminLog.Debug("SetupDatabase() called ");            
46              #region Database Creation support              #region Database Creation support
47              using (MsSqlConnector conn = new MsSqlConnector(Properties.Settings.Default.DBServer, Properties.Settings.Default.DBInstance, ATSGlobals.strDatabaseName))              using (MsSqlConnector conn = new MsSqlConnector(Properties.Settings.Default.DBServer, Properties.Settings.Default.DBInstance, ATSGlobals.strDatabaseName))
48              {              {

Legend:
Removed from v.92  
changed lines
  Added in v.93

  ViewVC Help
Powered by ViewVC 1.1.22