SharePoint and other geekoid tidbits
SQL data compare for free
24 November 2014Posted by on
Microsoft SQL Server comes with a command-line tool for comparing data. The tool is named tablediff.exe and you can find it in the following folder:
%ProgramFiles%\Microsoft SQL Server\<version>\COM
However, you need to have installed SQL Server with ‘Replication’ support, so if you can’t find tablediff.exe just re-run the installer and add Replication support.
You use tablediff like this:
tablediff.exe -sourceserver <> -sourcedatabase <> -sourceschema <> -sourcetable <> -destinationserver <> -destinationdatabase <> -destinationschema <> -destinationtable <>
Just replace <> with appropriate values.