Unable to connect using InterSystems ODBC in PHP, access denied
I am unable to connect to InterSystems ODBC client. I am seeing the following error:
[Cache ODBC][State : S1000][Native Code 417] Access denied.
$cnx = new PDO("odbc:Driver={InterSystems ODBC};Server=<IP>;Uid=<id>;Pwd=<password>;");
Am i doing anything wrong?
Although, I can successfully connect and retrieve data in MS Excel using ODBC connection where I have configured my DSN and all
Discussion (2)0
Comments
If you're using InterSystems IRIS try this connection string (replacing values with appropriate):
"Driver=InterSystems ODBC Driver;Host=127.0.0.1;Port=56772;Database=USER;UID=myUsername;PWD="
and for Caché/Ensemble try (driver name could be InterSystems ODBC):
"Driver=Cache ODBC Driver;Host=127.0.0.1;Port=1972;Database=USER;UID=myUsername;PWD="
If the problem persist, check Audit log.
i got the same error message, have you solved the problem?