| | |
Can return a Stored Procedure Recordset
Please support our MS SQL advertiser: Intel Parallel Studio Home
![]() |
I'd like to know if I have to change security settings or something on my SQL Server in order to applications like ASP or VB to return a recordset. When my applications in VB or ASP return a recordset from a VIEW, I have not problems at all, but when I try to return a Stored Procedure I get the following error:
"Operation is not allowed when the object is closed"
BUT, the object is open, It works on views, if I use:
objRS.Open "SELECT * FROM VIEW", Connection
I have no problems, but when I use
objRS.Open "EXECUTE spProc", Connection
I get problems. Is this a SQL Server side problem that I need to configure??
Thanks
"Operation is not allowed when the object is closed"
BUT, the object is open, It works on views, if I use:
objRS.Open "SELECT * FROM VIEW", Connection
I have no problems, but when I use
objRS.Open "EXECUTE spProc", Connection
I get problems. Is this a SQL Server side problem that I need to configure??
Thanks
Gabriel Villa
software development/ IT support consultant
software development/ IT support consultant
•
•
•
•
Originally Posted by extofer
I'd like to know if I have to change security settings or something on my SQL Server in order to applications like ASP or VB to return a recordset. When my applications in VB or ASP return a recordset from a VIEW, I have not problems at all, but when I try to return a Stored Procedure I get the following error:
"Operation is not allowed when the object is closed"
BUT, the object is open, It works on views, if I use:
objRS.Open "SELECT * FROM VIEW", Connection
I have no problems, but when I use
objRS.Open "EXECUTE spProc", Connection
I get problems. Is this a SQL Server side problem that I need to configure??
Thanks
![]() |
Similar Threads
- PHP MySQL 5.0 stored procedure (PHP)
- Help with a stored procedure (MS SQL)
- Help with Stored Procedure (MS SQL)
- how do I run a "disconnected" stored procedure (MS SQL)
- ASP.net/Stored Proc & Login Verification (ASP.NET)
- Stored Procedures in Oracle (Visual Basic 4 / 5 / 6)
- Stored procedure call with ADO (C)
Other Threads in the MS SQL Forum
- Previous Thread: sql 2005 to sql 2000
- Next Thread: SQL Alias
| Thread Tools | Search this Thread |





