SqlShare.com Logo
 
Skip Navigation Links
Home
Video List
Events
Classes
About Us
Login / Register
Subscribe RSS Feed 

Takes Query Plan Analysis and Performance Monitoring to a New Level

Tablediff - Compare Data in SQL Server Tables

Tablediff.exe is a command line tool used for SQL Server replication, however we can use it to compare the data in two tables. Also, we can generate scripts to make the data in the two tables equal. Learn how in this video.

Duration:
2 mins 10 secs
Skill Level:
100
Rating:
3.85 out of 5
Publish Date:
December 16, 2009
Tablediff - Compare Data in SQL Server Tables You must be logged in to view this video.  
Bookmark and Share
 
1=Poor, 3=Good, 5=Excellent

About the Author

Image of Feodor Georgiev
Schooled and worked as a .NET developer / DBA in the USA, currently working as a DBA in the Nordic countries at sqlservice.se.

References

There are no downloads or recommended reading links for this video

Comments
Dexter Jones on 12/16/2009
Thanks for pointing out this useful tool. Curiously, I did find it on my machine in the 90 (2005) folder, but not in the 100 (2008) folder. Does it only get installed when Replication is installed?

Jonathan on 12/16/2009
Very handy if you don't have money to afford Redgate's SQL Data Compare

Darren Bates on 12/16/2009
nice intro to a tool I wasn't aware of

uofmoo on 12/16/2009
That is pretty cool!

Darren Bates on 12/16/2009
good quick summary, BUT the diff_script.bat file WAS NOT REVEALED! So the example can't be duplicated as displayed!

RangeValidator on 12/16/2009
Very nice. Very useful.

Art Sennholtz on 12/16/2009
Would have liked to know if it sync'ed individual fields.

Bala on 12/16/2009
very nice. thank you very much

Don Weigend on 12/16/2009
Tablediff will really come in handy, thanks for the tip.

Richard Ray on 12/16/2009
I weep with gratitude. I was just about to embark on writing this tools, probably not nearly as well as it's delivered for free. And for free...

srininvas on 12/16/2009
The only issue with this tool is that it cannot be used if the schemas of the table are slightly different in case of replicating databases used for reports

Moe on 12/16/2009
Never heard of this command line tool before but will be hughly useful in my work place.

Renea on 12/16/2009
Did not see the differences captured. Needed a little more explaination.

John on 12/16/2009
It is not installed in my SQL Server 2008 Developer edition. Anybody know what component needs to be installed?

Rod on 12/16/2009
What this video didn't answer is, what versions of SQL Server is Tablediff available for.

Holck on 12/16/2009
Wish I'd have seen this before!

E54ECA2C5B on 12/16/2009
Works great! One note: Depending on which table is the first table you will get INSERT. If you flip the tables you will GET DELETE. That is how you sync them.

C G on 12/16/2009
Should have shown example with matching, add, update and delete.

colin on 12/16/2009
a good pointer to some of tablediff's functionality

Jeromy Kimani on 12/16/2009
Did not have enough information about the tool & how to get it.

Rinkal on 12/16/2009
very good Rinkal Ror

Anthony Henley on 12/16/2009
Wish it could a quick compare and what the output looks like.

Sudhakar on 12/17/2009
good

Muito bom!

Steve Culshaw on 12/17/2009
Neat utility, especially when you consider the cost of some of the commercial ones out there

pete on 12/17/2009
A great introduction to this little known utility and certainly one I'll be looking into further.

Jack Hellmuth on 12/17/2009
importanly, but not discussed, is how 2 tables are made the same. The example showed only a simple case. What is the two tables both have a row that is similar in some columns and not others. What happens?

Kris Robinett on 12/17/2009
Good to inform that tablediff exists - does not show much on how it works or how to use it/what parameters mean.

Leonard Peoples on 12/17/2009
?

Rod Sarbo on 12/17/2009
A place to get the scripts would be nice

John on 12/17/2009
Finding out about tablediff was cool, but this just barely scratched the surface. It wasn't nearly as much information as I usually get from these videos.

Sam Schafer on 12/17/2009
Great tip! Can't wait to try it out!

James Slebodnick on 12/18/2009
Thanks for sharing! This is the first time I have heard of this tool. Any others out there?

Sandip on 12/19/2009
It is good to know. Thanks

R Michael Lacy on 12/21/2009
Please attach the executable used in the video.

Travis on 12/26/2009
The attached batch file would have been nice, But as i said before don't just use a feature becasue it is there. There are some things you need to know about this feature before you start uding it that the speaker dod not cover. Please check out the following link for more complete info on this utility: http://msdn.microsoft.com/en-us/library/ms162843.aspx

