SQL0122S cursor cursor already declared

The current cursor cursor has already been declared. Make sure the cursor name is valid and remove or rename it.
Restriction: This topic applies to Windows environments only.