x
login about faq Site discussion (meta-askssc)

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 '12 at 12:34 AM in Default

priya2134 gravatar image

priya2134
10 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 '12 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 '12 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

By RSS:

Answers

Answers and Comments



Facebook logo Follow Ask SSC on Facebook
Find Ask SSC on Google+
linkedin logo Find us on LinkedIn

Topics:

x1843
x8

asked: Sep 04 '12 at 12:34 AM

Seen: 376 times

Last Updated: Sep 20 '12 at 03:29 PM

Copyright © 2002-2012 Simple Talk Publishing. All Rights Reserved. If you have any queries, please contact the site administrators.
Ask SQL Server Central is a community service provided by Red Gate.