Wrox Programmer Forums
|
Classic ASP Professional For advanced coder questions in ASP 3. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 8th, 2003, 02:11 PM
Authorized User
 
Join Date: Jun 2003
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to sidneyfuerte Send a message via AIM to sidneyfuerte Send a message via MSN to sidneyfuerte Send a message via Yahoo to sidneyfuerte
Default SP Returned Output with Error

Hi everyone,

I'm getting an error "run-time error '3704' operation is not allowed when object is closed." when i tried to access the content of my recordset, I am calling a stored procedure with the following sql statement:

sSq = "DECLARE @iIntId INT " & _
      "SET @iIntId = null " & _
      "exec GetID 1,@iIntId OUTPUT " & _
      "SELECT @iIntId " & _
rs.Open sSQl, gDbConn, adOpenDynamic, adLockOptimistic
if Not rs.Eof then
   MyId = rs("iIntId")
End if

The error occur in the "if Not rs.eof..." line co'z i debug the program and i'm sure the recordset has one row in it... the ID.

Can somebody explain to me why this is happening? I really appreciate any comment or help.

Thanks/Regards
Sidney
__________________
Thanks/Regards
Sidney





Similar Threads
Thread Thread Starter Forum Replies Last Post
how to save a output as .MPP file using SP premnaath SQL Server 2000 1 July 12th, 2007 08:09 AM
Dynamic number of columns returned from sp dreadjr BOOK: Professional SQL Server 2005 Reporting Services ISBN: 0-7645-8497-9 1 July 5th, 2006 03:42 PM
selecting rows returned by executing a SP dsekar_nat SQL Server 2000 4 May 11th, 2006 11:12 AM
ASP output returned to IFrame kend Classic ASP Basics 3 November 11th, 2003 08:50 PM
SP W/Cursor OUTPUT parm: 2nd and later calls fail hfreeman SQL Server 2000 0 August 24th, 2003 01:31 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.