Export (0) Print
Expand All

SqlCommand Properties

The SqlCommand type exposes the following members.

  Name Description
Public property CommandText Gets or sets the Transact-SQL statement, table name or stored procedure to execute at the data source. (Overrides DbCommand.CommandText.)
Public property CommandTimeout Gets or sets the wait time before terminating the attempt to execute a command and generating an error. (Overrides DbCommand.CommandTimeout.)
Public property CommandType Gets or sets a value indicating how the CommandText property is to be interpreted. (Overrides DbCommand.CommandType.)
Public property Connection Gets or sets the SqlConnection used by this instance of the SqlCommand.
Public property Container Gets the IContainer that contains the Component. (Inherited from Component.)
Public property DesignTimeVisible Gets or sets a value indicating whether the command object should be visible in a Windows Form Designer control. (Overrides DbCommand.DesignTimeVisible.)
Public property Notification Gets or sets a value that specifies the SqlNotificationRequest object bound to this command.
Public property NotificationAutoEnlist Gets or sets a value indicating whether the application should automatically receive query notifications from a common SqlDependency object.
Public property Parameters Gets the SqlParameterCollection.
Public property Site Gets or sets the ISite of the Component. (Inherited from Component.)
Public property Transaction Gets or sets the SqlTransaction within which the SqlCommand executes.
Public property UpdatedRowSource Gets or sets how command results are applied to the DataRow when used by the Update method of the DbDataAdapter. (Overrides DbCommand.UpdatedRowSource.)
Top

  Name Description
Explicit interface implemetation Private property IDbCommand.Connection Gets or sets the IDbConnection used by this instance of the IDbCommand. (Inherited from DbCommand.)
Explicit interface implemetation Private property IDbCommand.Parameters Gets the IDataParameterCollection. (Inherited from DbCommand.)
Explicit interface implemetation Private property IDbCommand.Transaction Gets or sets the DbTransaction within which this DbCommand object executes. (Inherited from DbCommand.)
Top
Show:
© 2014 Microsoft