I know that this thread is most likely dead but i was also searching for something similar to davexpt
Multiple applications sharing common data and wanting to maintain referential integrity.
So i did a test in MySQL:
Code:
drop database db2;
drop database db1;
create database db1;
create database db2;
use db1;
create table test (id int primary key);
use db2;
create table test(id int key, fkey int);
alter table test add foreign key(fkey) references db1.test(id);
insert into db1.test(id) values (1);
insert into db2.test(id,fkey) values(1,1);
insert into db2.test(id,fkey) values(2,2);
Fails, as it should, on the last command