Udostępnij przez


xp_revokelogin (języka Transact-SQL)

Odwołuje dostępu z systemu Windows, grupy lub użytkownika do SQL Server.

Important noteImportant Note:

This feature will be removed in a future version of Microsoft SQL Server. Avoid using this feature in new development work, and plan to modify applications that currently use this feature. Użycie USUWANIE IDENTYFIKATORA LOGOWANIA zamiast niego.

Topic link iconKonwencje składni języka Transact-SQL

xp_revokelogin {[@loginame=] 'login'}

Argumenty

  • [ @loginame = ] 'login'
    Is the name of the Windows user or group from which to revoke access.login must include the domain name, for example [ADVWKS\sylvester1].login is sysname, with no default.

Wartości kodów powrotnych

0 (sukces) lub 1 (brak)

Remarks

Użyj zamiast tego instrukcji DROP LOGIN.

Uprawnienia

Wymaga ALTER LOGIN bez uprawnień na serwerze.