0

I am trying to connect to DB2 on AIX through excel VBA, my connection string is

conn.ConnectionString = "Driver={IBM DB2 ODBC DRIVER};Database=XXXXXXXX;Hostname=XXX.XXX.XXX.XXX;Port=50000;Protocol=TCPIP;Uid=username;Pwd=password;"

When I try to open "conn.Open" the connection my windows logon credentials are used for authentication and not the one given in connection string.

Can you please help in resolving this.

Thanks In Advance. Gokul

1
  • EDIT your question to show the Db2 client configuration and version+fixpack. If you make a DSN and configure it, does it work correctly with odbcad32 for connecting with your AIX-credentials? Commented Dec 31, 2018 at 11:43

1 Answer 1

0

Try to add parameter Persist Security Info=False;to ConnectionString.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.