NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

SQLConnection Constructor

Initializes a new instance of the SQLConnection class.

Overload List

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);

Example

The following example creates a SQLConnection and sets some of its properties.

See Also

SQLConnection Class | SQLConnection Members | System.Data.SQL Namespace