Can Visual Studio Database Projects create individual diff scripts for each object that has changed?

StackOverflow https://stackoverflow.com/questions/15973326

Question

I'm beginning to work with Database Projects in Visual Studio 2010, and I know that it will generate a script that will deploy all of the changes (e.g., adding tables to columns, new ALTER PROC statements, etc.).

Can the Database Project be configured so that I would get separate files for each object? For example, if three tables ad columns added, could I get one SQL file for each table contianing the ALTER TABLE ADD COLUMN statement for that specific table?

Was it helpful?

Solution

I'm pretty sure that the answer is going to be "no" for this one. DB and SQL Projects are really designed to look at the state of your project, compare it to the state of your database, and make them the same in one pass. I'm not sure what you're trying to accomplish in this case. Can you provide more details on why you need or want to generate separate ALTER scripts for every object that was changed?

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top