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

The
SqlCommand is non-inheritable class representing a Transact-SQL statement or stored procedure to execute against a SQL Server database. It is more or less similar to the OleDbCommand which can be executed against any OLE DB datasource.
      
 

[C#]
public sealed class SqlCommand : Component, IDbCommand, ICloneable

[Visual Basic]
NotInheritable Public Class SqlCommand Inherits Component Implements IDbCommand, Cloneable

[C++]
public __gc __sealed class SqlCommand : public Component, IDbCommand, ICloneable

[JScript]
public class SqlCommand extends Component implements IDbCommand, ICloneable


Members
1 public constructor
12
public properties
3 protected properties
24
public methods
4 protected methods
2 public events
7 explicit interface implemtations


Thread Safety
Any public static/shared members of this type are thread safe. Any instance members are not guaranteed to be thread safe.