In my SSDT project I have a post deployment script where I include a script file.
:r .\Data\Data.Content.sql
The file Data.Content.sql is a dump of the database (insert statements) and it contains content like 'var $sameHeightDivs = $(''.product-tile-region'');'. The database contains JQuery scripts. So I receive the following errors:
SQL72008: Variable document is not defined. or 72006: Fatal scripting error: Incorrect syntax was encountered while parsing '$(''
I found that you can disable 'disable variable substitution' with the argument -x.
But is there a way to define this somewhere? (post-deployment script? project setting?)
Or is there another way to solve this problem?
FYI: to create the dump I use Microsoft.SqlServer.Management.Smo.Scripter.
Kind regards,
bob