SetCredentials méthode
Sets the credentials required by the instance of Microsoft SQL Server.
Espace de noms : Microsoft.SqlServer.Management.Smo
Assembly : Microsoft.SqlServer.Smo (dans Microsoft.SqlServer.Smo.dll)
Syntaxe
'Déclaration
Public Sub SetCredentials ( _
username As String, _
password As String _
)
'Utilisation
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
)
Paramètres
- username
Type : System. . :: . .String
A String value that specifies the login account name.
- password
Type : System. . :: . .String
A String value that specifies the password for the login.
Voir aussi