The commands table defines the states of an application. For example, it defines a command-sent state to indicates that the last call an application made was ct_send.
The commands table also maps each state to valid Client-Library routines that an application can call while in that state. For example, in the Command Sent state, an application can cancel the command or the result set, get or set command structure properties, perform operations on a dynamic SQL descriptor area, receive a TDS packet from the server, or set up results for processing.
See “Command states” for a detailed description of each of the command states. See “Callable routines in each command state” for a list of legal calls in each command state.