Represents a Transact-SQL statement or stored procedure to execute against a SQL Server database which is used in Microsoft .NET.
SqlCommand is a class in the .NET Framework whose instances represent a SQL statement to later be executed against a SQL Server database.
General syntax:
SqlCommand is instantiated with a query string and a connection. In C#:
SqlCommand cmd = new SqlCommand("select CategoryName from Categories", con);
Reference