ServerProxyAccount.SetPassword Method (SecureString)
Sets the proxy account password to the specified secure string.
Namespace: Microsoft.SqlServer.Management.Smo
Assembly: Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)
Syntax
'Declaration
Public Sub SetPassword ( _
password As SecureString _
)
'Usage
Dim instance As ServerProxyAccount
Dim password As SecureString
instance.SetPassword(password)
public void SetPassword(
SecureString password
)
public:
void SetPassword(
SecureString^ password
)
member SetPassword :
password:SecureString -> unit
public function SetPassword(
password : SecureString
)
Parameters
- password
Type: System.Security.SecureString
A SecureString value that specifies the password for the account.
Examples
Scheduling Automatic Administrative Tasks in SQL Server Agent