Published on InterSystems Developer Community (https://community.intersystems.com)

Home > SQLCODE=-52 : Cursor C10 already declared

Question
Robert Steed · Sep 22, 2022

SQLCODE=-52 : Cursor C10 already declared

Hi,

My routine contains embedded SQL including this:

&sql(DECLARE C1 CURSOR FOR

The error "SQLCODE=-52 : Cursor C10 already declared" comes up on compilation in Studio. Does anyone know a way around it please?

Bob

#ObjectScript #SQL #Caché
Product version: Caché 2018.1
$ZV: Cache for Windows (x86-64) 2018.1.7 (Build 721U) Fri Mar 18 2022 22:07:35 EDT

Source URL:https://community.intersystems.com/post/sqlcode-52-cursor-c10-already-declared