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)
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)
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.