/[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 118 by william, Sat Jul 14 08:03:33 2012 UTC revision 119 by william, Sat Jul 14 09:08:55 2012 UTC
# Line 44  namespace AnywhereTS Line 44  namespace AnywhereTS
44                  {                  {
45                      try                      try
46                      {                      {
47    
48                          conn.CreateConnection(out ErrorInfo);                          conn.CreateConnection(out ErrorInfo);
49                          conn.OpenConnection(out ErrorInfo);                          conn.OpenConnection(out ErrorInfo);
50                      }                      }
# Line 212  namespace AnywhereTS Line 213  namespace AnywhereTS
213              }              }
214          }          }
215    
216          // Run a SQL script (to create or update a database)  
         [Obsolete("RunScript(string strFile) is being replaced by RunScript(string strFile, MsSqlConnector con, out Exception ErrorInfo)", false)]  
         public bool RunScript(string strFile)  
         {  
             return false;  
         }  
217          public bool RunScript(string strFile, MsSqlConnector con, out Exception ErrorInfo)          public bool RunScript(string strFile, MsSqlConnector con, out Exception ErrorInfo)
218          {          {
219              ErrorInfo = null;              ErrorInfo = null;
# Line 460  namespace AnywhereTS Line 456  namespace AnywhereTS
456              }              }
457          }          }
458    
459          public string[] ParseScriptToCommands(string strScript)        
         {  
             string[] commands;  
             commands = Regex.Split(strScript, "GO\r\n", RegexOptions.IgnoreCase);  
             return commands;  
         }  
460    
461    
462          [Obsolete("SetDatabaseRights() has been deperecated - user rights are assigned via SQL Server")]          [Obsolete("SetDatabaseRights() has been deperecated - user rights are assigned via SQL Server")]

Legend:
Removed from v.118  
changed lines
  Added in v.119

  ViewVC Help
Powered by ViewVC 1.1.22