Get LocalDB to SQL2017
pfiorella
Posts: 3 New member
We recently added a script that makes use of the STRING_AGG function in SQL. This is a new SQL 2017 function. When we refresh our SQL Change Automation project, it fails script verification due to the shadow db using LocalDB which is running SQL 2016.
What is the best way to remedy this?
We currently target an Azure database. If we set the shadow db to our target connection string (Azure) we receive an error that states "The shadow database cannot be deployed to an instance of Microsoft Azure SQL."
What is the best way to remedy this?
We currently target an Azure database. If we set the shadow db to our target connection string (Azure) we receive an error that states "The shadow database cannot be deployed to an instance of Microsoft Azure SQL."
Tagged:
Answers
Is there any way to get the SQL Change Automation task to use an SQL 2017 compatible version of LocalDB? *Without* having to resort to using an actual SQL Instance.
In this case, you will need to upgrade your version of LocalDB, you can check the current version using this link: https://knowledge.autodesk.com/support/advance-steel/troubleshooting/caas/sfdcarticles/sfdcarticles/How-to-check-the-version-of-your-database-in-Advance-Steel.html
To upgrade, you can follow the steps here: https://stackoverflow.com/questions/26897152/how-do-i-upgrade-sql-server-localdb-to-a-newer-version
Kind regards
Dan Calver | Redgate Software
Have you visited our Help Center?
localdb 2017 had a bug in it where it was not appending the slashes correctly in the mdf file paths.