944,212 Members | Top Members by Rank

Ad:
  • MS SQL Discussion Thread
  • Unsolved
  • Views: 19854
  • MS SQL RSS
Jun 15th, 2006
0

Can return a Stored Procedure Recordset

Expand Post »
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
Reputation Points: 8
Solved Threads: 6
Posting Whiz in Training
extofer is offline Offline
239 posts
since Aug 2005
Jun 17th, 2006
0

Re: Can return a Stored Procedure Recordset

Quote 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
this article on Microsoft's support site may help
pty
Reputation Points: 64
Solved Threads: 39
Posting Pro
pty is offline Offline
530 posts
since Oct 2005

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in MS SQL Forum Timeline: sql 2005 to sql 2000
Next Thread in MS SQL Forum Timeline: SQL Alias





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC