Solved

Problem With Cursors - Error 16958

Posted on 2004-04-03
2
743 Views
Last Modified: 2012-05-04
we are using a cursor varying type as an output parm of one stored proc. when assigning the returned cursor for this Stored proc to a cursor variable in the calling stored proc and trying to fetch through it we have the following error:

Server: Msg 16958, Level 16, State 1, Line 20
Could not complete cursor operation because the set options have changed since the cursor was declared.

can any body help!
thanks in advance
0
Comment
Question by:moh_abbashar
2 Comments
 
LVL 34

Accepted Solution

by:
arbert earned 500 total points
ID: 10748305
Make sure that both procs are created using the exact same SET OPTIONS.  I've also had luck by using SET ARITHABORT ON

Brett
0
 
LVL 15

Expert Comment

by:namasi_navaretnam
ID: 10749722
Could you post your code? I think you are missing output key word.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
In this article we will learn how to fix  “Cannot install SQL Server 2014 Service Pack 2: Unable to install windows installer msi file” error ?
Via a live example combined with referencing Books Online, show some of the information that can be extracted from the Catalog Views in SQL Server.
Via a live example, show how to extract insert data into a SQL Server database table using the Import/Export option and Bulk Insert.

860 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question