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

revision 127 by william, Sat Jul 14 11:44:52 2012 UTC revision 128 by william, Sat Jul 14 13:01:52 2012 UTC
# Line 33  namespace AnywhereTS.DBSupport Line 33  namespace AnywhereTS.DBSupport
33          {          {
34              ErrorInfo = null;              ErrorInfo = null;
35              try              try
36              {                              {
37                  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);
38                  foreach (var command in commands)                  foreach (var command in commands)
39                  {                  {
40                      SqlCommand sqlcmd = this.CreateCommandInstance(command, new List<SqlParameter>(), out ErrorInfo);                      SqlCommand sqlcmd = this.CreateCommandInstance(command, new List<SqlParameter>(), out ErrorInfo);
41                        sqlcmd.CommandType = System.Data.CommandType.Text;
42                      if (ErrorInfo != null)                      if (ErrorInfo != null)
43                          throw ErrorInfo;                          throw ErrorInfo;
44                      sqlcmd.ExecuteNonQuery();                      sqlcmd.ExecuteNonQuery();

Legend:
Removed from v.127  
changed lines
  Added in v.128

  ViewVC Help
Powered by ViewVC 1.1.22