Quantcast
Channel: All Forums
Viewing all articles
Browse latest Browse all 26542

Incorrect syntax when deployind using msdeploy dbsqlPackage provider

$
0
0

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?




Viewing all articles
Browse latest Browse all 26542

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>