Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9246481
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T09:29:58+00:00 2026-06-18T09:29:58+00:00

In my SSDT project I have a post deployment script where I include a

  • 0

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

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T09:29:59+00:00Added an answer on June 18, 2026 at 9:29 am

    I posted the same question in the SQL Server Data Tools forum where someone came with a workaround.

    After the script generation I do a search and replace for the $ char.

    function SearchAndReplace($file) {
        (Get-Content $file) | 
        Foreach-Object {$_ -replace "\$\(", "' + CHAR(36) + '("} | 
        Set-Content $file
    }
    

    I included the ‘(‘ to be sure to limit the scope (to JQuery selectors).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using SQL Server Data Tools (SSDT) to manage my database schema. Every
I have a database project in SSDT and when I import a view that
While converting database project to SSDT and upgrading to SQL Server 2012 I need
I have a DB in SQL 2008 R2, I created an SSDT SQL database
I'm trying to deploy database project ( dbproj format, not new SSDT sqlproj )
I got SQL Server 2012 installed on my machine and I have SSDT to
I have SQL Server 2012, SSIS, SSDT and Visual Studio 2010. I can create
Our SSDT database project includes a table that has a computed column that can
The context is OLAP cube development. After configuring my project though SQL Server Data
I have created driver to hook ssdt on windows 7 x64. I have one

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.