ICommandExecuter2.Connect Method

Definition

Connects to a SQL Server instance.

public:
 ManagedBatchParser::ParserAction Connect(int timeout, System::String ^ server, System::String ^ user, System::String ^ password, bool encyptConnection, bool trustServerCertificate);
public ManagedBatchParser.ParserAction Connect (int timeout, string server, string user, string password, bool encyptConnection, bool trustServerCertificate);
abstract member Connect : int * string * string * string * bool * bool -> ManagedBatchParser.ParserAction
Public Function Connect (timeout As Integer, server As String, user As String, password As String, encyptConnection As Boolean, trustServerCertificate As Boolean) As ParserAction

Parameters

timeout
Int32

Connection timeout value, in seconds.

server
String

The server name.

user
String

The user Identifier.

password
String

The password.

encyptConnection
Boolean

Indicates whether the connection should be encrypted.

trustServerCertificate
Boolean

If false, validates the Trust Server Certificate.

Returns

The parser action, either Abort or Continue.

Applies to