DBSETLAPP

Description

Set the application name in the LOGINREC structure.

Syntax

RETCODE DBSETLAPP(loginrec, application)
 
LOGINREC     *loginrec;
char                *application;

Parameters

loginrec

A pointer to a LOGINREC structure, which will be passed as an argument to dbopen. You can allocate a LOGINREC structure by calling dblogin.

application

The application name that will be sent to the server. It must be a null-terminated character string. The maximum length of the string, not including the null terminator, is 30 characters.

Returns

SUCCEED or FAIL.

Usage

See also

dblogin, dbopen, DBSETLHOST, DBSETLPWD, DBSETLUSER