Share via


ProxyAccount.RemoveLogin Method

Removes a Microsoft Windows login account from the referenced proxy account.

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

Syntax

'Declaration
Public Sub RemoveLogin ( _
    loginName As String _
)
'Usage
Dim instance As ProxyAccount 
Dim loginName As String

instance.RemoveLogin(loginName)
public void RemoveLogin(
    string loginName
)
public:
void RemoveLogin(
    String^ loginName
)
member RemoveLogin : 
        loginName:string -> unit
public function RemoveLogin(
    loginName : String
)

Parameters

  • loginName
    Type: System.String
    A String value that specifies the Windows login account to be removed.

Examples

Scheduling Automatic Administrative Tasks in SQL Server Agent

See Also

Reference

ProxyAccount Class

Microsoft.SqlServer.Management.Smo.Agent Namespace

Other Resources

Automated Administration Tasks (SQL Server Agent)

sp_update_proxy (Transact-SQL)