Compartir a través de


ServerEvents.SetCredentials Método

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

Espacio de nombres:  Microsoft.SqlServer.Management.Smo
Ensamblado:  Microsoft.SqlServer.Smo (en Microsoft.SqlServer.Smo.dll)

Sintaxis

'Declaración
Public Sub SetCredentials ( _
    username As String, _
    password As String _
)
'Uso
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
)

Parámetros

Ejemplos

Controlar eventos SMO

Vea también

Referencia

ServerEvents Clase

Espacio de nombres Microsoft.SqlServer.Management.Smo