سؤال

I'm distributing a database but I have two tables with foreign keys references to the other database in other server. I have already searched and found that I can't make a foreign key referring to a table in another database in other server. But, how can I resolve this problem? Creating views?

هل كانت مفيدة؟

المحلول

In the instance that needs to refer to "the other server", introduce "the other server" as a linked server and then use INSTED OF triggers to validate the FK constraints.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top