Solved

Run tablediff for all user defined tabes and save result in a directory

Posted on 2013-06-30
2
453 Views
Last Modified: 2013-07-01
I do run tablediff command to identify if any difference between two tables(Table names are same) from two different databases and store result in C: as file name as Tablename.txt.

I've two databases both contains same schema. I mean same number of tables and with same table names. I would like to compare ALL the user defined tables between the two databases and like to save the result as <TABLENAME.txt> in a specific folder.

Doing each table by table is cumbersome. I would like to perform this in one shot.

Please do guide me how to achieve this.?
0
Comment
Question by:Easwaran Paramasivam
2 Comments
 
LVL 48

Accepted Solution

by:
PortletPaul earned 500 total points
ID: 39288013
please refer to this:
http://stackoverflow.com/questions/1722846/use-tablediff-to-compare-all-tables

there a script there that should do what you want.

but the author of that scripts points to this page:
The shortest, fastest, and easiest way to compare two tables in SQL Server: UNION !

as an alternative to tablediff, and there are other similar comments there also.
0
 
LVL 16

Author Closing Comment

by:Easwaran Paramasivam
ID: 39289323
Thanks.
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In SQL Server, when rows are selected from a table, does it retrieve data in the order in which it is inserted?  Many believe this is the case. Let us try to examine for ourselves with an example. To get started, use the following script, wh…
In this article I will describe the Copy Database Wizard method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question