home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / lang / cplus / 12273 < prev    next >
Encoding:
Text File  |  1992-08-12  |  2.1 KB  |  51 lines

  1. Newsgroups: comp.lang.c++
  2. Path: sparky!uunet!haven.umd.edu!darwin.sura.net!zaphod.mps.ohio-state.edu!news.acns.nwu.edu!network.ucsd.edu!dog.ee.lbl.gov!overload.lbl.gov!phd.lbl.gov!prem
  3. From: prem@phd.lbl.gov (Shirdi R. Prem)
  4. Subject: Re: SQL and C++
  5. Message-ID: <1992Aug12.191218.3757@overload.lbl.gov>
  6. Keywords: Oracle Call Interfaces (OCI)
  7. Sender: usenet@overload.lbl.gov
  8. Nntp-Posting-Host: phd.lbl.gov
  9. Reply-To: prem@phd.lbl.gov (Shirdi R. Prem)
  10. Organization: Lawrence Berkeley Laboratory
  11. References: <1992Aug12.090938.22049@nestroy.wu-wien.ac.at>
  12. Date: Wed, 12 Aug 92 19:12:18 GMT
  13. Lines: 36
  14.  
  15.  
  16.         Hi there,
  17.  
  18.         Having done some work as a consultant at IBM until last
  19.         week, I may be able to help out a little here.
  20.  
  21.         Oracle provides something called Oracle Call Interfaces (OCI),
  22.         which allow you to set up your program variables and bind
  23.         them to placeholders in the SQL command.
  24.  
  25.         What we did was write a class in C++, which opened a login
  26.         session (cursor) to Oracle. Then, we would begin the
  27.         laborious process of setting up the arrays for input variables,
  28.         output vars, indicators and return codes etc. Finally, once
  29.         everything was ready, we would call the Oracle functions
  30.         with these vars.
  31.  
  32.         It is not much fun to do, but then, it does the job. Since
  33.         this was done in IBM, I am not sure if I can get very generous
  34.         about the specifics without risking some "proprietary code" b.s.
  35.  
  36.         Another reason is that I am currently "at lunch" and I value
  37.         the half-hour break highly. So, I will keep this short.
  38.  
  39.         If you have any questions, contact me via e-mail and we will 
  40.         take it from there.
  41.  
  42.             Good luck,
  43.  
  44.             Prem!
  45. ================================================================================
  46. ====    The above is not LBL's opinion. LBL and IBM are trademarks of       ====
  47. ====    someone else's. Hey, I'm just trying to help!                       ====
  48. ================================================================================
  49. ====    prem@csr.lbl.gov    ====    Temporary phone number : 510-745-7220   ====
  50. ================================================================================
  51.