/[AnywhereTS-MSSQL]/trunk/AnywhereTS.DBSupport/SqlMdfConnector.cs
ViewVC logotype

Diff of /trunk/AnywhereTS.DBSupport/SqlMdfConnector.cs

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

--- trunk/AnywhereTS.DBSupport/SqlMdfConnector.cs	2012/07/14 13:01:52	128
+++ trunk/AnywhereTS.DBSupport/SqlMdfConnector.cs	2012/07/14 13:16:38	130
@@ -34,10 +34,11 @@
             ErrorInfo = null;
             try
             {
-                var commands = Regex.Split(strFile, string.Format(@"^GO${0}", System.Environment.NewLine), RegexOptions.IgnoreCase | RegexOptions.Multiline);
+                var commands = Regex.Split(strFile, string.Format(@"^GO{0}", System.Environment.NewLine), RegexOptions.IgnoreCase | RegexOptions.Multiline);
                 foreach (var command in commands)
                 {
-                    SqlCommand sqlcmd = this.CreateCommandInstance(command, new List<SqlParameter>(), out ErrorInfo);
+                    Logging.DatabaseLog.DebugFormat("Current Command={0}", command);
+                    SqlCommand sqlcmd = new SqlCommand(command, this.connection);
                     sqlcmd.CommandType = System.Data.CommandType.Text;
                     if (ErrorInfo != null)
                         throw ErrorInfo;

 

  ViewVC Help
Powered by ViewVC 1.1.22