Actually I want to connect to the db2 server with my application written by VC++ and SQLAPI. The problem is that I found that I can connect to the datebase only when the application and database rest in the same machine. I use the connection string as "DSN=data source name, Uid=id, PWD=pwd". I guess that if I install the DB2 client in the client machine and use the configuration assistant to set the configuration, then I will success, isn't it? I want to know is there any method other than install the DB2 client? Did I use the right connection string?