Lee posted on July 3, 2010 11:01

Here's a slick procedure that someone wrote for comparing two tables, pretty handy!  If you don't want to fire up your favorite SQL compare tool or table diff utility, use this script to find the differences in data that you are looking for. He goes ahead and wraps a generic version in a proc so that it excludes columns that can't be compared, such as a blob. This is a keeper to bookmark because many times I'm out at a client location and can't simply download RedGate or whatever to do a comparison, or I don't have VS installed. Not bad, go check it out. Very cool!

Lee

 

---------------------------

Who has been putting out their Kools on my floor?! I said who's been putting their Kools out on my floor???!!!

kool

 

 

 

Comparing data between two tables in SQL Server

http://blogs.msdn.com/b/ramoji/archive/2010/07/01/how-to-compare-data-between-two-tables-in-sql-server.aspx


Posted in: The Best of MSDN Blogs  Tags:
blog comments powered by Disqus

by Lee Everest, M.S.

Poll

Do you use Azure or cloud in your organization?



Show Results

Ads

Search


Month List

Calendar

«  February 2012  »
MoTuWeThFrSaSu
303112345
6789101112
13141516171819
20212223242526
2728291234
567891011
View posts in large calendar

Tags

Disclaimer
The opinions, code, examples, et.al. expressed herein are my own personal opinions and do not represent my employer's view in any way, shape form, or fashion.  All code for demonstration purposes - no guarantees, either written or implied, are made.

© Copyright 2012 Lee Everest's SQL Server, etc. weblog