SqlConnection Constructor

 

Initializes a new instance of the SqlConnection class.

Namespace:   System.Data.SqlClient
Assembly:  System.Data (in System.Data.dll)

NameDescription
System_CAPS_pubmethodSqlConnection()

Initializes a new instance of the SqlConnection class.

System_CAPS_pubmethodSqlConnection(String)

Initializes a new instance of the SqlConnection class when given a string that contains the connection string.

System_CAPS_pubmethodSqlConnection(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.

Return to top
Show: