>= SQLSETPROP(ln_sql,'BatchMode', .T.) >? SQLEXEC(ln_Sql, "UPDATE SCHEDULE SET SCHEDSTAT = 'X' WHERE SCHEDSTAT = 'N'; SELECT @@ROWCOUNT", 'ac_result') >>It returns 1 and the table is getting updated but I don't get a resulting cursor. If I separate the two SQL out I do get a cursor. But if I separate them out couldn't I run the risk of getting a wrong value?