SqlConnection Constructor
.NET Framework 4.5
Initializes a new instance of the SqlConnection class.
This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.
| Name | Description | |
|---|---|---|
|
SqlConnection() | Initializes a new instance of the SqlConnection class. |
|
SqlConnection(String) | Initializes a new instance of the SqlConnection class when given a string that contains the connection string. |
|
SqlConnection(String, SqlCredential) | Initializes a new instance of the SqlConnection class given a connection string, that does not use Integrated Security = true and a SqlCredential object that contains the user ID and password. |