SQL STATE 37000 [Microsoft][ODBC Microsoft Access Driver] Syntax Error or Access Violation
Good day! I get this error: SQL STATE 37000 [Microsoft][ODBC Microsoft Access Driver] Syntax Error or Access Violation, when trying to run an embedded SQL statement on Powerscript. I am using MsSQL Server 2008 and PowerBuilder 10.5, the OS is Windows 7. I was able to determine one of the queries that is causing the problem: SELECT top 1 CONVERT(DATETIME,:ls_datetime) into :ldtme_datetime from employee_information USING SQLCA; if SQLCA.SQLCODE = -1 then Messagebox('SQL ERROR',SQLCA.SQLERRTEXT) return -1 end if I was able to come up with a solution to this by just using the datetime() function o
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.