/[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 130 by william, Sat Jul 14 13:16:38 2012 UTC revision 131 by william, Sun Jul 15 02:55:20 2012 UTC
# Line 22  namespace AnywhereTS.DBSupport Line 22  namespace AnywhereTS.DBSupport
22                      Logging.DatabaseLog.DebugFormat("Current Command={0}", command);                      Logging.DatabaseLog.DebugFormat("Current Command={0}", command);
23                      SqlCommand sqlcmd = new SqlCommand(command, this.connection);                      SqlCommand sqlcmd = new SqlCommand(command, this.connection);
24                      sqlcmd.CommandType = System.Data.CommandType.Text;                      sqlcmd.CommandType = System.Data.CommandType.Text;
                     if (ErrorInfo != null)  
                         throw ErrorInfo;  
25                      sqlcmd.ExecuteNonQuery();                      sqlcmd.ExecuteNonQuery();
26                  }                  }
27                  return true;                  return true;
# Line 31  namespace AnywhereTS.DBSupport Line 29  namespace AnywhereTS.DBSupport
29              catch (Exception ex)              catch (Exception ex)
30              {              {
31                  ErrorInfo = ex;                  ErrorInfo = ex;
32                  return false;                  throw ErrorInfo;
33              }              }
34          }          }
35      }      }

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

  ViewVC Help
Powered by ViewVC 1.1.22