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
Solved

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

Posted on 2013-06-30
2
459 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

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

INTRODUCTION: While tying your database objects into builds and your enterprise source control system takes a third-party product (like Visual Studio Database Edition or Red-Gate's SQL Source Control), you can achieve some protection using a sing…
Hi all, It is important and often overlooked to understand “Database properties”. Often we see questions about "log files" or "where is the database" and one of the easiest ways to get general information about your database is to use “Database p…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

789 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