Click here to Skip to main content
15,887,776 members
Home / Discussions / Database
   

Database

 
QuestionAttaching and detaching a DB from another computer Pin
Mustafa Ismail Mustafa12-Mar-09 7:40
Mustafa Ismail Mustafa12-Mar-09 7:40 
QuestionLoading large XML files into db2 Pin
Gktony12-Mar-09 0:46
Gktony12-Mar-09 0:46 
QuestionTransaction Log Backup Too Big Pin
Elizma11-Mar-09 23:40
Elizma11-Mar-09 23:40 
AnswerRe: Transaction Log Backup Too Big Pin
Eddy Vluggen12-Mar-09 3:50
professionalEddy Vluggen12-Mar-09 3:50 
QuestionMultiple Databases Pin
Brendan Vogt11-Mar-09 20:38
Brendan Vogt11-Mar-09 20:38 
AnswerRe: Multiple Databases Pin
Eddy Vluggen12-Mar-09 4:08
professionalEddy Vluggen12-Mar-09 4:08 
GeneralRe: Multiple Databases Pin
Brendan Vogt14-Mar-09 20:32
Brendan Vogt14-Mar-09 20:32 
AnswerRe: Multiple Databases Pin
David Mujica12-Mar-09 4:40
David Mujica12-Mar-09 4:40 
You may want to re-think how your application works to simplify the data storage.

If I understand you correctly, do you have the following situation ?

Given multiple companies A,B,C,etc each having employees Tom, Dick and Harry, etc.

Within one table you want to store all employees for all of your companies.

One way to make a primary key would be to use a composite key of CompanyID + EmpID.

If you extend this type of logic across all of your tables, you can have an application that supports many companies all within the same database schema.

This is one way a Software-As-A-Service provider handles this situation. There are many complications to this model, but it could work for you.

Pros:
1) Easy backup. One database, everything is done in one shot.
2) Everyone is using the same schema design level; one application version to support.

Cons:
1) Nearly impossible to provide a rollback for a given company.
2) An applicaiton upgrade will force all of your companies to upgrade.

You can think of a whole pile of other pros and cons.

Hope this gives you something to think about. Smile | :)

Maybe I just ranted on something that has nothing to do with your question. D'Oh! | :doh:
QuestionRe: Multiple Databases Pin
Brendan Vogt14-Mar-09 20:31
Brendan Vogt14-Mar-09 20:31 
AnswerRe: Multiple Databases Pin
Eddy Vluggen15-Mar-09 0:40
professionalEddy Vluggen15-Mar-09 0:40 
GeneralRe: Multiple Databases Pin
Brendan Vogt15-Mar-09 5:25
Brendan Vogt15-Mar-09 5:25 
GeneralRe: Multiple Databases Pin
Eddy Vluggen15-Mar-09 5:47
professionalEddy Vluggen15-Mar-09 5:47 
GeneralReplicate Pin
David Mujica15-Mar-09 5:26
David Mujica15-Mar-09 5:26 
GeneralRe: Replicate Pin
Brendan Vogt15-Mar-09 5:54
Brendan Vogt15-Mar-09 5:54 
Questionselect upcoming birthday? Pin
Meax11-Mar-09 7:13
Meax11-Mar-09 7:13 
AnswerRe: select upcoming birthday? Pin
Syed Mehroz Alam11-Mar-09 7:39
Syed Mehroz Alam11-Mar-09 7:39 
GeneralRe: select upcoming birthday? Pin
Meax11-Mar-09 8:06
Meax11-Mar-09 8:06 
GeneralRe: select upcoming birthday? Pin
Syed Mehroz Alam11-Mar-09 19:39
Syed Mehroz Alam11-Mar-09 19:39 
AnswerRe: select upcoming birthday? Pin
Luc Pattyn11-Mar-09 8:35
sitebuilderLuc Pattyn11-Mar-09 8:35 
GeneralRe: select upcoming birthday? Pin
Meax11-Mar-09 8:38
Meax11-Mar-09 8:38 
AnswerRe: select upcoming birthday? Pin
Luc Pattyn11-Mar-09 8:54
sitebuilderLuc Pattyn11-Mar-09 8:54 
GeneralRe: select upcoming birthday? Pin
Meax11-Mar-09 9:41
Meax11-Mar-09 9:41 
GeneralRe: select upcoming birthday? Pin
Luc Pattyn11-Mar-09 10:10
sitebuilderLuc Pattyn11-Mar-09 10:10 
GeneralRe: select upcoming birthday? Pin
Meax11-Mar-09 21:10
Meax11-Mar-09 21:10 
GeneralRe: select upcoming birthday? Pin
Jay Royall11-Mar-09 23:00
Jay Royall11-Mar-09 23:00 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.