Visual Studio 2019 SQL Server DB project - Failed to deploy to local test instance under VS with SQL72014 and SQL72045

Phan, Huy (DSHS/OOS/TSD) 0 Reputation points
2023-07-03T23:32:18.2666667+00:00

I've created a SSDT DB Project under VS2019 and imported a SQL Server 2016 DB. After fixing some builds errors, I was able to get the project to build. However, when I tried to start debugging (with F5), I kept getting the error "Error: SQL72014: SQL Execution error: A fatal error occurred. Incorrect syntax was encountered while $(ESCAPE_NONE( was being parsed." and also "Error: SQL72045: Script execution error". Googling didn't help much. Any help would be greatly appreciated.

SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
14,296 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. AniyaTang-MSFT 12,446 Reputation points Microsoft Vendor
    2023-07-04T05:40:55.2033333+00:00

    Hi @Phan, Huy (DSHS/OOS/TSD)

    I don't know how your code looks like. I found a thread similar to yours: https://social.msdn.microsoft.com/Forums/sqlserver/en-US/87039167-7bb6-42dc-b20e-0dabf9a3f44b/sql72014-sql-execution-error-a-fatal-error-occurred-incorrect-syntax-was-encountered-while-?forum=ssdt, maybe you can use it as a reference.

    If the answer is helpful, please click Accept Answer and Up-Vote for the same. If you have any questions, please feel free to let me know.

    Best regards,

    Aniya


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.