/[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

revision 131 by william, Sun Jul 15 02:55:20 2012 UTC revision 134 by william, Sun Jul 15 05:13:20 2012 UTC
# Line 20  namespace AnywhereTS.DBSupport Line 20  namespace AnywhereTS.DBSupport
20                  foreach (var command in commands)                  foreach (var command in commands)
21                  {                  {
22                      Logging.DatabaseLog.DebugFormat("Current Command={0}", command);                      Logging.DatabaseLog.DebugFormat("Current Command={0}", command);
23                        SqlConnection sqlCon;
24                        this.GetConnectionClone(out sqlCon,out ErrorInfo);
25                      SqlCommand sqlcmd = new SqlCommand(command, this.connection);                      SqlCommand sqlcmd = new SqlCommand(command, this.connection);
26                        sqlcmd.CommandText = command;
27                        sqlcmd.Connection = sqlCon;
28                      sqlcmd.CommandType = System.Data.CommandType.Text;                      sqlcmd.CommandType = System.Data.CommandType.Text;
29                      sqlcmd.ExecuteNonQuery();                      sqlcmd.ExecuteNonQuery();
30                  }                  }

Legend:
Removed from v.131  
changed lines
  Added in v.134

  ViewVC Help
Powered by ViewVC 1.1.22