Specifying the Command to Execute
With unidirectional datasets, the way you specify the command to execute is the same whether the command results in a dataset or not. That is:
- If CommandType is ctQuery, CommandText is the SQL statement to pass to the server.
- If CommandType is ctStoredProc, CommandText is the name of a stored procedure to execute.
Just as you specify the command in the same way as when you are retrieving records, you work with query parameters or stored procedure parameters the same way as with queries and stored procedures that return records.