Liquibase - update native MS SQL script
<p>I'm using liquibase to update database. </p>

<p>I have file changelog-master.xml with:</p>

<pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;databaseChangeLog
    xmlns="http://www.liquibase.org/xml/ns/dbchangelog/1.9"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog/1.9
     http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-1.9.xsd"&gt;
          &lt;includeAll path="/src/main/resources/DBChangeLog/DDL/"/&gt;
&lt;/databaseChangeLog&gt;
</code></pre>

<p>in resource /src/main/resources/DBChangeLog/DDL/ I have one file with script MS SQL:</p>

<pre><code>SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
 GO
SET ANSI_PADDING ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id =         OBJECT_ID(N'[dbo].[CONFIG]') AND type in (N'U'))
BEGIN
CREATE TABLE [dbo].[CONFIG](
        [ID] [bigint] NOT NULL,
        [DESCRIPTION] [varchar](255) NOT NULL,
        [OPERATOR] [XML] NOT NULL 
 CONSTRAINT [PK_CONFIG] PRIMARY KEY CLUSTERED 
(
        [ID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [DATA]
) ON [DATA]
END
GO
SET ANSI_PADDING OFF
GO
</code></pre>

<p>when I run maven command I received error : mvn liquibase:update</p>

<p>ERROR:</p>

<pre><code>src\main\resources\DBChangeLog\DDL\V2_20_0_0008__test.sql::raw::includeAll failed.  Error: Incorrect syntax near 'GO'. [Failed SQL: SET ANSI_NULLS ON

GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[CONFIG]') AND type in (N'U'))
BEGIN
CREATE TABLE [dbo].[CONFIG](
        [ID] [bigint] NOT NULL,         
        [DESCRIPTION] [varchar](255) NOT NULL,
        [OPERATOR] [XML] NOT NULL
 CONSTRAINT [PK_CONFIG] PRIMARY KEY CLUSTERED
(
        [ID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [DATA]
) ON [DATA]
END
GO
SET ANSI_PADDING OFF
GO]
</code></pre>

<p>Is it possible to run typical MS SQL script or liquibase will have problem with it ? </p>