dbsetlnatlang

DB Library for C

DB Library for C

dbsetlnatlang

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

Syntax

RETCODE DBSETLNATLANG (
PLOGINREC
loginrec,
LPCSTR
language );

Arguments

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 Microsoft® SQL Server™ 2000 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