The topic describes the DF019 T-SQL code analysis rule.
PERFORMANCE
The appropriate scroll options of the cursor have not been defined.
No FETCH FIRST/LAST/PRIOR/RELATIVE/ABSOLUTE found, but the cursor is not declared as FORWARD_ONLY or FAST_FORWARD. It is recommended to declare the cursor with the appropriate scroll options.
When using Transact-SQL DECLARE cursor extensions:
DECLARE cur CURSOR LOCAL FOR
SELECT CustomerID FROM dbo.Customer
OPEN cur
FETCH NEXT FROM cur INTO @CustomerId
DECLARE cur CURSOR LOCAL FORWARD_ONLY FOR
SELECT CustomerID FROM dbo.Customer
OPEN cur
FETCH NEXT FROM cur INTO @CustomerId