I want to enable change tracking in my database using a Visual Studio database project.
The command is
ALTER DATABASE ##database name##
SET CHANGE_TRACKING = ON
(CHANGE_RETENTION = 2 DAYS, AUTO_CLEANUP = ON)
but I can’t work out the format string to get the database name
Use the
$(DatabaseName)property. In the .sqlcmdvars file: