ServerEvents.SetCredentials(String, String) Method

Definition

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

public:
 void SetCredentials(System::String ^ username, System::String ^ password);
public void SetCredentials (string username, string password);
member this.SetCredentials : string * string -> unit
Public Sub SetCredentials (username As String, password As String)

Parameters

username
String

A String value that specifies the login account name.

password
String

A String value that specifies the password for the login.

Examples

Handling SMO Events

Applies to