Udostępnij przez


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

'Deklaracja
Public Sub SetHostLoginAccount ( _
    loginName As String, _
    password As String _
)
public void SetHostLoginAccount (
    string loginName,
    string password
)
public:
void SetHostLoginAccount (
    String^ loginName, 
    String^ password
)
public void SetHostLoginAccount (
    String loginName, 
    String password
)
public function SetHostLoginAccount (
    loginName : String, 
    password : String
)

Parameters

  • loginName
    A String value that specifies the SQL Server Authentication login name.
  • password
    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.

Thread Safety

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

Platforms

Development Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server.

Target Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server.