Compares and synchronizes SQL Server databases, backups and scripts.
Moderators: JonathanWatts, Chris Auckland, David Atkinson, eddie davis, Anu Deshpande, Michelle Taylor, alice.easey, james.billings, chengvoon.tong
We are working on a project to deploy our Admin tools to new servers that are brought in to the environment and to keep synchronized on existing servers. We started writing our own process and found some stumbling blocks. We have SQL Compare tool and I know it has a command line tool.
I am trying to figure out how we can compare dynamically two servers and sync automatically.
sqlcompare /MasterServer /MasterDatabase /DestServer /DestDatabase /sync
I want to keep all tables, SPs, functions synchronized between the servers I pass in to the command.
- Posts: 3
- Joined: Wed Mar 30, 2011 2:50 pm
- Location: --None--
I think the command you want to use is
sqlcompare /s1:<servername>\\<instancename> /db1:<databasename> /s2:<servername>\\<instancename> /db2:<databasename> /sync
Here is a knowledge base article on "Simple examples using the command line"
http://documentation.red-gate.com/displ ... mmand+line
Red Gate Software
- Posts: 209
- Joined: Mon Apr 23, 2012 2:49 pm
Return to SQL Compare 10
Who is online
Users browsing this forum: No registered users and 0 guests