PSNamedConnectionParmsClass

Specifies the database connection information required to connect to a named database. The object does not connect to the database.

Use the PSConnectionParmsClass object to set up a database connection to a database that does not have a named connection.

You cannot use PSNamedConnectionParmsClass objects with JSP targets.

Syntax

ASP targets

PSNamedConnectionParmsClass(connectionName)

Constructors

PSNamedConnectionParmsClass constructor

Datatype

Description

connectionName

String

The name of a named database connection

NotePlatform dependency How the connection constructor is stored depends on the deployment platform.

Examples

Example 1

The following example creates the new object, ConnParmNamed, that defines a connection to a database named "mydb":

Var connParmNamed = new
		PSNamedConnectionParmsClass(mydb)