Initializes a new instance of the SQLConnection class.
Initializes a new instance of the SQLConnection class with no parameters.
[Visual Basic] Overloads Public Sub New()
[C#] public SQLConnection();
[C++] public: SQLConnection();
[JScript] public function SQLConnection();
Initializes a new instance of the SQLConnection class when given a string containing the connection text.
[Visual Basic] Overloads Public Sub New(String)
[C#] public SQLConnection(String);
[C++] public: SQLConnection(String*);
[JScript] public function SQLConnection(String);
Initializes a new instance of the SQLConnection class when given a server, a password and a user ID.
[Visual Basic] Overloads Public Sub New(String, String, String)
[C#] public SQLConnection(String, String, String);
[C++] public: SQLConnection(String*, String*, String*);
[JScript] public function SQLConnection(String, String, String);
Initializes a new instance of the SQLConnection class when given a server, a password, an user ID, and a database to connect to.
[Visual Basic] Overloads Public Sub New(String, String, String, String)
[C#] public SQLConnection(String, String, String, String);
[C++] public: SQLConnection(String*, String*, String*, String*);
[JScript] public function SQLConnection(String, String, String, String);
The following example creates a SQLConnection and sets some of its properties.
SQLConnection Class | SQLConnection Members | System.Data.SQL Namespace