共用方式為


FixedServerRoles 列舉

The FixedServerRoles enumeration contains values that are used to specify fixed server roles that can be assigned to logons.

此列舉有一個允許其成員值為位元組合的 FlagsAttribute 屬性。

命名空間:  Microsoft.SqlServer.Management.Common
組件:  Microsoft.SqlServer.ConnectionInfo (在 Microsoft.SqlServer.ConnectionInfo.dll 中)

語法

'宣告
<FlagsAttribute> _
Public Enumeration FixedServerRoles
'用途
Dim instance As FixedServerRoles
[FlagsAttribute]
public enum FixedServerRoles
[FlagsAttribute]
public enum class FixedServerRoles
[<FlagsAttribute>]
type FixedServerRoles
public enum FixedServerRoles

成員

成員名稱 說明
BulkAdmin Administers bulk operations.
DBCreator Can create databases.
DiskAdmin Can alter resources.
None No server role.
ProcessAdmin Can alter connections.
SecurityAdmin Can alter logons.
ServerAdmin Can alter Microsoft SQL Server settings, shut down the SQL Server Service, create and alter endpoints, alter the SQL Server state, and alter resources.
SetupAdmin Can alter linked servers.
SysAdmin Can control any aspect of the instance of Microsoft SQL Server.

備註

The FixedServerRoles class is served by the ServerConnection class.

請參閱

參考

Microsoft.SqlServer.Management.Common 命名空間

其他資源

sp_helpsrvrole (Transact-SQL)