共用方式為


ChangeAccount 方法

Encrypts the service master key with the new, specified credentials.

命名空間:  Microsoft.SqlServer.Management.Smo
組件:  Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)

語法

'宣告
Public Sub ChangeAccount ( _
    newAccount As String, _
    newPassword As String _
)
'用途
Dim instance As ServiceMasterKey
Dim newAccount As String
Dim newPassword As String

instance.ChangeAccount(newAccount, newPassword)
public void ChangeAccount(
    string newAccount,
    string newPassword
)
public:
void ChangeAccount(
    String^ newAccount, 
    String^ newPassword
)
member ChangeAccount : 
        newAccount:string * 
        newPassword:string -> unit 
public function ChangeAccount(
    newAccount : String, 
    newPassword : String
)

參數

  • newPassword
    型別:System. . :: . .String
    A String value that specifies the associated password for the account which is used to open the service master key.

範例

使用加密