Méthode JobServer.SetHostLoginAccount

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

Espace de noms :  Microsoft.SqlServer.Management.Smo.Agent
Assembly :  Microsoft.SqlServer.Smo (en Microsoft.SqlServer.Smo.dll)

Syntaxe

'Déclaration
Public Sub SetHostLoginAccount ( _
    loginName As String, _
    password As String _
)
'Utilisation
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
)

Paramètres

  • 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.

Notes

Cette propriété est uniquement prise en charge par SQL Server 7.0 et SQL Server 2000.

Exemples

Planification des tâches administratives automatiques dans l'Agent SQL Server

Voir aussi

Référence

JobServer Classe

Espace de noms Microsoft.SqlServer.Management.Smo.Agent

Autres ressources

Tâches d'administration automatisée (Agent SQL Server)