#include "SaAddLogin.h" int SaAddLogin( char* server, char* altserver, char* uname, char* passwd, int overwrite);
SaAddLogin
sets or reads the login information for a database server. Login information for all servers that a client uses is kept in a dynamic list of structures. There can be only one record per server in the list. Therefore, if a record already exists for a server, it must be specified whether to overwrite the old information or not. Also, an alternate server name may be specified so that all procedures which would have run under the normal server name will now run on the alternate server name. This is handy for re-mapping servers at run-time. The valid return values are listed below:
SA_LOG_FAIL
(Login record failed. No changes)
SA_LOG_OVERWROTE
(Login Overwrote an old record.)
SA_LOG_NOVERWROTE
(Login did not change, but exists)
SA_LOG_ADDED
(Login was added successfully)
SA_LOG_DEFAULT
(Login was added as default)