Command Line Basics

Forum for users of SQL Compare schema synchronization utility

Command Line Basics

Postby gbargsley » Wed Sep 25, 2013 12: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.

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

Postby Manfred.Castro » Fri Sep 27, 2013 6: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" ... mmand+line
Manfred Castro
Product Support
Red Gate Software
Posts: 209
Joined: Mon Apr 23, 2012 1:49 pm

Return to SQL Compare Previous Versions

Who is online

Users browsing this forum: No registered users and 0 guests