I'm am currently developing one project of many to come which will be using its own database and also data from a central database.
Example: the database "accountancy" with all accountancy package specific tables. the database "personelladministration" with its specific tables
But we also use data which is general and will be used in all projects like "countries", "cities", ... So we have put these tables in a separate database called "general"
We come from a db2 environment where we could create foreign keys between databases. However, we are switching to MS SQL server where it is not possible to put foreign keys between databases.
I have seen that a workaround would be to use triggers, but I'm not convinced that is a clean solution.
Are we doing something wrong in our setup? Because it seems right to me to put tables with general data in a separate database instead of having a table "countries" in every database, that seams difficult to maintain and inefficiënt.
What could be a good approach to overcome this?