Parameters
- commandText
- The text of the query.
- connection
- A SqlConnection object that represents the connection to SQL Server.
- transaction
- SqlTransaction object used to perform transactions with this SqlCommand object.
Properties | Initial value |
---|---|
CommandText | commandText |
CommandTimeout | 30 |
CommandType | System.Data.CommandType.Text |
Connection | connection |
You can change the value for any of these parameters by setting the related property.
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2