I need to access data from a database on a remote server, running in the "After Document" script. However, I cannot get it to use anything but the currently logged in user account. My script is:
Set MyCon = CreateObject("ADODB.Connection")
MyCon.ConnectionString = "SERVER=remotesql;DSN=remotedb;UID=sa;PWD=sapassword;"
GPConnection.Open(MyCon)
I can verify it connects to the remotesql server, because I can lock out the sa account if I run logged in as sa (it's using the local sa credentials, locking out the remote sa account).
I've tried everything I can think of, but the UID is ignored. Any thoughts?
Thank you.
*This post is locked for comments
I have the same question (0)