Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Adds a Microsoft Windows login account to the proxy account.
Namespace: Microsoft.SqlServer.Management.Smo.Agent
Assembly: Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)
Syntax
'Declaration
Public Sub AddLogin ( _
loginName As String _
)
'Usage
Dim instance As ProxyAccount
Dim loginName As String
instance.AddLogin(loginName)
public void AddLogin(
string loginName
)
public:
void AddLogin(
String^ loginName
)
member AddLogin :
loginName:string -> unit
public function AddLogin(
loginName : String
)
Parameters
- loginName
Type: System.String
A String value that specifies the Windows login account that is associated with the proxy account.
Examples
Scheduling Automatic Administrative Tasks in SQL Server Agent
See Also
Reference
Microsoft.SqlServer.Management.Smo.Agent Namespace