Andrew on 1/7/2010
This is good to see, but can you not do this with an SSIS package too?

John on 1/18/2010
Could have used a little more explanation or examples of how this utility can be helpful. Nice find though.

ali on 1/26/2010
thanks, it was usefull

Virraat Sqlshare on 4/29/2010
could not find this file in the mentioned folder. Does this require any additional installs?

mengchew0113 on 5/17/2010
thanks for sharing. it very useful

Ravi Raj on 6/25/2010
good article to learn tablediff utility

Steve Culshaw on 3/8/2011
Good pointer to a useful FREE tool

manjeet on 3/8/2011
Nice one

3D6BEAE955 on 3/8/2011
can we have the script which is written by the speaker?

46896E188B on 3/8/2011
Nice article

Oxana Godina on 3/8/2011
Is it Russian accent?))) Anyway, thanks for the lesson!

302A0F4D62 on 3/8/2011
A good quick tip. very usefull to know

Anand Mangipudi on 3/8/2011
Very Useful

George Heinrich on 3/8/2011
good to know...but it was too quick for me. Maybe include some examples of what the output looks like?

Keith Wilcox on 3/8/2011
I would have like to have seen update and delete operations as well.

Wayne on 3/8/2011
I learned something new, thanks

Joe DeMarco on 3/8/2011
Would have liked to see a little more information on the tool.

Mark Clancy on 3/8/2011
Free is good...

George Squillace on 3/8/2011
I've been working with SQL Server for years and I didn't know about this tool. Thanks.

Kris Robinett on 3/8/2011
Would have liked an explanation of the parameters that are available. Maybe that is in another video

Joyce Scarlatelli on 3/8/2011
Interesting command but he didn't show any results from comparing the tables

Glenn Koproske on 3/8/2011
Should have stated this tool is available only to server Windows administrators and not necessarily DBA's, and certainly not to SQL developers.

Tracy on 3/8/2011
OMG! VERY valuable 2 minutes! Did not know about this!

Dean Dodson on 3/8/2011
Maybe there'll be more about this in an upcoming video; if so please mention that "... in a future video we will cover..." If there isn't, what about performance concerns? Situations where you've used tablediff? What happens if the schemas aren't quite the same? Last time I wrote a comment, the topic was covered in a different video so that's why I'm suggesting that you mention that you'll cover additional ground if that is the case. Thanks, love the content - keep it going!

eric dircksen on 3/8/2011
Not clear at all. But I'll give it a go.

Brent Wells on 3/8/2011
Can you show more real world examples what you could use this for.

89A024B611 on 3/8/2011
is this available for use with SQL Server 2005 ?

Bruce Wendler on 3/8/2011
The presentation was too short and needed a demonstation on how to find and create the cmd line.

Leonard Peoples on 3/8/2011
Not the best explained video.

Dennis Wetherall on 3/8/2011
Tablediff is good to know. Your video was good intro to it. Thanks.

RangeValidator on 3/8/2011
very handy

Mark Cook on 3/8/2011
This was helpful. I could have used more detail about how to use the results.

4F3BA8CA71 on 3/8/2011
I had no idea that tablediff even existed!

Jacqueline Mornan on 3/8/2011
Great tool to learn about and to have. Thanks for bringing it to my attention.

Jacqueline Mornan on 3/8/2011
tablediff was not in my COM folder. Is there somewhere else it could be located?

Joe Wagner on 3/8/2011
I had to install the Replication components before it it showed up. I'm running Express with Adv Services.

Gabor Balazs on 3/9/2011
It is a very useful tool, but from the video the explanation of the parameters and their usage are missing.

WChaster on 3/9/2011
This seems like a good tool to sync test and train environments with production data. Is there a limit to the amount of data that can be different? Does it script changes both ways?

DP on 3/9/2011
Good tip.

Maurice Ivory on 3/11/2011
Did get much out of this video...

Ameena on 3/11/2011
Very cool feature. Thanks for sharing.

Bridget on 3/14/2011
Screen font too small. Seems like a useful tip tho.

9D6EE2B433 on 3/15/2011
wonderful, cannot believe these hidden utilities lying under my desk.

Bobby on 3/17/2011
This is pretty interesting and I didn't know it existed but I think you need to explain it a little better. Step by step with more detail. Thanks!

Steve Harris on 3/23/2011
does it also do updates?

James Moore on 10/26/2011
Good job!

John O'Sullivan on 1/1/2012
tablediff , often overlooked utility



Must Be Logged In
 

How Do I Become a Video Author? |  Newsletter History

Copyright © Fourdeuce, Inc., 2005-2009. All Rights Reserved | Privacy Policy | Terms & Conditions