Click here to Skip to main content
15,887,746 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
when using a data base project we make a publish and then execute it on sql server in order to get the database definition
but when we make an update to data base project
how can we move only updated or added items to database(i mean by items
stored procedures,functions,keys.................. which i have created in sql project after publish)
i mean is there any way to get a script having those updated items

What I have tried:

i have tried to deploy the data base
Posted
Updated 24-Apr-16 21:00pm
v2

Have you looked at using triggers ? I'll call one database the 'definition database' and the other that you wish to update the 'working database'

create a separate trigger for

on update of definition database store in updates table
on add to definition database store in adds table

then those results can be applied against the 'working' database - bulk import for adds, apply updates in a transaction row by row
 
Share this answer
 
Triggers is better solution for your application.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900