Please correct me if i'm wrong ,
Currently i am using the below code to connect to the Oracle Database. (JDBC Connection)
Set conn=##class(%SQLGatewayConnection).%New()
Set sc=conn.Connect("Test_Database","Test_user","testuser",300)
If $$$ISERR(sc) do $System.Status.DisplayError(sc) quitWhen run the application i get the below pop up\
A JavaScript exception was caught during the execution of the HyperEvent:
Syntax Error:Unexpected token illegal -------------------------------------------------- Result : ------------------------------------------------- JavaScript Code: Error #6002:Gateway failed: DSN/User connect -----------------
I have the Connection configured in Configuration->SQL GatewayConnection which is working absolutely fine.
Please let me know the proper Code and the Syntax to connect to the Oracle DB
- Log in to post comments