Share via


JobServer.SetHostLoginAccount Method

Sets the SQL Server authentication account and password used to log in to SQL Server.

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

Syntax

'Declaration
Public Sub SetHostLoginAccount ( _
    loginName As String, _
    password As String _
)
'Usage
Dim instance As JobServer 
Dim loginName As String 
Dim password As String

instance.SetHostLoginAccount(loginName, _
    password)
public void SetHostLoginAccount(
    string loginName,
    string password
)
public:
void SetHostLoginAccount(
    String^ loginName, 
    String^ password
)
member SetHostLoginAccount : 
        loginName:string * 
        password:string -> unit
public function SetHostLoginAccount(
    loginName : String, 
    password : String
)

Parameters

  • loginName
    Type: System.String
    A String value that specifies the SQL Server Authentication login name.
  • password
    Type: System.String
    A String value that specifies the SQL Server Authentication password.

Remarks

This property is supported only in SQL Server 7.0 and SQL Server 2000.

Examples

Scheduling Automatic Administrative Tasks in SQL Server Agent

See Also

Reference

JobServer Class

Microsoft.SqlServer.Management.Smo.Agent Namespace

Other Resources

Automated Administration Tasks (SQL Server Agent)