what is use of cursors? how it is used?

  • what is use of cursors? how it is used?

  • Good question .  As far as I'm concerned cursors are of no use whatsoever (in 99.999% of occasions).

    A cursor allows you to build a record set and then execute some logic based on each entry in the list.  They are often notoriously slow and you should always try to avoid them where possible in favour of a set based solution instead.

    I know that this probably hasn't answered your question in the way you wanted but I do think it's the correct way of answering it.

    Mike

  • Yup... 2000+ sps and counting : 0 cursor needed.

  • No doubt 500+ occasions where you could have used one but chose not to

  • Could've used one 100% of the time... but there always was a better way.

  • Now you'll have to explain "set based solution"   !!   🙂

  • Not the right person asking .

Viewing 7 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic. Login to reply