The DatabaseName parameter is the name of the database (optional) and the Params parameter is the list of parameters (and values) to use for executing the dataset command.
The RowsAffected variable parameter must be populated by any event handler for this event type, but the DataSet variable parameter only needs to be populated with OnExecuteSelect event handlers.