DBSETLNATLANG

Sets the name of the national language in the LOGINREC structure.

Syntax

RETCODE DBSETLNATLANG (
PLOGINREC
loginrec,
LPCSTR
language );

where

loginrec
Is a pointer to a LOGINREC structure to be passed as a parameter to dbopen. Execute dblogin to get LOGINREC structures.
language
Is the name of the national language to use. This parameter must be a null-terminated character string.

Returns

SUCCEED or FAIL.

Remarks

To set a language other than the SQL Server default, call DBSETLNATLANG before dbopen. If language support is installed in the server, error messages are returned in the designated national language.

See Also

dblogin, dbopen