Sets the server’s principal name in the LOGINREC structure, if required.
DBSETLSERVERPRINCIPAL(loginrec, name) LOGINREC *loginrec; char *name;
A pointer to a LOGINREC structure, which is passed as an argument to dbopen. You can allocate a LOGINREC structure by calling dblogin.
The server’s principal name. The maximum length of the string, not including the null terminator, is 255 characters.
SUCCEED or FAIL.
For DBSETLSERVERPRINCIPAL to take effect, it must be called before dbopen() and DBSETLNETWORKAUTH must be enabled.
If DBSETLSERVERPRINCIPAL is not called, the server name is set as the principal name.