/[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 22 by william, Wed Jul 11 20:13:17 2012 UTC revision 23 by william, Wed Jul 11 20:14:42 2012 UTC
# Line 59  namespace AnywhereTS Line 59  namespace AnywhereTS
59                  //bCreateDB = true;                  //bCreateDB = true;
60                  try                  try
61                  {                  {
                     try  
                     {  
                         sqlCon = new SqlConnection(Properties.Settings.Default.atsConnectionString);  
                         sqlCon.Open();  
                         RunScript("DROP AnywhereTS");  
                         sqlCon.Close();  
                     }  
                     catch { }  
   
62                      sqlCon = new SqlConnection(Properties.Settings.Default.atsConnectionString.Replace("AnywhereTS", "master"));                      sqlCon = new SqlConnection(Properties.Settings.Default.atsConnectionString.Replace("AnywhereTS", "master"));
63                      sqlCon.Open();                      sqlCon.Open();
64                      RunScript(Resource1.CreateDatabase.ToString());                      RunScript(Resource1.CreateDatabase.ToString());

Legend:
Removed from v.22  
changed lines
  Added in v.23

  ViewVC Help
Powered by ViewVC 1.1.22