Click here to Skip to main content
15,902,860 members
Home / Discussions / Database
   

Database

 
GeneralRe: Yukon Vs 2000 Pin
17-May-05 21:17
suss17-May-05 21:17 
GeneralRe: Yukon Vs 2000 Pin
Christian Graus18-May-05 12:35
protectorChristian Graus18-May-05 12:35 
GeneralMEMO Pin
Dead Ghost16-May-05 14:21
Dead Ghost16-May-05 14:21 
GeneralMySQL problem with varchar primary key Pin
razialx16-May-05 9:39
razialx16-May-05 9:39 
GeneralRe: MySQL problem with varchar primary key Pin
Christian Graus16-May-05 14:51
protectorChristian Graus16-May-05 14:51 
GeneralRe: MySQL problem with varchar primary key Pin
Colin Angus Mackay16-May-05 20:26
Colin Angus Mackay16-May-05 20:26 
GeneralRe: MySQL problem with varchar primary key Pin
niansah16-May-05 21:04
niansah16-May-05 21:04 
GeneralRe: MySQL problem with varchar primary key Pin
razialx20-May-05 10:44
razialx20-May-05 10:44 
Guys, I know its terrible. I don't have a choice here.

I will explain a little about the project and my role in it...

This other student developed an online questionnaire program for use in teacher evaluations. I did not initiate this project or have any part in its design... I wish I had at this point. This last semester I was in a Windows Programming course, and having developed quite a bit of software in .NET I was allowed to work on a variety of projects in place of creating console based Hello, World! demos. The last project I was placed on was this. The project was already considered 'done' when I started working on it, they just wanted me to convert it from a retail database into an open database (the only open source support I have seen at this university...). When I inquired about this terrible design, I was told it was this way so that question numbers could be represented as strings and be kept unique. By this I mean the data could be described as such:
"Q1" "Did your teacher give you a better understanding of the subject material?" "bool"
"Q1.1" "Yes"
"Q1.2" "No"
Right, well thats all good until you consider just using an auto-incrementing integer as the primary key to reference things and attributing the question names as being unique.

I must also restate that I can NOT change this design, no matter how difficult it is to accept... /sigh.
I can still only plead with you folks and your experience on this, because I must get it working.

If we were to only consider the varchars as being 10 in lenght (because if someone were to show me a question number 8k long, I would quit programming!). Do you know how I could use this as a foreign key in a constraint statement?

If you know for a fact that it will not be possible, tell me so I can try another avenue.

And just to pull the sympathy card on my plight, I have to piece together all SQL statements from 50+ lines of :
strCmd += "...";
strCmd += "...";
...
strCmd += "...";
and so on and so on. Because putting the SQL statements into an editable format would be out of the question.

Thank you for those who have replied thus far, I hope you can help me come to a solution on my problem.

Tim
Generaltransaction, asp.net and access db Pin
fuel2run16-May-05 3:55
fuel2run16-May-05 3:55 
GeneralListBox event in a DataGrid's Header Pin
Nizar Abdeljaoued16-May-05 1:15
Nizar Abdeljaoued16-May-05 1:15 
GeneralRe: TextBox event in a DataGrid's Header Pin
Colin Angus Mackay16-May-05 1:36
Colin Angus Mackay16-May-05 1:36 
GeneralRe: ListBox event in a DataGrid's Header Pin
Nizar Abdeljaoued16-May-05 1:58
Nizar Abdeljaoued16-May-05 1:58 
GeneralQuestion concerning Sorting DataGrids Pin
nad226315-May-05 5:06
nad226315-May-05 5:06 
GeneralRe: Question concerning Sorting DataGrids Pin
Dominic Farr28-Jun-05 20:03
Dominic Farr28-Jun-05 20:03 
GeneralRe: Question concerning Sorting DataGrids Pin
Dominic Farr30-Jun-05 6:51
Dominic Farr30-Jun-05 6:51 
Questionupdateable query? Pin
Jerry Hammond15-May-05 4:56
Jerry Hammond15-May-05 4:56 
AnswerRe: updateable query? Pin
anj198315-May-05 5:20
anj198315-May-05 5:20 
GeneralTimeSpan instead of DateTime in a DataSet populated from a SQL Anywhere DB Pin
JasonJB14-May-05 4:38
JasonJB14-May-05 4:38 
GeneralGenerate Auto Number in SQL server 2000 Pin
imshally8114-May-05 0:42
imshally8114-May-05 0:42 
GeneralRe: Generate Auto Number in SQL server 2000 Pin
Colin Angus Mackay14-May-05 3:55
Colin Angus Mackay14-May-05 3:55 
GeneralLogin page Pin
Desi Bravo13-May-05 12:38
Desi Bravo13-May-05 12:38 
GeneralRe: Login page Pin
MoustafaS13-May-05 14:34
MoustafaS13-May-05 14:34 
GeneralRe: Login page Pin
Desi Bravo14-May-05 19:55
Desi Bravo14-May-05 19:55 
GeneralRe: Login page Pin
MoustafaS15-May-05 0:32
MoustafaS15-May-05 0:32 
GeneralRe: Login page Pin
Desi Bravo16-May-05 15:35
Desi Bravo16-May-05 15:35 

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.