Click here to Skip to main content
16,007,809 members
Home / Discussions / C#
   

C#

 
GeneralSQL and loops Pin
mhmo27-Jun-05 19:50
mhmo27-Jun-05 19:50 
GeneralRe: SQL and loops Pin
Christian Graus27-Jun-05 19:53
protectorChristian Graus27-Jun-05 19:53 
GeneralRe: SQL and loops Pin
mhmo27-Jun-05 20:02
mhmo27-Jun-05 20:02 
GeneralRe: SQL and loops Pin
Christian Graus27-Jun-05 20:04
protectorChristian Graus27-Jun-05 20:04 
GeneralRe: SQL and loops Pin
mhmo27-Jun-05 20:11
mhmo27-Jun-05 20:11 
GeneralRe: SQL and loops Pin
Christian Graus27-Jun-05 20:31
protectorChristian Graus27-Jun-05 20:31 
GeneralRe: SQL and loops Pin
mhmo27-Jun-05 20:38
mhmo27-Jun-05 20:38 
GeneralRe: SQL and loops Pin
Christian Graus27-Jun-05 20:48
protectorChristian Graus27-Jun-05 20:48 
By a factor of 210. Instead of 210 calls to the database, you make one, and then get all the values back into a local object that you can step through to find the replies.

If the questions are multiple choice, and there are always 210 questions, then there are reasons to put an answer per column, in terms of being able to query the data. I'd just name them Answer1, Answer2 or something, so I didn't need to use [] all the time.

Actually, even then I think I'd be more inclined to do a table that contains the student ID, the question ID and the answer in three columns, which would allow me to have as many or as few questions as I liked, still search the database for answers, and not waste any space.


Christian Graus - Microsoft MVP - C++
GeneralRe: SQL and loops Pin
mhmo27-Jun-05 20:52
mhmo27-Jun-05 20:52 
GeneralRe: SQL and loops Pin
Christian Graus27-Jun-05 20:56
protectorChristian Graus27-Jun-05 20:56 
GeneralRe: SQL and loops Pin
mhmo27-Jun-05 22:34
mhmo27-Jun-05 22:34 
GeneralRe: SQL and loops Pin
MicrosoftBob28-Jun-05 4:45
MicrosoftBob28-Jun-05 4:45 
GeneralRe: SQL and loops Pin
J4amieC27-Jun-05 22:15
J4amieC27-Jun-05 22:15 
GeneralRe: SQL and loops Pin
mhmo27-Jun-05 22:35
mhmo27-Jun-05 22:35 
GeneralRe: SQL and loops Pin
J4amieC28-Jun-05 2:48
J4amieC28-Jun-05 2:48 
GeneralRe: SQL and loops Pin
Matt Gerrans28-Jun-05 9:42
Matt Gerrans28-Jun-05 9:42 
GeneralRe: SQL and loops Pin
mhmo28-Jun-05 19:30
mhmo28-Jun-05 19:30 
GeneralADOX table Pin
Bruzak27-Jun-05 19:43
Bruzak27-Jun-05 19:43 
GeneralMultiple Forms Pin
Shashidharreddy27-Jun-05 19:39
Shashidharreddy27-Jun-05 19:39 
GeneralRe: Multiple Forms Pin
Christian Graus27-Jun-05 19:49
protectorChristian Graus27-Jun-05 19:49 
GeneralNeed help in C#.NET 2005 beta 2 Pin
tom_dx27-Jun-05 15:03
tom_dx27-Jun-05 15:03 
GeneralRe: Need help in C#.NET 2005 beta 2 Pin
S. Senthil Kumar27-Jun-05 16:29
S. Senthil Kumar27-Jun-05 16:29 
GeneralRe: Need help in C#.NET 2005 beta 2 Pin
Christian Graus27-Jun-05 16:39
protectorChristian Graus27-Jun-05 16:39 
GeneralRe: Need help in C#.NET 2005 beta 2 Pin
tom_dx28-Jun-05 6:24
tom_dx28-Jun-05 6:24 
GeneralRe: Need help in C#.NET 2005 beta 2 Pin
tom_dx28-Jun-05 6:40
tom_dx28-Jun-05 6:40 

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.