It looks like Visual Studio Database Project
does not parse SQLCMD
-variables doing a schema-comparison.
All my synonyms looks like
CREATE SYNONYM [dbo].[addressesExtDB] FOR [$(ExtDB)].[dbo].[addresses];
but they keep be reported as different from the database.
When I do a schema update with the correct 'Specify SQLCMD Variabeles...'
-settings where the var ExtDB is set to 'ExtDBnn'
the resulting Synonym
in the database is correctly set to:
CREATE SYNONYM [dbo].[addressesExtDB] FOR [ExtDBnn].[dbo].[addresses];
A recompare actions shows all Synonyms falsely as different again. So the compare should parse the sqlcmd-variabeles and use the results to compare with the database. Do I miss an option to do this or something, or did you experience the same problem and found a solution somehow?