SqlCommand Constructor

 

Initializes a new instance of the SqlCommand class.

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

NameDescription
System_CAPS_pubmethodSqlCommand()

Initializes a new instance of the SqlCommand class.

System_CAPS_pubmethodSqlCommand(String)

Initializes a new instance of the SqlCommand class with the text of the query.

System_CAPS_pubmethodSqlCommand(String, SqlConnection)

Initializes a new instance of the SqlCommand class with the text of the query and a SqlConnection.

System_CAPS_pubmethodSqlCommand(String, SqlConnection, SqlTransaction)

Initializes a new instance of the SqlCommand class with the text of the query, a SqlConnection, and the SqlTransaction.

System_CAPS_pubmethodSqlCommand(String, SqlConnection, SqlTransaction, SqlCommandColumnEncryptionSetting)

Initializes a new instance of the SqlCommand class with specified command text, connection, transaction, and encryption setting.

Return to top
Show: