Hi,
I have created a variable DB_Test in a database project in VS. Whenever I make changes in the Database objects (like views & Stored procs) I do a schema compare using database as source and project as target and then update teh changes. The objects in TFS have the variable for referring to the DB (e.g., [$(DB_Test)].[dbo].[tblTest]) and after I update the TFS code using the database code the variable gets overwritten by the databasaname mentioned in the database. So, every time I update the code in TFS using schema compare, I will have to manually replace the database names in TFS with variable so that when I deploy from TFS into the database of another environment I could change the variable accordingy before publish.
I would like to know if there is a way where the VS itself replaces all the database names with variable references if already defined in the project?
Thanks,Vamsi
.