AddAlias Method

SQLServer.Database.User Object

Description

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.

Visual Basic

User.AddAlias ( [LoginNames :=] midLogins )

C++

HRESULT pUser->AddAlias ( SQLOLE_LPCSTR midLogins );

Elements

Element Type Description

midLogins MultiIdentifier Delimited list of logins

Reference

sp_addalias