Where in the DA Business Processors that are auto created can we see the final result of the created Sql insert and update statements?
Or can we see this sql statement somewhere on an event?
Would like to log this result prior to the execution of the statement. Also, will this show the exact sql to be executed or is it without the parameters being processed with the passed data?
procedure TDataService.DataAbstractServiceBusinessProcessorAutoCreated(aSender: TRORemoteDataModule;
BusinessProcessor: TDABusinessProcessor);
begin
if BusinessProcessor.ReferencedDataset = 'MyTable' then
BusinessProcessor.OnBeforeExecuteCommand := My_OnBeforeExecuteCommand;
end;
We assign values via parameters so you should log param values too.
Note: Insert/Update/Delete commands are created dynamically during processing of each delta unless you assigned existing commands to BP manually or set them in Schema Modeler:
I can get it to work if I setup with a manually place Business Processor but I cannot figure out how to do it with an auto created one. Trying to get the Sql statement that was created.
So this tells me now that the Business Processor is working correctly to create the Insert and Update statements. Somewhere down the line in the custom driver is a problem where the created statement is not being used when the statement is actually run.