Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Stored Procedure doesn't generate recordset from temp table

Status
Not open for further replies.

jluost1

Programmer
Jun 8, 2001
78
US
In my stored procedure, I insert values into a temporary table I created #tid_attrib_value.

At the end of the procedure, I call the following statement:

"SELECT * FROM #tid_attrib_value".

I can run this from Query Analyzer and get what I want. However, if I call it from ASP page, I get the error:

"The operation requested by the application is not allowed if the object is closed. "

I use the following line in ASP page:
set tempRS = sqlConn.Execute(q,,4)
where sqlConn is my connection object. q is a string of my stored procedure name and arguments.

I use this line to execute other PROC and it is working fine.

Any idea?

 
I did set NOCOUNT ON at the beginning of the PROC.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top