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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Stored Procedure with #Temp table question 1

Status
Not open for further replies.

behbeh

Programmer
Mar 10, 2001
48
US
I am developing a VB6 application with a SQL Server 7 backend. I have a stored procedure that creates a local temporary table to insert records to be queried from the front-end.

My VB code uses the ADO Command object to run this stored procedure and I am using
'Set rsObject=cmdObject.Execute'
so I can loop through the records of the temp table. However, I am getting a runtime error #3704 when I try to reference the recordset after the above code (can't reference a closed object)and I know there should be records.

When I execute the stored procedure in SQL Analyzer, I get all the appropriate records from this temp table.

I just want to know if anyone has ever tried retrieving records in a local temp table (local to the stored procedure) from a front-end application, and if so, what's the best way to do it using a parameter stored procedure.

Thanks!


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top