You are not logged in.
We have an sql server we usually access with OLEDB. It is filled with business logic stored procedures returning datasets and return values. We would like to call this logic using synDB.pas direct access layer.
Is is possible to use parametrized stored procedures with returning datasets and return values using OLEDB and the synDB.pas unit?
Offline
It should work but was not fully tested yet.
My concern is about the returned datasets.
Cursors are implemented for SynDbOracle but not for OleDb yet.
Maybe you could help.
Offline
I'll see if i can run some tests tonight.
Offline
No luck, so far.
I can call the stored procedure fine. The resulting dataset just isn't returned.
It seems stored procedures in mssql don't return datasets the way queries do.
I'll look into the way TStoredProc does it on delphi, see if i can figure something out.
Offline
Yes, result sets output parameters are handled only by SynDBOracle by now.
I think you can take a look at SynDBOracle to see how it was implemented at SynDB level.
There are already methods to return cursors in the SynDB interfaces.
Any hint to include them in SynOleDB may be very appreciated.
Offline