exec('…') and execute('…')

by Jan 18, 2016

Hello guys,

we are working with ADS 16.0.10 on a windows 7 System.
Our DB-System is Sybase ASE 15.7

The statement

exec('select top 10 * from STM_QUARTAL')

results in the following error

>[SQL] Skriptzeilen: 2-2 —————————-
exec('select top 10 * from STM_QUARTAL')

>[Fehler] Skriptzeilen: 2-2 ————————-
Falsche Syntax bei ')'.
Nachricht: 102, Ebene: 15, Zustand: 181
Server: SYBLXABR, Linie: 1

The statement

execute('select top 10 * from STM_QUARTAL')

runs correctly

Request for troubleshooting

greeting
Rüdiger Senftleben