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 with no parameters.

[Visual Basic]
Overloads Public Sub New()
[C#]
public SQLConnection();
[C++]
public: SQLConnection();
[JScript]
public function SQLConnection();

Exceptions

Exception Type Condition
Exception The connection could not be mapped.

Remarks

When an instance of SQLConnection is created, the following read/write properties are set to initial values.

Properties Initial Value
ConnectionString empty string ("")
ConnectionTimeout 15
Database empty string ("")
IsolationLevel Unspecified
DataSource empty string ("")
UserID empty string ("")
Password empty string ("")

You can change the value for any of these properties through a separate call to the property.

Example

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

See Also

SQLConnection Class | SQLConnection Members | System.Data.SQL Namespace | SQLConnection Constructor Overload List