SQL compare entire rows

Posted by zmaster on Stack Overflow See other posts from Stack Overflow or by zmaster
Published on 2012-05-31T11:25:07Z Indexed on 2012/07/04 9:16 UTC
Read the original article Hit count: 132

Filed under:
|
|
|
|

In SQL server 2008 I have some huge tables (200-300+ cols). Every day we run a batch job generating a new table with timestamp appended to the name of the table.

The the tables have no PK.

I would like a generic way to compare 2 rows from two tables. Showing which cols having different values is sufficient, but showing the values would be perfect.

Thanks a lot

Thanks for the answers. I ended up writing my own C# tool to do the job - as Im not allowed to install 3rd party software in my company.

© Stack Overflow or respective owner

Related posts about sql

Related posts about sql-server-2008