Of course this isn't that you answered and maybe this happens because
of our little knowledge of the AS400 but this is my experience for an
application (2 years of 10 man deployment). It is not so smart but it
is stable and working with a lot of remote accessing from all over the
Greece.
Antonis Tsourinakis - Piraeus, Greece
>
>Now anyone that knows db2 knows that this is not possible with DB2 (if
>I am wrong there please tell me, and earn my eternal gratitude). So
>for DB2 we simple use a TSoredProc and get the result set using that.
>
>In our perfect (dream) world our application (several compiled exe's)
>are capable of connecting to interbase or DB2 without any program
>changes.
>
>The problem is this. A TStoredProc connecting to an interbase database
>can be "ExecProc"ed but not opened (to gain access to the result set)
>with DB2 I can do either (execproc or open). With a TQuery connecting
>to a DB2 database I cannot SELECT from a stored procedure (function
>yes procedure no) and get a result set.
>
>Now there are lots of possible solutions.
>in the application have both components and use the appropriate one
>for the appropriate connection.
>
>write some kinda hybrid TDataset (TQuery, TStoredProc.. whatever) that
>has this functionality built in although that seems to me to be rather
>time consuming and not sure if it can be done, cleanly.
>
>Does anyone have any thoughts on this?
>Has anyone face this problem?
>
>Obviously we would like a solution that can be encapsulated into a
>component so that we dont have to code workarounds all throughout the
>app's. But if there are no other solutions then maybe we compromise
>the maintainability to offer the multi database feature.
>
>Jeff Bendixsen
Thanks for the reply, my initial post was probably more of a way to
vent my frustration more than anything. It is good to know that
someone else out there is working with Interbase and DB2.
Some of my initial thoughts for converting to interbase was to bring
much of the stored procedure logic into the delphi app (data modules),
similiar to what I think you are describing. However There was a large
concern about performance and of course the time to convert 400+
procedures. Under interbase our application is fairly mature
(performance tuned in production systems) and it was felt that we
could not take any steps backwards in performance.
I am curious to know how you find the performance between IB and DB2,
and if you have large tables.
Jeff Bendixsen