Issue with cursor and @@Fetch_Status

hi , im using a cursor in a sp,however ,when i declare it,the sp goes to catch block without throwing any error. @@fetch_status gives 0 at the starting of the sp ... is there some thing im missing

more ▼

asked Sep 04, 2012 at 12:34 AM in Default

avatar image

10 1 1 1

Please share some code, it's hard to guess the possible reasons for your code to fail without having seen any of it...

Sep 04, 2012 at 03:09 AM Magnus Ahlkvist

my guess without seeing it, is that the sql query you are putting into the cursor returns no rows.

Sep 20, 2012 at 03:11 PM jjaroska
(comments are locked)
10|1200 characters needed characters left

0 answers: sort voted first
Be the first one to answer this question
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

SQL Server Central

Need long-form SQL discussion? SQLserverCentral.com is the place.



asked: Sep 04, 2012 at 12:34 AM

Seen: 813 times

Last Updated: Sep 20, 2012 at 03:29 PM

Copyright 2018 Redgate Software. Privacy Policy