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

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

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

--- trunk/AnywhereTS.DBSupport/MSSQLConnector.cs	2012/07/15 02:55:20	131
+++ trunk/AnywhereTS.DBSupport/MSSQLConnector.cs	2012/07/15 05:13:20	134
@@ -20,7 +20,11 @@
                 foreach (var command in commands)
                 {
                     Logging.DatabaseLog.DebugFormat("Current Command={0}", command);
+                    SqlConnection sqlCon;
+                    this.GetConnectionClone(out sqlCon,out ErrorInfo);
                     SqlCommand sqlcmd = new SqlCommand(command, this.connection);
+                    sqlcmd.CommandText = command;
+                    sqlcmd.Connection = sqlCon;
                     sqlcmd.CommandType = System.Data.CommandType.Text;
                     sqlcmd.ExecuteNonQuery();
                 }

 

  ViewVC Help
Powered by ViewVC 1.1.22