This example USES GSDB and GS_DB_TEST, but you could also create a connection to SAMPLE.
这个示例使用GSDB和GS_DB_TEST,但是还可以创建到SAMPLE数据库的连接。
From the list of connections, select the connection to sample what was created earlier.
在连接列表中,选择先前创建的到sample的连接。
You can use this sample program to check the connection status as well.
也可以使用这个样例程序来检查连接状态。
Our example requires a database connection to start, nothing else, and for this, the SAMPLE database will do quite nicely.
例子只要求一个数据库连接来启动操作,不要求其他任何东西,对此,SAMPLE数据库将表现得非常出色。
The sample code I have provided makes a direct connection to DB2.
我提供的示例代码建立一个到DB2 的直接连接。
The following code establishes a connection to the SAMPLE database and returns a list of all the catalog views in the SYSCAT schema
下面的代码将建立到SAMPLE数据库的连接,并返回SYSCAT 模式中所有编目视图的一个列表
Listing 2 demonstrates a simple Perl program that establishes connection to the database SAMPLE and returns today's date.
清单2展示了一个简单的Perl程序,它建立到数据库sample的连接,并返回今天的日期。
You will also need a working Internet connection from your machine to connect to the sample ZipCode Web service.
您将还需要一个运行着的internet连接,从您的机器连接到样本zipcodeWeb服务。
Select the DB2 connection to the DB2 UDB SAMPLE database, or configure it as shown in Figure 1.
选择到DB2UDBSAMPLE数据库的 DB2连接,并按照图 1 所示进行配置。
After the connection to the SAMPLE database is established, we are going to retrieve the details of all the employees by calling another servlet named SearchEmployee.
在建立到SAMPLE数据库的连接之后,我们将通过调用另一个名为SearchEmployee的servlet来检索所有雇员的细节信息。
Here's the sample code to create an MQSeries QueueConnectionFactory and acquire a connection to a specific queue manager.
下面是用于创建MQseriesQueueConnectionFactory和获取特定队列管理器连接的样本代码。
Use the Test button to verify that a connection can be made to the DB2 UDB SAMPLE database.
使用Test按钮验证可以建立一个到DB 2UDBSAMPLE数据库的连接。
Start a new instance of Visual Studio 2005, and make a connection to the DB2 sample database from Server Explorer.
在VisualStudio 2005中开始一个新实例,并从ServerExplorer 中建立到DB2sample数据库的连接。
Figure 1 shows the Server Explorer connection to the DB2 sample database.
图1显示了到DB 2sample数据库的ServerExplorer连接。
On the last page of the database Pools wizard, click on Test connection to ensure the connection information is correct and connection to your DB2 Sample database can be established.
在DatabasePools向导的最后一个页面中,单击TestConnection以确保连接信息是正确的并且可以建立与DB 2Sample数据库的连接。
The next steps are to create a SQL Express connection, browse the sample encyclopedias, and create a new one.
接下来的一步是创建一个SQLExpress连接,浏览范例百科全书,并创建一个新的百科全书。
Listing 1 shows the code used to initialize a connection with NSURLRequest in the sample application.
清单1显示了应用程序示例中用NSURLRequest初始化连接的代码。
To make this other connection, run the sample db2load.sql db2 script (Listing 5).
要建立这个连接,请运行示例db2load . sqldb 2脚本(清单5)。
You will be presented with interactive options to specify source and DB2 database connection parameters in step-by-step process. A sample output from the console window is shown as below.
可以通过交互选项依次指定源和DB 2数据库连接参数。
As previously discussed, you have two options for how to determine the JNDI connection parameters. Listing 4 is sample code for retrieving JNDI properties.
正如前面讨论的,对于如何确定JNDI连接参数,您有两种选择。
The sample code includes connection factories for both client and bindings mode to demonstrate how to implement both.
示例代码包括客户机和绑定模式的连接工厂,以演示如何实现二者。
In this article, connect to the DB2 sample database with the connection string sample, as Figure 12 shows.
在本文中,使用链接字符串sample来链接到DB 2范例数据库,如图12所示。
It does not inherit from the connection factory; however, it does default to the correct value of "YES" so it is not included in the sample definitions.
它不从连接工厂继承;不过,其缺省值为“YES”,所以它并不包括在示例定义中。
The sample application establishes connection to the IBM IDS server using the above JDBC PAM module.
示例应用程序使用以上JDBCPAM 模块连接IBMIDS服务器。
For this new project, you need to specify the connection to the SAMPLE database, as shown in Figure 3.
需要为此新项目指定到SAMPLE数据库的连接,参见图3。
Now when performing the LOAD FROM CURSOR operation within the stored procedure, DB2 tries to establish the remote connection to database SAMPLE with the authorization ID of the local user.
在存储过程中执行LOADFROM CURSOR操作时,DB2尝试用本地用户的授权ID连接远程数据库SAMPLE。
This article describes an autosampler that transfers a collected liquid sample directly to a column, without passing it through any flow-changing device or extra tubing connection.
本文介绍了一种新型自动进样器,能够将收集到的样品直接进样到色谱柱,而不用任何流路转换装置或额外的管路连接。
It is also recommended that some of the sample reports be executed through IBM Cognos Connection in order to get some understanding on what is possible when running and managing reports.
同时建议通过IBMCognosConnection执行一些样例报告,从而理解在运行和管理报告时可能发生的情况。
Select the DB2 connection, and right-click on it to modify the connection in order to connect to the IBM DB2 UDB SAMPLE database. (See Figure 1 for my Settings.)
选择DB 2连接,右击它并修改连接,以连接到IBM DB 2UDBSAMPLE数据库(关于我的设置,参见图1。)
Much like the point-to-point sample, the session bean USES a resource reference to access the JMS connection factory and a message destination reference to access the destination.
和点到点示例非常相似,其中的会话Bean将使用资源引用访问JMS连接工厂,而使用消息目的地引用访问目的地。
应用推荐