Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 Temp Table returning Object Closed Error

Author  Topic 

taylo
Yak Posting Veteran

82 Posts

Posted - 2001-09-17 : 14:34:06
Can anyone tell me why this TSQL script is returning the following error

ADODB.Recordset error '800a0e78'
Operation is not allowed when the object is closed.
/pricecheck.asp, line 48

It is not the ASP page. I have tried runnign several other stored procedures and everything runs fine. I cannot see what I am doing w rong fo the life of me. Code below.

Thanks,


Rob


CREATE PROCEDURE SP_GetPriceCheckInfo
@makeID numeric(6),
@modelID numeric(6),
@yearID numeric(6)
AS
Create Table #HoldingTable(
ID numeric identity,
MakeID numeric(10),
ModelID numeric(10),
YearID numeric(6))

INSERT INTO #HoldingTable (MakeID,ModelID,YearID)
Select MakeID,ModelID,YearID from tblProductQuotes Where MakeID = @makeid AND ModelID = @modelid AND
YearID = @yearID And LOWER(QuoteStatus) = 'sold'

   

- Advertisement -