You'll want something along the lines below, using the switches /Server1 and /Server 2 to specify the servers. sqlcompare /Server1:local\SQL2008 /Database1:RootDev /Server2:remote\SQL2008 /Database2:RootProd /scriptFile:"_build\changes.sql" Full details on the docs...