I want to know basic type FAST_FORWARD in cursor.what is its use?
what is the purpose of the statement SET @MyCursor = CURSOR FAST_FORWARD in sql
I want to know basic type FAST_FORWARD in cursor.what is its use? what is
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Since you’re asking about FAST_FORWARD, I’m assuming you’re working with SQL-Server.
A cursor can be configured in several ways:
FORWARD_ONLY– This is the default configuration – it allows the cursor to run from first to last and allows updates through the cursor.READ_ONLY– Does not allow updates through the cursor (improves performance)FAST FORWARD– Combination of FAST_FORWARD and READ_ONLYTwo other important options are:
LOCAL– The cursor can only be accessed within the cursor’s scope and the cursor is implicitly deallocated when the batch, stored procedure, or trigger terminates.GLOBAL– Specifies that the scope of the cursor is global to the connection. The cursor name can be referenced in any stored procedure or batch executed by the connection. The cursor is only implicitly deallocated at disconnect.Full documentation can be found here.