Click here to Skip to main content
15,914,594 members
Home / Discussions / Database
   

Database

 
AnswerRe: row.Insert(x) isn't updating my table. Pin
Ritesh123427-Feb-06 19:53
Ritesh123427-Feb-06 19:53 
AnswerRe: row.Insert(x) isn't updating my table. Pin
3197515-Mar-06 10:34
3197515-Mar-06 10:34 
QuestionExecute an SQL command with return value Pin
stephanm@cae.ca27-Feb-06 8:33
stephanm@cae.ca27-Feb-06 8:33 
QuestionSQL Server Comparing Dates Pin
Murthy India27-Feb-06 2:36
Murthy India27-Feb-06 2:36 
AnswerRe: SQL Server Comparing Dates Pin
J4amieC27-Feb-06 2:48
J4amieC27-Feb-06 2:48 
GeneralRe: SQL Server Comparing Dates Pin
Paul Conrad27-Feb-06 15:33
professionalPaul Conrad27-Feb-06 15:33 
GeneralRe: SQL Server Comparing Dates Pin
Murthy India27-Feb-06 18:19
Murthy India27-Feb-06 18:19 
QuestionDynamic Database Design Pin
Ingo27-Feb-06 0:20
Ingo27-Feb-06 0:20 
Hello,

I've got a problem. The Task is to create a database for a special kind of report.
For the further description I call the template report and a data acquisition for a report survey.

Every report has got sections which can occurs many times in a survey and every survey has to be hold in different version. A report can consist of many hundred or thousand datafields and a survey can be even larger, because it can occurs many times.
A version of a survey may only have one new entry, then all fields except the one entered would be NULL. An operator can validate every new entry, so that a hold a validated version of the survey consisting of all validated fields from the different versions (where every field can only be validated in one version. if a field is validated in another version, it overwrites the validate state in the former validate fieldversion).
When I have twenty versions I want to be able to read the latest version (with all the previous data, where this version is NULL) or a previous version (where the fields which are NULL are filled with previous version data) or the validated version (consisting of perhaps all versions).

The next challenge is that a report can change every week. Perhaps there will be twenty new fields and e.g. twelve will be obsolete. A old survey may be updated to a new report version but it must be possible to get all obsolete data, when watching it with a old report version.

From these reports I generate fix tables in another database fill with only the importet values by the latest validated version. So in my database only a history will be stored and - if you want to look up a survey - a survey-report can be created.

The data in the fields can have different types. Some are text, others are int or double or bit, but fix for a special field.

Now I don't want to make tables for every report (there will be many reports) and every version of a report, because I would have a table for every repeatable part and every of these tables can have hundreds of columns. In the worst case only one or two fields will be fields in a survey-version and the report-version won't be compatible when I drop or add some fields for a new version.
So I thought about a dynamic database. I can store every report-version and survey-version in a small set of tables. I would split the different value-types in different tables, so that the value can be found in different tables.

I could generate stored procedures on this, because the tables won't change. As only few people would work with it and the database is strictly seperated from the main database, I think I could live with the time a query will take longer and I will save lot of design time for every change.

But I don't know if I forgot something. Is it a bad idea? I talked to some database designers in our company. No one happy about such a solution (I ain't, too), but no one knows a better handable solution. But perhaps some of the board users know?

Thanks,
Ingo


------------------------------
A bug in a Microsoft Product? No! It's not a bug it's an undocumented feature!
AnswerRe: Dynamic Database Design Pin
darkelv27-Feb-06 4:17
darkelv27-Feb-06 4:17 
GeneralRe: Dynamic Database Design Pin
Ingo27-Feb-06 21:20
Ingo27-Feb-06 21:20 
Questionnewbie: how to get started Pin
rnvrnv26-Feb-06 23:54
rnvrnv26-Feb-06 23:54 
AnswerRe: newbie: how to get started Pin
Paul Conrad27-Feb-06 15:42
professionalPaul Conrad27-Feb-06 15:42 
QuestionSQL Profiler trace and Performance Pin
devvvy26-Feb-06 14:56
devvvy26-Feb-06 14:56 
AnswerRe: SQL Profiler trace and Performance Pin
Andy Brummer27-Feb-06 18:50
sitebuilderAndy Brummer27-Feb-06 18:50 
QuestionSQL Server log - recycling Pin
devvvy26-Feb-06 14:42
devvvy26-Feb-06 14:42 
Questionoj Pin
dev dhoundiyal26-Feb-06 5:50
dev dhoundiyal26-Feb-06 5:50 
AnswerRe: oj Pin
Colin Angus Mackay26-Feb-06 6:29
Colin Angus Mackay26-Feb-06 6:29 
GeneralRe: oj Pin
J4amieC26-Feb-06 22:38
J4amieC26-Feb-06 22:38 
QuestionUploading images to sql db Pin
foolygoofy2625-Feb-06 16:55
foolygoofy2625-Feb-06 16:55 
AnswerRe: Uploading images to sql db Pin
Luis Alonso Ramos26-Feb-06 14:17
Luis Alonso Ramos26-Feb-06 14:17 
QuestionHow can I create a report from password protected database in C#? Pin
zoxter25-Feb-06 9:10
zoxter25-Feb-06 9:10 
QuestionMySQL Help Pin
Expert Coming25-Feb-06 8:07
Expert Coming25-Feb-06 8:07 
AnswerRe: MySQL Help Pin
Paul Conrad25-Feb-06 8:49
professionalPaul Conrad25-Feb-06 8:49 
GeneralRe: MySQL Help Pin
Expert Coming25-Feb-06 20:19
Expert Coming25-Feb-06 20:19 
GeneralRe: MySQL Help Pin
Paul Conrad26-Feb-06 13:06
professionalPaul Conrad26-Feb-06 13:06 

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.