User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the MS SQL section within the Web Development category of DaniWeb, a massive community of 402,460 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,955 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our MS SQL advertiser: Programming Forums
Views: 8832 | Replies: 1
Reply
Join Date: Aug 2005
Location: El Paso, TX
Posts: 225
Reputation: extofer is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 5
extofer's Avatar
extofer extofer is offline Offline
Posting Whiz in Training

Help Can return a Stored Procedure Recordset

  #1  
Jun 15th, 2006
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
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Oct 2005
Location: Manchester, UK
Posts: 481
Reputation: pty is on a distinguished road 
Rep Power: 3
Solved Threads: 31
pty's Avatar
pty pty is offline Offline
Posting Pro in Training

Re: Can return a Stored Procedure Recordset

  #2  
Jun 17th, 2006
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
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb MS SQL Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the MS SQL Forum

All times are GMT -4. The time now is 3:49 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC