/[AnywhereTS-MSSQL]/trunk/TSAdminTool/ProSupport.cs
ViewVC logotype

Diff of /trunk/TSAdminTool/ProSupport.cs

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 4 by william, Wed Jul 11 14:19:13 2012 UTC revision 16 by william, Wed Jul 11 16:36:27 2012 UTC
# Line 127  namespace AnywhereTS Line 127  namespace AnywhereTS
127          // Initiate the database          // Initiate the database
128          public static void InitDatabase()          public static void InitDatabase()
129          {          {
130              // Create and set the connection string              //// Create and set the connection string
131              string dataServerName; // The name of the database server in the connection string              //string dataServerName; // The name of the database server in the connection string
132              if (strDatabaseServer.Length != 0)              //if (strDatabaseServer.Length != 0)
133              {   // We have a database server              //{   // We have a database server
134                  dataServerName = strDatabaseServer;              //    dataServerName = strDatabaseServer;
135              }              //}
136              else              //else
137              {   // We do not have an external, data server.              //{   // We do not have an external, data server.
138                  dataServerName = ".";              //    dataServerName = ".";
139              }              //}
140              Properties.Settings.Default["atsConnectionString"] = @"Data Source=" + dataServerName + @"\SQLEXPRESS;Database='AnywhereTS';Integrated Security=True;Connect Timeout=30;User Instance=False";              //Properties.Settings.Default["atsConnectionString"] = @"Data Source=" + dataServerName + @"\SQLEXPRESS;Database='AnywhereTS';Integrated Security=True;Connect Timeout=30;User Instance=False";
141              Properties.Settings.Default.Save();              //Properties.Settings.Default.Save();
142                            
143              // Set up table adapters              // Set up table adapters
144              clientTableAdapter = new atsDataSetTableAdapters.ClientTableAdapter();              clientTableAdapter = new atsDataSetTableAdapters.ClientTableAdapter();

Legend:
Removed from v.4  
changed lines
  Added in v.16

  ViewVC Help
Powered by ViewVC 1.1.22