Hi all,
I need to validate the results of a complex bill of materials tree, populated by an underlying stored procedure.
I'm currently doing this directly in the application (a Windows app using Delphi) by writing selected columns of the tree data to a text file and comparing it to a file checkpoint. I would like to be able to do this comparison directly against the database.
The challenge is that I need to call a stored procedure with parameters, then walk through the multi row result, writing it to a file so I can compare it to the baseline as I do already. DBTable checks won't work in this case, because if a different amount of rows are returned I need to see exactly what the differences are.
Can somebody help me out with some Delphiscript code here? What I need, if possible, is the code to call the procedure and return the results into a two dimensional array or equivalent data set. I can take it from there to write that into a file and check it.
I've looked at the CreateADOStoredProc help, but it isn't clear to me how to make the result set do what I want.
If you have any better ideas for how to do what I need, I'm always open to suggestions.
Thanks!