AppName

Description

If the DBMS supports it, specifies the application name you want to use when connecting to the database in InfoMaker.

NoteWhen to specify AppName You must specify the AppName parameter before connecting to the database.

Applies to

Syntax

AppName = 'application_name'

Default

InfoMaker sets the CS_APPNAME connection property to InfoMaker, as follows:

AppName = 'InfoMaker'

Usage

Adaptive Server databases It is useful to specify a different AppName value for each of your Adaptive Server applications. If you are an administrator, you can query the MASTER.DBO.SYSPROCESSES table to determine which applications are running on the database server. The value specified for AppName displays in the program_name column of the MASTER.DBO.SYSPROCESSES table, making it easy to identify the applications.

Examples

Example 1

To set the application name to Test, type the following in the Application Name box on the Network tab in the Database Profile Setup dialog box:

Test

Example 2

(Does not apply to DirectConnect) You can set the AppName and Host parameters in a single DBParm statement to specify both the application name and the host name. To set the application name to Sales and the host name to Fran, type Sales in the Application Name box and Fran in the Workstation Name box on the Network tab in the Database Profile Setup dialog box.

See also