Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

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

Posted on 2013-06-30
2
Medium Priority
?
496 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 49

Accepted Solution

by:
PortletPaul earned 2000 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

If you have heard of RFC822 date formats, they can be quite a challenge in SQL Server. RFC822 is an Internet standard format for email message headers, including all dates within those headers. The RFC822 protocols are available in detail at:   ht…
How to leverage one TLS certificate to encrypt Microsoft SQL traffic and Remote Desktop Services, versus creating multiple tickets for the same server.
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

670 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