Command Line Basics
gbargsley
Posts: 34 Bronze 4
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.
Example:
sqlcompare /MasterServer /MasterDatabase /DestServer /DestDatabase /sync
I want to keep all tables, SPs, functions synchronized between the servers I pass in to the command.
Any ideas?
I am trying to figure out how we can compare dynamically two servers and sync automatically.
Example:
sqlcompare /MasterServer /MasterDatabase /DestServer /DestDatabase /sync
I want to keep all tables, SPs, functions synchronized between the servers I pass in to the command.
Any ideas?
Comments
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
Product Support
Red Gate Software