Re: Multiple databases or not

From: Bonj (benjtaylor)
Date: 10/21/04


Date: Thu, 21 Oct 2004 21:57:18 +0100

Be sure to split it into layers - for example, have one 'layer' where the
suppliers can have different codes, and one where they are, for example,
translated into a standard format or given your own ID (if that's what you
are planning to do). The difference being that one layer's specific, while
the next is generic and combines them. Making each and every layer big
enough to contain business logic if need be is important.
The 'layers', can ideally be, views.
For instance, one of our systems has two layers of views, one set that
combines values from all tables and converts all values to an acceptable
format to perform calculations on, and another that returns the columns in
the correct order for the report and performs any formulas and does derived
columns, etc. Trying to implement all that logic in just one SP would be a
nightmare - trying to do too many things at once. But as two separate
layers, it works a dream.

"Ryan Johnson" <RyanJohnson@discussions.microsoft.com> wrote in message
news:A1C32A94-06F7-4E62-92C0-BC695B84F76C@microsoft.com...
> Hi there
> We're rewritting and redesigned our core database but have a slieght
> delima
> with whats the best practice with regard to importing / utilising external
> data.
> Basically we use external product list from our suppliers which is
> automated
> into our existing database.
> say tbl_MSDProductList1 as we buy this from MSD supplier.
> (the product list tables have around 400,000 records)
>
> Now with the new design, we are looking at using completely different
> product list from a different supplier in america - depending on the
> client.
> This might grow as we expand into different countries.
>
> So, should we have this imported data in another database for each
> supplier(Supplier1.dbo.tblProdList1, Supplier2.dbo.tblProdList2 etc), or
> somehow have them incorporated as part of our application via a view.
> To complicate things.. the suppliers use different codes and have
> different
> field names.
>
> What I was thinking was all the core application in one database and this
> uses a view to access the external databases dependant on the client.
> thereby abstracting the productlist from the core application and enabling
> us
> to swop and change suppliers.
>
> i.e. one view pulls in productlist 1
> i.e. one view pulls in productlist 2
>
> a generic view which concatinates them then using this clientID this pulls
> the correct product lists depending on client.
>
> Any one done this or have any ideas or best practices?



Relevant Pages

  • RE: Multiple databases or not
    ... And thus with growing number of 'suppliers' do we want to keep adding this ... > into our existing database. ... > product list from a different supplier in america - depending on the client. ... > the correct product lists depending on client. ...
    (microsoft.public.sqlserver.programming)
  • Re: Multiple databases or not
    ... In addition to the other comments: consider the effect of having multiple database will have on your ... > Basically we use external product list from our suppliers which is automated ... > product list from a different supplier in america - depending on the client. ... > the correct product lists depending on client. ...
    (microsoft.public.sqlserver.programming)
  • Re: export
    ... > And Digital Mars isn't on the approved list of suppliers at my customer, ... Probably because you don't have such layers. ... would generate incremental revenue of $20,000 is going to get greenlighted ...
    (comp.lang.cpp)
  • Layers pellets
    ... I have been buying my layers' pellets from a local ag suppliers. ... I'm a bit concerned because there is nothing on the sack to state the ...
    (sci.agriculture.poultry)
  • RE: Multiple databases or not
    ... security in SQL Server. ... Security is defined at the *user* level, ... of thing then you should educate them about the facts of database security. ... >> Basically we use external product list from our suppliers which is automated ...
    (microsoft.public.sqlserver.programming)