Read table name from text file using SQL Compare 10

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

Read table name from text file using SQL Compare 10

Postby SS_RGMN » Thu Sep 26, 2013 2:26 pm

I have start using the RG tool recently and come across one question for SQL Compare 10.0 below :

http://www.red-gate.com/supportcenter/C ... latednames

In this command below, I would like to read from a text/ CSV file for table name and then exclude only those tables for SQL compare :

sqlcompare /db1:Customers1 /db2:Customers2 /exclude:table:\\[dbo\\]\\ .\\[<table name from text file>\\]

situation is that we have 100 tbls in DB and we only want to exclude 51 tbls from text file (for this example) and then rest 49 tbls should be available (for sql compare) in the final result-set.

Can anyone provide information that how can we achieve this task, thanks for the help!
SS_RGMN
 
Posts: 1
Joined: Thu Sep 26, 2013 2:19 pm

Postby Anu Deshpande » Mon Sep 30, 2013 2:03 pm

Many thanks for your post.

SQL Compare can work with XML file to accept as command line arguments. More about it here.

If you want to specifically use text/CSV file then you need to place this request on our User voice website here.

Please feel free to add your vote or if there is one already kindly vote for it. And then the project manager can directly decide what category this requirement comes under?
Anuradha Deshpande
Product Support
Redgate Software Ltd.
E-mail: support@red-gate.com
Anu Deshpande
 
Posts: 692
Joined: Mon Apr 20, 2009 3:53 pm
Location: Cambridge


Return to SQL Compare 10

Who is online

Users browsing this forum: No registered users and 0 guests