diff --git a/product/roundhouse.databases.sqlserver/SqlServerDatabase.cs b/product/roundhouse.databases.sqlserver/SqlServerDatabase.cs index 52409ffc..b6d36278 100644 --- a/product/roundhouse.databases.sqlserver/SqlServerDatabase.cs +++ b/product/roundhouse.databases.sqlserver/SqlServerDatabase.cs @@ -16,7 +16,7 @@ public class SqlServerDatabase : AdoNetDatabase public override string sql_statement_separator_regex_pattern { - get { return @"(?^(?:[\s\t])*(?:-{2}).*$)|(?/{1}\*{1}[\S\s]*?\*{1}/{1})|(?'{1}(?:[^']|\n[^'])*?'{1})|(?\s)(?GO)(?\s)|(?\s)(?GO)(?$)"; } + get { return @"(?^\s*--.*$)|(?/\*[\S\s]*?\*/)|(?'[^']*')|(?\s)(?GO)(?\s|$)"; } } public override void initialize_connections(ConfigurationPropertyHolder configuration_property_holder)