Returns the alias username that a login is associated with for a specific database.
idAlias = Login.AliasName ( [DatabaseName :=] idDatabase )
HRESULT pLogin->GetAliasName (
SQLOLE_LPCSTR idDatabase,
SQLOLE_LPBSTR pidAlias );
Element | Type | Description |
---|
idAlias | Identifier | Returned alias username |
idDatabase | Identifier | Database to retrieve alias username from |
This is an indexed property.
sp_addalias