Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 

sp_DBCompare

By gaetano.lombardo, 2013/06/19

This simple script make a comparison between two given database.
It compare: The table present in both database
            The data type, lenght, nullability, precision for each table.
            The object present in both database.
The StoredProc is able to compare database across different server, simple make the server a "Linked server" and use the notation SERVER.DB (Es. EXEC sp_DBCompare 'SERVER1.DB1','SERVER2.DB2') to supply parameter to SP. For any question about the script you can contact me!
Have fun! NOTE: The script actually run only on SqlServer 2000, not SqlServer 7, because it compare the collation at column level and SqlServer don't manage it.

Total article views: 714 | Views in the last 30 days: 4
 
Related Articles
FORUM

Automate script for comparing two tables

Automated SQL script for comparing two tables.

FORUM

Yessoft - SQL Server compare

Yessoft - SQL Server compare

FORUM

Comparing multiple SQL databases

Comparing multiple SQL databases (schema's)

FORUM

comparing with database values

comparing with database values

Tags
 
Contribute

Join the most active online SQL Server Community

SQL knowledge, delivered daily, free:

Email address:  

You make SSC a better place

As a member of SQLServerCentral, you get free access to loads of fresh content: thousands of articles and SQL scripts, a library of free eBooks, a weekly database news roundup, a great Q & A platform… And it’s our huge, buzzing community of SQL Server Professionals that makes it such a success.

Join us!

Steve Jones
Editor, SQLServerCentral.com

Already a member? Jump in:

Email address:   Password:   Remember me: Forgotten your password?
Steve Jones