次の方法で共有


ServerRole Object

この機能は、将来のバージョンの Microsoft SQL Server では削除される予定です。新規の開発作業ではこの機能を使用しないようにし、現在この機能を使用しているアプリケーションは修正することを検討してください。

The ServerRole object exposes the attributes of a single Microsoft SQL Server security role not constrained to operation within a single database.

現在のオブジェクトを表す SQL-DMO オブジェクト モデル

Properties

FullName Property

Name Property

Methods

AddMember Method

EnumServerRoleMember Method

DropMember Method

EnumServerRolePermission Method

解説

SQL Server security roles establish rights to SQL Server resources for more than a single user and can be established within the constraint of a single database. Security roles can also grant permissions to an authenticated user for an instance of SQL Server. For example, the server role securityadmin has permissions that allow members to add, change, and remove SQL Server logins.

With the ServerRole object, you can:

  • Assign membership in a server role to a SQL Server login.
  • Remove a member login from a SQL Server security role.

SQL Server establishes server roles. New server roles cannot be defined by the user. For more information about valid ServerRole Name strings, see sp_addsrvrolemember (Transact-SQL).