SqlSetLNatLang%

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

Syntax

SqlSetLNatLang% ( loginrec%, language$ )

where

loginrec%
Is a login record to be passed as a parameter to SqlOpen%. Execute SqlLogin% to get LOGINREC structures.
language$
Is the name of the national language to use.

Returns

SUCCEED (1) or FAIL (0).

Remarks

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

See Also

SqlLogin% and SqlOpen%