Solved

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

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

There have been several questions about Large Transaction Log Files in SQL Server 2008, and how to get rid of them when disk space has become critical. This article will explain how to disable full recovery and implement simple recovery that carries…
Use this article to create a batch file to backup a Microsoft SQL Server database to a Windows folder.  The folder can be on the local hard drive or on a network share.  This batch file will query the SQL server to get the current date & time and wi…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

746 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now