I am trying to convert my asp page to use the command.execute function instead of resultset.open to interface with a database. I am totally lost as to why this works:
but this doesn't
The second code produces this error:
Microsoft OLE DB Provider for SQL Server error '80040e21'
Multiple-step OLE DB operation generated errors. Check each OLE DB status value, if available. No work was done.
The table is set up as follows:
issue_number int
visit_number int
description varchar(100)
Any thoughts?
-Greg :-Q
Code:
For Each issue In issues
value = trim(issue)
addIssue = "INSERT INTO issues(issue_number, visit_number, description) VALUES (" + issue + "," + cstr(int(visitNum) + 1) + ",'" + Request.QueryString("issue" + issue) + "');"
ObjRs.Open addIssue, ObjConn
Next
but this doesn't
Code:
For Each issue In issues
value = trim(issue)
addIssue = "INSERT INTO issues(issue_number, visit_number, description) VALUES (?,?,?);"
ObjCmd.CommandText = addIssue
ObjCmd.Execute , Array(int(issue), int(visitNum) + 1, cstr(Request.QueryString("issue" + issue)))
Next
The second code produces this error:
Microsoft OLE DB Provider for SQL Server error '80040e21'
Multiple-step OLE DB operation generated errors. Check each OLE DB status value, if available. No work was done.
The table is set up as follows:
issue_number int
visit_number int
description varchar(100)
Any thoughts?
-Greg :-Q