Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to create a Database Diagram in SQL Server involving 2 databases? [closed]

Is it possible to create a Database Diagram involving two databases in the same SQL Server project? I have a table in one database that I want to create a foreign key to another table in another database.

I'm using MS SQLServer 2008 R2.

like image 412
Al Lelopath Avatar asked Apr 10 '13 16:04

Al Lelopath


1 Answers

The only way to do it would be to create, in one database, empty surrogates for the tables in the other database, then create the diagram using the surrogates... You might want to put these surrogates in a schema that identifies them as surrogates for the actual tables in the other DB.

like image 87
Charles Bretana Avatar answered Oct 14 '22 00:10

Charles Bretana