| | |
ADODB.Recordset (0x800A0E78):Operation is not allowed when the object is closed.
Please support our ASP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Aug 2006
Posts: 3
Reputation:
Solved Threads: 0
ADODB.Recordset (0x800A0E78):Operation is not allowed when the object is closed.
0
#1 Aug 19th, 2006
hi,
i m novice to asp.i m using one stored procedure in sql server2000 which is using cursor.this is doing the following things
1) select the peticlur records from one table
2) insert the record in another table relavant to retireved ID
3) select the second table values
i m binding this code into asp page.
but it always gives a recordset error"ADODB.Recordset (0x800A0E78):Operation is not allowed when the object is closed." becos it is contianing multiple tables(select statements).i have already chekde that recordset is just not closed and it is assiging the value.
my code is as follows:
set cmd = Server.CreateObject("ADODB.Command") cmd.ActiveConnection = MM_conn_STRING cmd.CommandType=adCmdStoredProc cmd.CommandText = "usp_IPA_Get_Top_Five_Picks" cmd.Parameters.Append cmd.CreateParameter("cat_id",adInteger,adParamInput,4,argcat_id) cmd.Parameters.Append cmd.CreateParameter("cat_type",adChar,adParamInput,1,argcat_type) cmd.Parameters.Append cmd.CreateParameter("event_id",adChar,adParamInput,2,argevent_id)
set rs = cmd.Execute
Same things i can do if i do upto first two steps by executing procedure and then directly select the table from view as another recordset.
tell me as i have multiple data tables then how to get perticular table from recordset(for example in asp.net i can take dataset.datatables(0) similarly how to do here?)
thnx.
i m novice to asp.i m using one stored procedure in sql server2000 which is using cursor.this is doing the following things
1) select the peticlur records from one table
2) insert the record in another table relavant to retireved ID
3) select the second table values
i m binding this code into asp page.
but it always gives a recordset error"ADODB.Recordset (0x800A0E78):Operation is not allowed when the object is closed." becos it is contianing multiple tables(select statements).i have already chekde that recordset is just not closed and it is assiging the value.
my code is as follows:
set cmd = Server.CreateObject("ADODB.Command") cmd.ActiveConnection = MM_conn_STRING cmd.CommandType=adCmdStoredProc cmd.CommandText = "usp_IPA_Get_Top_Five_Picks" cmd.Parameters.Append cmd.CreateParameter("cat_id",adInteger,adParamInput,4,argcat_id) cmd.Parameters.Append cmd.CreateParameter("cat_type",adChar,adParamInput,1,argcat_type) cmd.Parameters.Append cmd.CreateParameter("event_id",adChar,adParamInput,2,argevent_id)
set rs = cmd.Execute
Same things i can do if i do upto first two steps by executing procedure and then directly select the table from view as another recordset.
tell me as i have multiple data tables then how to get perticular table from recordset(for example in asp.net i can take dataset.datatables(0) similarly how to do here?)
thnx.
Last edited by sameera; Aug 19th, 2006 at 7:19 am.
•
•
Join Date: Jul 2005
Posts: 483
Reputation:
Solved Threads: 19
Re: ADODB.Recordset (0x800A0E78):Operation is not allowed when the object is closed.
0
#2 Aug 29th, 2006
rs.NextRecordset look here
http://www.w3schools.com/ado/met_rs_nextrecordset.asp
http://www.w3schools.com/ado/met_rs_nextrecordset.asp
![]() |
Similar Threads
- Bind ListBox to ADODB.Recordset (Visual Basic 4 / 5 / 6)
- Why this error???Operation is not allowed when the object is closed. (ASP)
- asp problem ADODB.Recordset error '800a0bb9' (ASP)
- Can return a Stored Procedure Recordset (MS SQL)
- "Operation is not allowed when the object is closed" error (ASP.NET)
- ADODB.Recordset error '800a0bb9' (ASP)
- "ADODB Recordset error" (ASP)
Other Threads in the ASP Forum
- Previous Thread: Unterminated String Constant!
- Next Thread: calling aspx page from asp
| Thread Tools | Search this Thread |
archive asp asp.net aspandmssqlserver2005 aspandmssqlserver2005connection aspconnection calendar changeable connection current database databaseconnection diagnostics dreamweaver excel fso html iis microsoft msmsql mssql2005 mssqlserver2005 mssqlserver2005andasp mssqlserverandasp opentextfile record searchbox selectoption server single specfic sqlserver sqlserverconnection toolkit web webserver windows7





