Very strange issue, I can not understand.
Please help.
I am deploying DB from package using msdeploy. In the package in script file i put only one query:
insert [sometable].[somename] ([id], [text]) values (1, N'create schema [name] go ')
After running the deploy command sync I recive the error:
Error: Unclosed quotation mark after the character string 'CREATE SCHEMA [name]'. Incorrect syntax near 'CREATE SCHEMA [name]'. Error count: 1.
If I execute this query directly from SQL Management Studio it is fine.
Where is the problem?