473,379 Members | 1,201 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,379 software developers and data experts.

DB design

Hi,

How to design a generalized database that is used to store datas from
any other database. The thing is that the tables and datas of the
source database is not known while designing this target database. The
design should be a generalized one to store data from any database. Can
dummy tables be used? Should there be a provion to create the actual
tables from the source db?? Or is there any better way??

Thanks in advance...
Baski.

Feb 28 '06 #1
3 1414
"Baski" <ma*********@gmail.com> wrote in message
news:11**********************@i39g2000cwa.googlegr oups.com...
Hi,

How to design a generalized database that is used to store datas from
any other database. The thing is that the tables and datas of the
source database is not known while designing this target database. The
design should be a generalized one to store data from any database. Can
dummy tables be used? Should there be a provion to create the actual
tables from the source db?? Or is there any better way??

Thanks in advance...
Baski.


Back in about 1990, IBM realized that customers wanted a data dictionary
that was written using DB2 that could be used to capture entity and
attribute information in the analysis, design, development, and production
support of a project. (Back in those days we had to draw the
entity-relationship diagrams by hand). The DB2 system catalog only stored
information about tables once the application was completely developed, and
allowed little capability for data definitions and domains.

So IBM started a project to develop a product called the Repository that was
so generalized that it not only stored metadata about an application, but it
could store information about anything that could be conceived. The
Repository was so generic that even the tables that stored entities and
attributes were not hard-coded in the Repository..

Even though the Repository was released as a beta product, and IBM even
taught official classes on how it worked, it was never released as a product
and soon became known as the Suppository. It was a gigantic failure and a
huge write off for IBM..

Don't do it. Generic data models are the road to disaster.
Feb 28 '06 #2
Thanks.
Yes it is not advisable to think of a very generic database to store
anything that is possible. But here, I have my database that has some
standard set of tables to cater to most functions of my application. In
addition I need to accomodate some amount of informantion that is to be
fetched from some other database. May be data of 5 - 10 tables of the
source db or data got from quering on few tables. But these tables are
not necessarily know prior hand.
How to handle this?? Is there a way out?

Feb 28 '06 #3
Baski wrote:
Thanks.
Yes it is not advisable to think of a very generic database to store
anything that is possible. But here, I have my database that has some
standard set of tables to cater to most functions of my application. In
addition I need to accomodate some amount of informantion that is to be
fetched from some other database. May be data of 5 - 10 tables of the
source db or data got from quering on few tables. But these tables are
not necessarily know prior hand.
How to handle this?? Is there a way out?

You have to pivot the information.
That is you have the following columns:

(tableschema, tablename, columnname, value)

Works best if you use all strings otherwise you need different value
columns for different types and remember the data type as well.

You require good indexing to make this work and of course it's less than
perfect.

When you're dealing with schema-chaos XML may be the better answer.

Cheers
Serge
--
Serge Rielau
DB2 Solutions Development
IBM Toronto Lab
Feb 28 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: adb | last post by:
I came up with a replication configuration that is basically the result of all the restrictions of replication as well as the restrictions of allowable software on work PC's and I was curious if...
3
by: zlst | last post by:
Many technological innovations rely upon User Interface Design to elevate their technical complexity to a usable product. Technology alone may not win user acceptance and subsequent marketability....
0
by: Edward Diener | last post by:
In Borland's VCL it was possible to divide a component into design time and run time DLLs. The design time DLL would only be necessary when the programmer was setting a component's properties or...
7
by: Shimon Sim | last post by:
I have a custom composite control I have following property
2
by: Paul Cheetham | last post by:
Hi, I have moved an application from VS2003 to VS2005, and I am now unable to view most of my forms in the designer. The majority of the forms in my project are derived from class PACForm,...
1
by: Nogusta123 | last post by:
Hi, I have had a lot of problems getting web pages, master pages and content pages to render in VS2005 design view the same as they would in Internet Explorer. I did a lot of looking on the...
0
by: YellowFin Announcements | last post by:
Introduction Usability and relevance have been identified as the major factors preventing mass adoption of Business Intelligence applications. What we have today are traditional BI tools that...
19
by: neelsmail | last post by:
Hi, I have been working on C++ for some time now, and I think I have a flair for design (which just might be only my imagination over- stretched.. :) ). So, I tried to find a design...
10
by: vital | last post by:
Hi, I am designing the middle tier of a project. It has 6 classes and microsoft application data access block. The six classes are DBServices, Logger, ProjectServices ... etc. and all these...
4
by: Ken Fine | last post by:
I've been living with a frustrating issue with VS.NET for some months now and I need to figure out what the problem is. Hopefully someone has run into the same issue and can suggest a fix. I...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.