# | Line 33 | Line 33 | namespace AnywhereTS.DBSupport | |
---|---|---|
33 | { | |
34 | ErrorInfo = null; | |
35 | try | |
36 | < | { |
36 | > | { |
37 | var commands = Regex.Split(strFile, string.Format(@"^GO${0}", System.Environment.NewLine), RegexOptions.IgnoreCase | RegexOptions.Multiline); | |
38 | foreach (var command in commands) | |
39 | { | |
40 | SqlCommand sqlcmd = this.CreateCommandInstance(command, new List<SqlParameter>(), out ErrorInfo); | |
41 | + | sqlcmd.CommandType = System.Data.CommandType.Text; |
42 | if (ErrorInfo != null) | |
43 | throw ErrorInfo; | |
44 | sqlcmd.ExecuteNonQuery(); |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |