SQLServer.Database.User Object
Associates a list of existing logins with this database user. Each of the logins must not currently be associated with a database user or have an existing alias.
User.AddAlias ( [LoginNames :=] midLogins )
HRESULT pUser->AddAlias ( SQLOLE_LPCSTR midLogins );
Element | Type | Description |
---|
midLogins | MultiIdentifier | Delimited list of logins |
sp_addalias