Article View: borland.public.cppbuilder.database.multi-tier
Article #103Calculations from Stored Procedure to Middle Tier
From: Todd Brasseur
Date: Tue, 27 Sep 2005 19:31
Date: Tue, 27 Sep 2005 19:31
31 lines
2374 bytes
2374 bytes
Hello All, We currently have a two tier application that makes extensive use of stored procedures to perform many complex calculations. We are moving to a multi-tier architecture using Midas. In order to support other databases (other than Firebird), we are going to move all of these stored procedures from the database into the middle tier. So we might currently have a procedure that returns 5 fields and we are now doing a 'SELECT * FROM PROCEDURENAME(param1, param2, etc.)' to maybe fill a grid or populate a report. This procedure may return the 5 fields but might also have many temporary variables that are used to store calculations and may include looping select statements, calls to other procedures etc. Are there components available in C++ Builder (or from a third party) that would allow us to rewrite all of this Stored Procedure code in C++ code as a function or something in the middle layer? That we could then call by the client layer to display the data in a grid or drop down list or whatever? Our database includes close to 600 fairly complicated stored procedures that will need to be recoded into the middle layer and we are having a difficult time finding an effective way to accomplish this. Thanks in advance, Todd Brasseur COMPASS Municipal Services Inc.
Technical Details
Message-ID:
<c6h_e.193315$wr.136445@clgrps12>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newscon06.news.prodigy.com!newscon02.news.prodigy.com!prodigy.net!newsfeed.telusplanet.net!newsfeed.telus.net!clgrps12.POSTED!53ab2750!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: fcd2b,95407b9fb28bb061,start X-Google-Attributes: gidfcd2b,public X-Google-Language: ENGLISH,ASCII-7-bit Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newscon06.news.prodigy.com!newscon02.news.prodigy.com!prodigy.net!newsfeed.telusplanet.net!newsfeed.telus.net!clgrps12.POSTED!53ab2750!not-for-mail From: Todd Brasseur <todd@compass-cama.com> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.2) Gecko/20040804 Netscape/7.2 (ax) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.database.multi-tier Subject: Calculations from Stored Procedure to Middle Tier Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Lines: 31 Message-ID: <c6h_e.193315$wr.136445@clgrps12> Date: Tue, 27 Sep 2005 19:31:20 GMT NNTP-Posting-Host: 142.179.196.17 X-Trace: clgrps12 1127849480 142.179.196.17 (Tue, 27 Sep 2005 13:31:20 MDT) NNTP-Posting-Date: Tue, 27 Sep 2005 13:31:20 MDT