Remarque
L’accès à cette page nécessite une autorisation. Vous pouvez essayer de vous connecter ou de modifier des répertoires.
L’accès à cette page nécessite une autorisation. Vous pouvez essayer de modifier des répertoires.
Sets the account name and secure password for the proxy account on the instance of SQL Server.
Espace de noms : Microsoft.SqlServer.Management.Smo
Assembly : Microsoft.SqlServer.Smo (en Microsoft.SqlServer.Smo.dll)
Syntaxe
'Déclaration
Public Sub SetAccount ( _
windowsAccount As String, _
password As SecureString _
)
'Utilisation
Dim instance As ServerProxyAccount
Dim windowsAccount As String
Dim password As SecureString
instance.SetAccount(windowsAccount, password)
public void SetAccount(
string windowsAccount,
SecureString password
)
public:
void SetAccount(
String^ windowsAccount,
SecureString^ password
)
member SetAccount :
windowsAccount:string *
password:SecureString -> unit
public function SetAccount(
windowsAccount : String,
password : SecureString
)
Paramètres
- windowsAccount
Type : System.String
A String value that specifies the name of the account.
- password
Type : System.Security.SecureString
A SecureString value that specifies the password for the account.
Exemples
Planification des tâches administratives automatiques dans l'Agent SQL Server