I am stuck. I have some vars being passed to an aspx page though a post method, and I am reading them through the request.form("varname") for each. I need to dump into a db table in multiple rows, how do I do it? I am going into a SQL database using VS.Net 2003. I was hoping to do a bulk insert or loop, but I don't know where to start or how to do either.
here's the format that the vars come in the page as:
now here's the format of the database
How do I insert the data to have it be mulitiple rows like:
here's the format that the vars come in the page as:
Code:
UserID = 46
k120interaction_id = Interaction_01
k120correct_response = d
k120student_response = d
k120result = C
k120latency = 00:00:02
k121interaction_id = Interaction_02
k121correct_response = c
k121student_response = c
k121result = C
k121latency = 00:00:02
k122interaction_id = Interaction_03
k122correct_response = a
k122student_response = a
k122result = C
k122latency = 00:00:03
Code:
AnswerID | UserID | InteractionID | CorrectResponse | StudentResponse | QResult | Latency
How do I insert the data to have it be mulitiple rows like:
Code:
1 | 46 | Interaction_01 | d | d | C | 00:00:02
2 | 46 | Interaction_02 | c | c | C | 00:00:02
3 | 46 | Interaction_03 | a | a | C | 00:00:03