home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / database / informix / 2495 < prev    next >
Encoding:
Text File  |  1992-11-21  |  4.0 KB  |  95 lines

  1. Newsgroups: comp.databases.informix
  2. Path: sparky!uunet!dplanet.ssf-sys.DHL.COM!ssf-sys.DHL.COM!jgordon
  3. From: jgordon@ssf-sys.DHL.COM (Jim Gordon)
  4. Subject: Stored Procedures, Views,
  5. Reply-To: jgordon@ssf-sys.DHL.COM (Jim Gordon)
  6. Organization: DHL
  7. Date: Fri, 20 Nov 1992 18:23:32 GMT
  8. Message-ID: <1992Nov20.182332.27775@gateway.ssf-sys.DHL.COM>
  9. Sender: news@gateway.ssf-sys.DHL.COM (DHL Netnews)
  10. Lines: 83
  11.  
  12. A week or two ago the following article appeared from Adam Tiller in
  13. Australia:-
  14.  
  15. > In article <1992Oct17.022140.24880@NeoSoft.com> freyder@NeoSoft.com
  16. (Rob Freyder) writes:
  17. > >Article 1614 (93 more) in comp.databases.informix:
  18. > >Organization: Western Atlas Int'l - Houston TX
  19. >
  20. > >We are looking for report writers for Informix Online V5.0.
  21. >
  22. > We are using IQ (version 3) on Informix Online 5.0.
  23. >
  24. > We haven't found any problems.
  25. > IQ can handle Informix views.
  26. > We have put stored procedures under the views,
  27. > and this way we can get IQ to take full advantage of Stored Procedures too.
  28. >
  29. >
  30. > Adam
  31. > --
  32. >    ,-_|\     Adam Tiller                  Phone:  +61 3 286 3603 (was
  33. 280 2322)
  34. >   /     \    Co-Cam Computer Group        Fax:    +61 3 416 2985
  35. >   \_,-._/    Abbotsford, Melbourne        Work:  
  36. adamt@auzodt3.mel.cocam.oz.au
  37. >        v     AUSTRALIA                    Play:   adamt@peg.apc.org
  38.  
  39. This mail got me quite excited for a while and I wrote and asked for
  40. how he managed to get Stored Procedures to be called by Informix
  41. views.  Unfortunately I never received a reply.  Having investigated I
  42. am sure that he is referring to some other capability but the
  43. suggestion got me thinking.
  44.  
  45. One of the things that we are currently developing at DHL is a Data
  46. Access Module that will sit between our applications and the database
  47. engine.  This module will handle all updates and queries along with
  48. all integrity checking (Eg. Domain, Referential, Complex Business,
  49. etc).  It will also handle any tightly bound processing that may need
  50. doing on the database for a business transaction.  We are
  51. implementing this through a combination of C, Stored Procedures and
  52. Views.  (The views are used for external report writers)
  53.  
  54. My idea was that if Stored Procedures could be used as part of the
  55. Create view statement in place of the select statement and the Stored
  56. Procedures had some way of knowing whether an Insert, Delete, Update
  57. or Select function had been used.  Using this method much of our Data
  58. Access Module could be replaced by these views which could be used as
  59. if the underlying database looked like the view but in reality the
  60. Stored Procedure was handling the work on as many tables as is
  61. necessary for the business transaction.
  62.  
  63. This would have a number of benefits.
  64.  
  65. 1) It avoids the restrictions on updating through views that
  66. currently exist.
  67.  
  68. 2) It would allow the underlying database structure to be radically
  69. changed but leave applications the same.  This is the purpose of
  70. writing the Data Access Module in the first place but this would
  71. greatly reduce coding changes above the Stored Procedure level to
  72. achieve the same thing.
  73.  
  74. 3) It would allow the introduction of views that could much more
  75. closely mirror particular reporting, application or business
  76. requirements placing the processing burden on the server end and
  77. reducing a lot of client programming and processing.
  78.  
  79. The above suggestion is thrown out for discussion and comment before
  80. possibly being put forward as a feature request.  Comments from
  81. anybody, including Informix, would be appreciated.  Note SPL would
  82. probably need to be extended to cope with dynamically allocated arrays
  83. and would definitely require access to the SQLCA structure (Something
  84. that is planned for 6.0?).
  85.  
  86. Cheers - Jim
  87. --------------------------------------------------------------------
  88. Name:     Jim Gordon               Internet: jgordon@ssf-sys.DHL.COM
  89. Company:  DHL Systems Inc          Phone:    (415) 358-5911 (Work)
  90. Address:  1700 S. Amphlett Blvd.             (415) 882-9728 (Home)
  91.           San Mateo, CA 94402      Fax:      (415) 571-6429
  92. --------------------------------------------------------------------
  93.  
  94.  
  95.