This documentation is archived and is not being maintained.

SqlCommand Constructor

Initializes a new instance of the SqlCommand class.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

  NameDescription
Public method SqlCommand() Initializes a new instance of the SqlCommand class.
Public method SqlCommand(String) Initializes a new instance of the SqlCommand class with the text of the query.
Public method SqlCommand(String, SqlConnection) Initializes a new instance of the SqlCommand class with the text of the query and a SqlConnection.
Public method SqlCommand(String, SqlConnection, SqlTransaction) Initializes a new instance of the SqlCommand class with the text of the query, a SqlConnection, and the SqlTransaction.
Top
Show: