x

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

priya2134 gravatar image

priya2134
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.

New code box

There's a new way to format code on the site - the red speech bubble logo will automatically format T-SQL for you. The original code box is still there for XML, etc. More details here.

Follow this question

By Email:

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

By RSS:

Answers

Answers and Comments

SQL Server Central

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

Topics:

x1943
x9

asked: Sep 04, 2012 at 12:34 AM

Seen: 636 times

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