D
Drew
I have some insert stored procedures that I am having problems with. The
ASP looks like this,
'Execute SP to insert into Task table
sql = "DECLARE @Count int " &_
"DECLARE @TaskID varchar(20) " &_
"DECLARE @Description varchar(255) " &_
"DECLARE @AssignedTo varchar(25) " &_
"EXEC InsertTask " &_
"@Count = ''," &_
"@TaskID = '" & varTaskID & "'," &_
"@Description = '" & varDescription & "'," &_
"@AssignedTo = '" & varAssignedTo & "'"
set conn = CreateObject("ADODB.Connection")
conn.open MM_WorkOrderTracking_STRING
set rs = conn.execute(sql)
'Close recordset and connection
rs.close: set rs = nothing
conn.close: set conn = nothing
On the rs.close: line, it keeps giving me the Operation is not allowed when
the object is closed error, which I am assuming is caused by the SP
returning "The command(s) completed successfully.". I have SET NO COUNT in
my SPs... Is there any way to supress the "The command(s) completed
successfully." message?
Thanks,
Drew
ASP looks like this,
'Execute SP to insert into Task table
sql = "DECLARE @Count int " &_
"DECLARE @TaskID varchar(20) " &_
"DECLARE @Description varchar(255) " &_
"DECLARE @AssignedTo varchar(25) " &_
"EXEC InsertTask " &_
"@Count = ''," &_
"@TaskID = '" & varTaskID & "'," &_
"@Description = '" & varDescription & "'," &_
"@AssignedTo = '" & varAssignedTo & "'"
set conn = CreateObject("ADODB.Connection")
conn.open MM_WorkOrderTracking_STRING
set rs = conn.execute(sql)
'Close recordset and connection
rs.close: set rs = nothing
conn.close: set conn = nothing
On the rs.close: line, it keeps giving me the Operation is not allowed when
the object is closed error, which I am assuming is caused by the SP
returning "The command(s) completed successfully.". I have SET NO COUNT in
my SPs... Is there any way to supress the "The command(s) completed
successfully." message?
Thanks,
Drew