Compartilhar via


Método SetHostLoginAccount

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 (em Microsoft.SqlServer.Smo.dll)

Sintaxe

'Declaração
Public Sub SetHostLoginAccount ( _
    loginName As String, _
    password As String _
)
'Uso
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
)

Parâmetros

Comentários

Há suporte para essa propriedade apenas no SQL Server 7.0 e no SQL Server 2000.