Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DB2 ODBC driver and DSN-less connection

Status
Not open for further replies.

Boreades

Vendor
Dec 4, 2001
3
GB
With other ODBC drivers like SQL Server, I can use VB ADO and form a connection string e.g.
Driver={SQL Server};Server=BACH;Database=CoreSQL;uid=sa;password=XXXX

With the DB2 driver, what are the equivalent keywords?
e.g.
Driver={IBM DB2 ODBC DRIVER};IpAddress=BACH;LogonID=db2admin;Password=XXXX

I've looked at the help file that comes with the driver, but it implies that a DSN must be named. Is that correct?
Is there a better equivalent for the SQL Server "Server=" keyword? What's the equivalent for "Database="?

Regards
Keith Macdonald
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top