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 118 by william, Sat Jul 14 08:03:33 2012 UTC vs.
Revision 119 by william, Sat Jul 14 09:08:55 2012 UTC

--- trunk/TSAdminTool/Database.cs	2012/07/14 09:08:21	118
+++ trunk/TSAdminTool/Database.cs	2012/07/14 09:08:55	119
@@ -44,6 +44,7 @@ namespace AnywhereTS
                 {
                     try
                     {
+
                         conn.CreateConnection(out ErrorInfo);
                         conn.OpenConnection(out ErrorInfo);
                     }
@@ -212,12 +213,7 @@ namespace AnywhereTS
             }
         }
 
-        // 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;
-        }
+ 
         public bool RunScript(string strFile, MsSqlConnector con, out Exception ErrorInfo)
         {
             ErrorInfo = null;
@@ -460,12 +456,7 @@ namespace AnywhereTS
             }
         }
 
-        public string[] ParseScriptToCommands(string strScript)
-        {
-            string[] commands;
-            commands = Regex.Split(strScript, "GO\r\n", RegexOptions.IgnoreCase);
-            return commands;
-        }
+      
 
 
         [Obsolete("SetDatabaseRights() has been deperecated - user rights are assigned via SQL Server")]