IonelBurtan
Programmer
I have a table which has about 20 columns with a key of 3 fields (BaseId, IdObject, IdConstraint) in which I have information about all the constraints of all tables of 2 databases.
The probelm is:
For the constraints that exists on both databases I have 2 records, which I know that are diferent on non-key fields. How can I find out which field are different and type them with PRINT for example, in the most efficient way. The table has around 3000 lines , so I have to consider also the efficiency.
Ex:
BaseId IdObiect IdConstraint NumeConstraint Tip IsClustered ...
----------- ----------- ------------ --------------------- ------ -----------
5 215671816 247671930 PK_CMP_Test PK 1 ....
9 1084439533 1116439647 PK_CMP_Test PK 1 ....
Thanks,
s-)
Blessed is he who in the name of justice and goodwill, sheperds the weak through the valley of darkness...
The probelm is:
For the constraints that exists on both databases I have 2 records, which I know that are diferent on non-key fields. How can I find out which field are different and type them with PRINT for example, in the most efficient way. The table has around 3000 lines , so I have to consider also the efficiency.
Ex:
BaseId IdObiect IdConstraint NumeConstraint Tip IsClustered ...
----------- ----------- ------------ --------------------- ------ -----------
5 215671816 247671930 PK_CMP_Test PK 1 ....
9 1084439533 1116439647 PK_CMP_Test PK 1 ....
Thanks,
s-)
Blessed is he who in the name of justice and goodwill, sheperds the weak through the valley of darkness...