Solved

Problem With Cursors - Error 16958

Posted on 2004-04-03
2
749 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

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
The AZure backup problem 11 51
How efficient to move databases to Azure? 5 51
sql update 2 35
install sql server management studio 2008 express error 3 23
Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
I have a large data set and a SSIS package. How can I load this file in multi threading?
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function

680 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