Observe the SAMPLE connection associated with the project.
观察与这个项目相关联的SAMPLE连接。
You can use this sample program to check the connection status as well.
也可以使用这个样例程序来检查连接状态。
The sample code I have provided makes a direct connection to DB2.
我提供的示例代码建立一个到DB2 的直接连接。
This example USES GSDB and GS_DB_TEST, but you could also create a connection to SAMPLE.
这个示例使用GSDB和GS_DB_TEST,但是还可以创建到SAMPLE数据库的连接。
To make this other connection, run the sample db2load.sql db2 script (Listing 5).
要建立这个连接,请运行示例db2load . sqldb 2脚本(清单5)。
We have now created the connection factory for our sample application.
现在已为示例应用程序创建了连接工厂。
The second contains your virtual hostname and connection information (sample below).
第二封包含您的虚拟主机名与连接信息(如下例所示)。
From the list of connections, select the connection to sample what was created earlier.
在连接列表中,选择先前创建的到sample的连接。
The code sample USES the connection string that is provided in the application config file.
代码示例使用在应用程序配置文件中提供的连接字符串。
The code sample USES the connection string that is provided in the application config file.
代码示例使用在应用程序配置文件中提供的连接字符串。
应用推荐