共用方式為


SaLogin Property

未來的 Microsoft SQL Server 版本將移除這項功能。請避免在新的開發工作中使用這項功能,並規劃修改目前使用這項功能的應用程式。

The SaLogin property returns TRUE if the login used to establish a connection is a member of the sysadmin security role.

語法

object.SaLogin

Parts

  • object
    An expression that evaluates to an object in the Applies To list

Data Type

Boolean

Modifiable

Read-only

Prototype (C/C++)

HRESULT GetSaLogin(LPBOOL pRetVal);