views:

27

answers:

1

. A distributed database is a collection of

multiple, logically interrelated databases

distributed over a computer network.

Sometimes "distributed database system" is

used to refer jointly to the distributed

database and the distributed DBMS.

please can any one give a simple yet clear example of "multiple logically interrelated databases.. have heard of tables being related logically "relational..."

but databases?

A: 

The databases would be logically related, but not actually related in the way you think of tables being related (foreign keys).

One way of doing this is to put some tables from your schema into one database and other tables into another database. For instance, you might put your read-heavy data into one database optimized for reading, and your write-heavy data in another database optimized for writing. Those tables might still be logically related, but you wouldn't be able to use foreign keys since they are in different databases

Another way of doing this would be to have a single table split across multiple databases. For instance if you have a large site with an international presence and several data centers around the world, you might have a users table that is partitioned across those databases with users from a given country residing in the users table on the database closest to them geographically.

Eric Petroelje
thanks will you please also explain the term, the technology to use for achieving this "For instance if you have a large site with an international presence and several data centers around the world, you might have a users table that is partitioned across those databases with users from a given country residing in the users table on the database closest to them geographically." in sql server 08? is it replication? as i have seen partioning the table but it doesnot give any thing that keep <5000 on cpu1 and rest on computer 2..
@user - This is not something that is generally supported by databases natively. It is something that you would likely need to handle entirely in your application logic.
Eric Petroelje