The topic describes the DF010 T-SQL code analysis rule.
BEST PRACTICE
The scope of a cursor (LOCAL or GLOBAL) is not specified.
It is recommended to explicitly define the scope of a cursor: LOCAL or GLOBAL.
If neither GLOBAL nor LOCAL is specified, the default value is determined by the default to local cursor database parameter setting.
DECLARE cur CURSOR READ_ONLY FOR
SELECT FirstName FROM dbo.Customers
DECLARE cur CURSOR LOCAL READ_ONLY FOR
SELECT FirstName FROM dbo.Customers