--- 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")]