SetCredentials 方法

Sets the credentials required by the instance of Microsoft SQL Server.

命名空间:  Microsoft.SqlServer.Management.Smo
程序集:  Microsoft.SqlServer.Smo(在 Microsoft.SqlServer.Smo.dll 中)

语法

声明
Public Sub SetCredentials ( _
    username As String, _
    password As String _
)
用法
Dim instance As ServerEvents
Dim username As String
Dim password As String

instance.SetCredentials(username, password)
public void SetCredentials(
    string username,
    string password
)
public:
void SetCredentials(
    String^ username, 
    String^ password
)
member SetCredentials : 
        username:string * 
        password:string -> unit 
public function SetCredentials(
    username : String, 
    password : String
)

参数