3. Manual Process*
1. List out all the database related changes that needs to be deployed.
2. Right click on database object in SQL Server and create the script based
on the need like ‘Create/Alter/Drop’ script.
3. Execute all those scripts on Targeted database one-by-one.
Note* Manual Process might miss out the dependent object script(s).
4. Process using Database Project
1. Create Database Project from File > New project > Sql Server(Template).
2. Right click on project from solution explorer and select ‘Schema compare’.
3. Configure and Select ‘Source’ and ‘Target’ database.
4. Click ‘Compare’ button in the Schema Compare Window toolbar to start the
comparison process.
5. When the comparison is completed, select the appropriate schema changes.
6. Update the schema directly by clicking on ‘Update’ button or generate the script
from ‘Generate Script’ button and then execute it on Targeted database.
5. Advantages of using Database Project
1. Reduce Manual work
2. Save deployment time
3. Easily deployable in any conditions
4. Helpful in versioning db object / deployment scripts
5. Automatically detects dependent objects
6. It will cover all schema related changes like Table, Column Data type/size
change, Constraints, User defined objects, View, Indexes, properties etc
6. Disadvantage of using Database Project
1. Can be time consuming due to server traffic/speed
2. Active connection can interrupt schema comparison process
1. Visual studio ( 2015 / 2013 / 2012 / 2010 / 2008 / 2005 )
Prerequisite