DB2数据库连接相对SQL和ORACLE比较麻烦些,分为服务器端和客户端,连接包含以下几个步骤:
1.首先将数据库服务端的数据库映射到客户端(因为使用ODBC的原因)
映射命令如下:







2.新增ODBC,连接到本地DB2映射数据库
3.应用程序连接ODBC
连接字符串:

DB2数据库连接相对SQL和ORACLE比较麻烦些,分为服务器端和客户端,连接包含以下几个步骤:
1.首先将数据库服务端的数据库映射到客户端(因为使用ODBC的原因)
映射命令如下:
2.新增ODBC,连接到本地DB2映射数据库
3.应用程序连接ODBC
连接字符串: