Click here to Skip to main content
15,891,529 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
I have two server . between which i need to check referential integrity and other constraint.

Like the below example.It will surely descibe the condition and issue.

There is two server SERVER1 and SERVER2.
SERVER1 having Database DB1
and SERVER2 having Database DB2

DB1 having table TABLE1 (ID Bigint Indentiry (1,1),CreateDate datetime DefaultValue GETDATE())

DB2 having same table TABLE1(ID Bigint ,CreateDate datetime)


Also there are many forieng keys present in DB1 but not in DB2.

Please suggest me to find out what keys and constraints are missing in DB2 and also if there is any way to script out all the missing component. so that i ran that scripts on DB2.
Posted
Updated 19-Apr-11 22:04pm
v2

1 solution

Hi Rahul,

I think this may help you

Database Schema Comparison Utility[^]

Thanks,
Imdadhusen
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900