Sdílet prostřednictvím


ServerProxyAccount Class

The ServerProxyAccount class represents the implementation of a proxy account on an instance of SQL Server. The ProxyAccount object allows for impersonation of job step execution. Created by the system administrator, it can be further be assigned to a login or a server role or a database role and one of the subsystems, except for Transact-SQL.

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Syntax

'Declaration
Public NotInheritable Class ServerProxyAccount _
    Inherits SqlSmoObject _
    Implements IAlterable
'Usage
Dim instance As ServerProxyAccount
public sealed class ServerProxyAccount : SqlSmoObject, 
    IAlterable
public ref class ServerProxyAccount sealed : public SqlSmoObject, 
    IAlterable
[<SealedAttribute>]
type ServerProxyAccount =  
    class
        inherit SqlSmoObject
        interface IAlterable
    end
public final class ServerProxyAccount extends SqlSmoObject implements IAlterable

Remarks

With the ServerProxyAccount object you can:

  • Allow impersonation of job step execution.

  • Assign the proxy account to a login, server role, or database role.

  • Assign the proxy account to a subsystem (except Transact-SQL)

Inheritance Hierarchy

System.Object
  Microsoft.SqlServer.Management.Smo.SmoObjectBase
    Microsoft.SqlServer.Management.Smo.SqlSmoObject
      Microsoft.SqlServer.Management.Smo.ServerProxyAccount

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.