|Important||This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.|
Provides methods to set and execute a command.
template < class TAccessor = CNoAccessor, template < typename T > class TRowset = CRowset, class TMultiple = CNoMultipleResults > class CCommand : public CAccessorRowset < TAccessor, TRowset >, public CCommandBase, public TMultiple
Use this class when you need to perform a parameter-based operation or execute a command. If you merely need to open a simple rowset, use CTable instead.
The accessor class you are using determines the method of binding parameters and data.
Note that you cannot use stored procedures with the OLE DB Provider for Jet because that provider does not support stored procedures (only constants are allowed in query strings).