Click here to Skip to main content
15,911,707 members
Home / Discussions / Database
   

Database

 
JokeRe: Application Hang when DB down Pin
Mycroft Holmes10-Aug-08 21:02
professionalMycroft Holmes10-Aug-08 21:02 
AnswerRe: Application Hang when DB down Pin
SimulationofSai10-Aug-08 23:46
SimulationofSai10-Aug-08 23:46 
GeneralRe: Application Hang when DB down Pin
krishnan.s11-Aug-08 0:23
krishnan.s11-Aug-08 0:23 
QuestionFile format for data export/import Pin
petrveit10-Aug-08 8:56
petrveit10-Aug-08 8:56 
AnswerRe: File format for data export/import Pin
Mycroft Holmes10-Aug-08 16:36
professionalMycroft Holmes10-Aug-08 16:36 
GeneralRe: File format for data export/import Pin
petrveit10-Aug-08 19:11
petrveit10-Aug-08 19:11 
GeneralRe: File format for data export/import Pin
Mycroft Holmes10-Aug-08 20:20
professionalMycroft Holmes10-Aug-08 20:20 
QuestionDatabase Design Question - Table(s) for limiting user choices in a main table [modified] Pin
Elgin Rogers10-Aug-08 3:01
Elgin Rogers10-Aug-08 3:01 
I am starting a C# Winforms application where part of the main data entry form consists of seven comboboxes allowing the user to select a single item from each combobox, or leave the column blank if they so choose. I am representing the choices in the comboboxes as text, of course, but in my main table I will store the unique ID (int) that they choose.

I want the user to be able to maintain the lists that populate the seven comboboxes. What is the best database design for doing this? I have tried two different methodologies so far. First I created seven tables, one for each combobox, since each one has a different meta data type. The tables had three columns - ID, Name, and Description. The ID was the primary key that I related to the main table.

Then I thought it would be better to combine all seven lists into one "meta data" table by simply adding a TYPEID column to the table. That made designing the form to maintain the meta data lists a bit easier. However, when I try to relate my "metadata" table to my main table ON MULTIPLE COLUMNS AND enforce referential integrity I get the following error in the SQL Designer and the VS Dataset Designer:

" Introducing FOREIGN KEY constraint 'FK_docs_status' on table 'docs' may cause cycles or multiple cascade paths. Specify ON DELETE NO ACTION or ON UPDATE NO ACTION, or modify other FOREIGN KEY constraints. "

What is the best design pattern? Should I maintain seven different "metadata" tables?

Thank you.

Elgin Rogers

modified on Sunday, August 10, 2008 9:15 AM

AnswerRe: Database Design Question - Table(s) for limiting user choices in a main table [modified] Pin
Wendelius10-Aug-08 3:37
mentorWendelius10-Aug-08 3:37 
GeneralRe: Database Design Question - Table(s) for limiting user choices in a main table Pin
Elgin Rogers10-Aug-08 4:08
Elgin Rogers10-Aug-08 4:08 
GeneralRe: Database Design Question - Table(s) for limiting user choices in a main table Pin
Wendelius10-Aug-08 4:49
mentorWendelius10-Aug-08 4:49 
AnswerRe: Database Design Question - Table(s) for limiting user choices in a main table Pin
Elgin Rogers10-Aug-08 10:34
Elgin Rogers10-Aug-08 10:34 
GeneralRe: Database Design Question - Table(s) for limiting user choices in a main table Pin
Wendelius10-Aug-08 11:18
mentorWendelius10-Aug-08 11:18 
AnswerRe: Database Design Question - Table(s) for limiting user choices in a main table Pin
Mycroft Holmes10-Aug-08 16:30
professionalMycroft Holmes10-Aug-08 16:30 
Questiondate format and change from gregorian date to hijri date Pin
kimo code9-Aug-08 21:02
kimo code9-Aug-08 21:02 
AnswerRe: date format and change from gregorian date to hijri date Pin
Wendelius9-Aug-08 23:02
mentorWendelius9-Aug-08 23:02 
AnswerRe: date format and change from gregorian date to hijri date Pin
Jerry Hammond10-Aug-08 4:58
Jerry Hammond10-Aug-08 4:58 
Questionbetween and like condition Pin
kimo code9-Aug-08 19:54
kimo code9-Aug-08 19:54 
AnswerRe: between and like condition Pin
PIEBALDconsult9-Aug-08 20:03
mvePIEBALDconsult9-Aug-08 20:03 
GeneralRe: between and like condition Pin
kimo code9-Aug-08 20:17
kimo code9-Aug-08 20:17 
AnswerRe: between and like condition Pin
Wendelius9-Aug-08 23:00
mentorWendelius9-Aug-08 23:00 
GeneralRe: between and like condition Pin
kimo code10-Aug-08 20:01
kimo code10-Aug-08 20:01 
GeneralRe: between and like condition Pin
Wendelius11-Aug-08 5:43
mentorWendelius11-Aug-08 5:43 
AnswerRe: between and like condition Pin
Peter Appleby19-Aug-08 7:08
Peter Appleby19-Aug-08 7:08 
GeneralRe: between and like condition Pin
kimo code19-Aug-08 19:39
kimo code19-Aug-08 19:39 

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.