Closed cloud-rocket closed 2 months ago
Because Aspen IP21 is not fully compliant with MSSQL, there is no way to limit the amount of results without running 2 queries together:
SET MAX_ROWS 100; SELECT SELECT NAME, TS, VALUE from HISTORY where NAME='abc';
Seems like cursor.execute only runs the 1st query, but not the second.
cursor.execute
expected behavior: Return 100 rows as it happens in Aspen SQLPlus observed behavior: Error returned
Did you try cursor.nextset() ?
cursor.nextset()
Environment
Issue
Because Aspen IP21 is not fully compliant with MSSQL, there is no way to limit the amount of results without running 2 queries together:
Seems like
cursor.execute
only runs the 1st query, but not the second.expected behavior: Return 100 rows as it happens in Aspen SQLPlus observed behavior: Error returned