Possible Duplicate:
foreign keys on table from different database
I just wanted to know whether there is any way of creating a foreign key reference on a column on a database table to another column of a different database table (Cross DB)
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
No, you cannot implement a foreign key across databases.
You could use a trigger to enforce a constraint, but be aware that triggers can be disabled and there are also scenarios where they won’t fire.