Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Administration (2000)
 Databases in one or separate

Author  Topic 

Forget_About_It
Starting Member

11 Posts

Posted - 2003-04-29 : 10:16:59
Were currenlty looking to migrate our 10 large databases to SQL, however someone advise us that it would be earier to move then into one database in SQL rather then have them on sepearate databases.

Now almost all of these databases link to each other, reading other tables and field names when pulling down a query. What I need to know is it better having them in one database or separte (which I imagine it to be way better).

Separate or one?

And if seperate how do you relate the databases and tables?

The reason I'm asking this, the person used to work in a SQL environment, however I question what they are doing. SQL is something new to me and everyone here, so I want to do it right the first time.

ValterBorges
Master Smack Fu Yak Hacker

1429 Posts

Posted - 2003-04-29 : 10:56:42
If the tables are related I would likely go with 1 database.

http://www.sqlteam.com/item.asp?ItemID=751
http://www.sqlteam.com/item.asp?ItemID=1452
http://www.sqlteam.com/item.asp?ItemID=591

Although it still depends on what you're trying to accomplish with the databases.

If you were to go with separate databases all you tsql would have to use the following convention to address objects.

database.owner.object

the full address is server.database.owner.object





Edited by - ValterBorges on 04/29/2003 10:58:25
Go to Top of Page

simondeutsch
Aged Yak Warrior

547 Posts

Posted - 2003-04-29 : 10:59:30
And if you have relationships across separate databases, it's hard to maintain data integrity. You cannot use DRI constraints, but have to use triggers to cross-reference databases. This can be a royal pain.

Sarah Berger MCSD
Go to Top of Page
   

- Advertisement -