Command Line Basics

Forum for users of SQL Compare schema synchronization utility

Command Line Basics

Postby gbargsley » Wed Sep 25, 2013 1:57 pm

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?
gbargsley
 
Posts: 3
Joined: Wed Mar 30, 2011 2:50 pm
Location: --None--

Postby Manfred.Castro » Fri Sep 27, 2013 7:16 pm

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
Manfred Castro
Product Support
Red Gate Software
Manfred.Castro
 
Posts: 209
Joined: Mon Apr 23, 2012 2:49 pm


Return to SQL Compare Previous Versions

Who is online

Users browsing this forum: No registered users and 1 guest