Separating weakly linked database schemas
Posted
by jldugger
on Stack Overflow
See other posts from Stack Overflow
or by jldugger
Published on 2010-04-27T19:24:55Z
Indexed on
2010/04/27
23:23 UTC
Read the original article
Hit count: 326
I've been tasked with revisiting a database schema we designed and use internally for various ticketing and reporting systems. Currently there exists about 40 tables in one Oracle database schema supporting perhaps six webapps.
However, there's one unifying relationship amongst them all: a rooms table describing the room. Room name, purpose and other data are thrown into a shared table for each app. My initial idea was to pull each of these applications into a separate database, and perform joins between a given database and the room database. But I've discovered this solution prevents foreign key constraints in SQL Server 2005. It seems silly to duplicate one table for each app and keep those multiple copies synchronized.
Should I just leave everything in one large DB, or is there something else I can do separate the tables without losing FK constraints?
© Stack Overflow or respective owner