August 4, 2006 at 3:17 pm
HI. I have a developer that wants to create a relationship between 2 tables in 2 different databases. I know in table designer that cannot be done because when creating relationships it will only tables from 1 database. Is there a way to accomplish this via another route?
thanks,
Juanita
August 4, 2006 at 4:24 pm
Usually I've seen this controlled via triggers.
August 4, 2006 at 7:56 pm
Spot on... I absolutely agree with Aaron. In fact, I don't know of any other way to establish DRI between two different databases.
--Jeff Moden
Change is inevitable... Change for the better is not.
August 7, 2006 at 3:49 pm
I agree to above two having triggers where you need triggers on both tables. On the parent to check deletes and updates, and one of the child to check insert and updates.
Worst suggestion is about Replication Pub/Sub then add FK on SUB. but still i will not recommend.
i am not confortable to implement a PK / FK relationship via CHECK constraints that use UDFs for both tables on 2 different DB.
Follow this link for SQL 2005 in refrence to DRI:-
Thanks
Viewing 4 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply