Wrox Programmer Forums
Go Back   Wrox Programmer Forums > SQL Server > SQL Server 2000 > SQL Server 2000
|
SQL Server 2000 General discussion of Microsoft SQL Server -- for topics that don't fit in one of the more specific SQL Server forums. version 2000 only. There's a new forum for SQL Server 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Server 2000 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 August 24th, 2003, 01:31 AM
Registered User
 
Join Date: Aug 2003
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default SP W/Cursor OUTPUT parm: 2nd and later calls fail

I have been experimenting with this stored procedure output parameter, and have gotten it to work, but only on the first call. All subsequent calls "fail" by returning no rows, but no error. The calling procedure _does_ close and deallocate the cursor. This is consistent in Query Analyzer, and also in the debugger. If I delete the Query Analyzer Sql worksheet and paste the query into a new one, it will work as many times as I want it to, but if I try to exec the same instance of the call more than once, only the first exec will return rows.

Has anyone run into this. I have not been able to find anything in a global search of MSDN and the web at large with numerous efforts.





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
Passing Output Parm From St Proc to DTS Package lwendt33 SQL Server DTS 2 February 2nd, 2005 05:15 PM
Help with Update Cursor in SP rstelma SQL Server 2000 7 June 27th, 2004 11:39 PM
SP Returned Output with Error sidneyfuerte Classic ASP Professional 0 September 8th, 2003 02:11 PM





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