Connecting To Db2 Universal Database 6.X, 7.2, And Os/390 - MACROMEDIA COLDFUSION MX 61 - CONFIGURING AND ADMINISTERING COLDFUSION MX Manual

Hide thumbs Also See for COLDFUSION MX 61 - CONFIGURING AND ADMINISTERING COLDFUSION MX:
Table of Contents

Advertisement

Connecting to DB2 Universal Database 6.x, 7.2, and OS/390

Use the settings in the following table to connect ColdFusion to DB2 Universal Database 6.x,
7.2, and OS/390 data sources:
Setting
CF Data Source Name The data source name (DSN) used by ColdFusion MX to connect to the
Database
Server
Port
Username
Password
Description
Connection String
Description
data source.
The name of the database.
The name of the server that hosts the database that you want to use. If the
database is local, enclose the word local in parentheses.
The number of the TCP/IP port that the server monitors for connections.
The user name that ColdFusion MX passes to the JDBC driver to connect
to the data source if a ColdFusion application does not supply a user name;
for example, in a
cfquery
The username must have CREATE PACKAGE privileges for the database,
or the database administrator must create a package. Consult the database
administrator when configuring this type of data source.
The password (16-character limit) that ColdFusion MX passes to the JDBC
driver to connect to the data source if a ColdFusion application does not
supply a password—for example, in a
(Optional) A description for this connection.
A field that passes database-specific parameters, such as login credentials,
to the data source.
For UDB on the initial connection, specify DatabaseName, PackageName,
CreateDefaultPackage, and ReplacePackage, as shown in the following
example:
DatabaseName=SAMPLE;PackageName=
CreateDefaultPackage=TRUE;ReplacePackage=TRUE
For UDB on subsequent connections, specify DatabaseName and
PackageName, as shown in the following example:
DatabaseName=SAMPLE;PackageName=pkgname
For OS/390 on the initial connection, specify LocationName, CollectionId,
PackageName, and CreateDefaultPackage, as shown in the following
example:
LocationName=SAMPLE;CollectionId=DEFAULT;
PackageName=pkgname;CreateDefaultPackage=TRUE
For OS/390 on subsequent connections, specify LocationName,
CollectionId, and PackageName, as shown in the following example:
LocationName=SAMPLE;CollectionId=DEFAULT;
PackageName=
Where pkgname is the name of the package (maximum of 7 characters)
that the driver uses to process SQL statements.
Your user ID must have CREATE PACKAGE privileges on the database, or
your database administrator must create a package for you.
Connecting to DB2 Universal Database 6.x, 7.2, and OS/390
tag.
tag.
cfquery
;
41

Advertisement

Table of Contents
loading

This manual is also suitable for:

Coldfusion mx

Table of Contents