- Raymond Longoria
- PowerBuilder
- Wednesday, 31 January 2024 11:16 PM UTC
I am working in Powerbuillder 2022 R2 and I am getting an error on the Update function of a datawindow. I am getting thrown off by the error saying the sql has "ORDER BY". I assume the data window is generating the update statement. If so, why would it add that statement to the sql?
SQLSTATE = 42000
Microsoft SQL Server Native Client 11.0
Incorrect syntax near the keyword 'ORDER'.
No changes made to database.
UPDATE dbo.APP SET descr = 'Testing again', mod_uid = 't2', mod_dt = '2024-01-31 10:48:47.866'
WHERE app_id = 9097 AND timestamp = 0x0000000006C1D925 AND (APP.task_nbr = 2) AND
(ORG.type = 8) AND (APP.org_id = 7581) AND (APP.status_cd = 2) ORDER BY APP.rcvd_dtime DESC
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.