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 2008 Forums
 Transact-SQL (2008)
 More bases or one?

Author  Topic 

programer
Posting Yak Master

221 Posts

Posted - 2011-01-23 : 07:43:26
Hi,

I have several web applications with the same function so I am interested in your proposal.
What is better for you that for every web page, or use one database for each application separately?
The problem arises when I have 10 applications and 10 different databases. If there is a fix in one database I
correct at all.

What would you do: one database for all 10 applications or 10 separate databases?

Lp,
Dejan

dataguru1971
Master Smack Fu Yak Hacker

1464 Posts

Posted - 2011-01-23 : 07:50:43
10 separate databases, but for commonly used or recurring functions that are not application specific, you could create a common database for such things. All your functions could be in one database that way, but your application specific data would be in application specific databases. (application specific functions/procs would be in the application specific database.) our shop does something similar to that so that there is only one location for objects potentially accessed from all the applications.





Poor planning on your part does not constitute an emergency on my part.
Go to Top of Page

programer
Posting Yak Master

221 Posts

Posted - 2011-01-23 : 08:34:22
quote:
Originally posted by dataguru1971

10 separate databases, but for commonly used or recurring functions that are not application specific, you could create a common database for such things. All your functions could be in one database that way, but your application specific data would be in application specific databases. (application specific functions/procs would be in the application specific database.) our shop does something similar to that so that there is only one location for objects potentially accessed from all the applications.





Poor planning on your part does not constitute an emergency on my part.




Thanks for your reply.

How do I save ID_aplikacation?

example:
tbl_aspnet_membership
column ID_aplication primarykey

If one store to the domain www.domain1.com, and one stores data on the domain www.domain2.com how to save the ID of the first domain, and how to ID the other domain?

The data read from the config file on each domain?

Eg.:
www.domain1.com

Config file contains:
ID = 1



Eg.
www.domanin2.com

Config file contains:
ID = 2




Do you have an idea?
Go to Top of Page

dataguru1971
Master Smack Fu Yak Hacker

1464 Posts

Posted - 2011-01-23 : 08:55:56
Not sure I understand the question....now I am not sure I understood the first one...what does this have to do with the first question?



Poor planning on your part does not constitute an emergency on my part.
Go to Top of Page

programer
Posting Yak Master

221 Posts

Posted - 2011-01-23 : 09:01:04
quote:
Originally posted by dataguru1971

Not sure I understand the question....now I am not sure I understood the first one...what does this have to do with the first question?



Poor planning on your part does not constitute an emergency on my part.






If I have one base and 10 different applications
how to save an additional attribute: ID of the first applications, ID other applications, etc... ?

In the config.in file?

Go to Top of Page

denis_the_thief
Aged Yak Warrior

596 Posts

Posted - 2011-01-24 : 09:46:26
Is this like you have 1 Web application with 10 different Customers on 10 Different Databases. All 10 Databases are same table structure?
Go to Top of Page
   

- Advertisement -