Share via


WindowsCredential.SetSqlRegSvrCredential Method

Definition

Overloads

SetSqlRegSvrCredential(String, Int32, String, Guid, SecureString)
SetSqlRegSvrCredential(String, Int32, String, Guid, SecureString, String)

Stores the password for the given RegSvr connection in Windows Credential Manager. Currently only used by SqlRepl UI, not to be confused with SSMS registered servers.

SetSqlRegSvrCredential(String, Int32, String, Guid, SecureString)

public static void SetSqlRegSvrCredential(string instance, int authType, string user, Guid serverType, System.Security.SecureString password);
static member SetSqlRegSvrCredential : string * int * string * Guid * System.Security.SecureString -> unit
Public Shared Sub SetSqlRegSvrCredential (instance As String, authType As Integer, user As String, serverType As Guid, password As SecureString)

Parameters

instance
String
authType
Int32
user
String
serverType
Guid
password
SecureString

Applies to

SetSqlRegSvrCredential(String, Int32, String, Guid, SecureString, String)

Stores the password for the given RegSvr connection in Windows Credential Manager. Currently only used by SqlRepl UI, not to be confused with SSMS registered servers.

public static void SetSqlRegSvrCredential(string instance, int authType, string user, Guid serverType, System.Security.SecureString password, string version);
static member SetSqlRegSvrCredential : string * int * string * Guid * System.Security.SecureString * string -> unit
Public Shared Sub SetSqlRegSvrCredential (instance As String, authType As Integer, user As String, serverType As Guid, password As SecureString, version As String)

Parameters

instance
String

The server name

authType
Int32

The type of authentication used by the connection. The meaning of the value depends on the serverType

user
String

The user name

serverType
Guid

The type of server connection. The valid values are application dependent.

password
SecureString

The password

version
String

The version identifier of the calling application

Exceptions

Thrown when saving the password fails

Applies to