home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / database / informix / 3018 next >
Encoding:
Internet Message Format  |  1993-01-21  |  2.2 KB

  1. Path: sparky!uunet!pipex!unipalm!uknet!pyrltd!graeme
  2. From: graeme@pyra.co.uk (Graeme Sargent)
  3. Newsgroups: comp.databases.informix
  4. Subject: Re: ESQL/C -- sqlturbo and sqldetach()
  5. Message-ID: <1993Jan21.090631.17764@pyra.co.uk>
  6. Date: 21 Jan 93 09:06:31 GMT
  7. References: <FORNEY.93Jan19085549@vega.bsdsun>
  8. Sender: graeme@pyra.co.uk (Graeme Sargent)
  9. Reply-To: graeme@pyramid.com (Graeme Sargent)
  10. Organization: Pyramid Technology Ltd.
  11. Lines: 38
  12.  
  13. In <FORNEY.93Jan19085549@vega.bsdsun> forney@vega.bsdsun (Elizabeth Forney  -- NEC America Network Management Group) writes:
  14.  
  15. >I need the capability to access two databases at once from a single 
  16. >application.  With Version 5.00 of ESQL/C I noticed that there is a
  17. >sqldetach function now available.  The manual is not quite clear, and I
  18. >am wondering if sqldetach allows me to process requests from two databases
  19. >at once, without closing one database before accessing the other?  The 
  20. >manual did not contain a code example.  Could anyone on the net clarify the
  21. >use of sqldetach -- possibly with a code snippet illustrating its use?
  22.  
  23. I get the impression you're barking up the wrong tree here.  As I
  24. understand it sqldetach() allows a child process to detach from it's
  25. parent's sqlturbo.
  26.  
  27. I don't understand why your requirement is not handled by code such as:
  28.  
  29.     DATABASE db1;
  30.     INSERT INTO db2:tab2 SELECT * FROM tab1 WHERE ...
  31.  
  32. since you imply you are using OnLine 5.0 (as SE can't do it) and I would
  33. call this one app accessing two databases???
  34.  
  35. graeme
  36. --
  37. Disclaimer:    The author's opinions are his own, and not necessarily
  38.         those of Pyramid Technology Ltd. or Pyramid Technology Inc.
  39. --------------------------------------------------------------------------------
  40.       -m------- Graeme Sargent                 Voice: +44 (0)252 373035
  41.     ---mmm----- Senior Database Consultant     Fax  : +44 (0)252 373135
  42.   -----mmmmm--- Pyramid Technology Ltd.        Telex: Tell who???
  43. -------mmmmmmm- Farnborough, Hants  GU14 7PL   Email: graeme@pyra.co.uk
  44. --------------------------------------------------------------------------------
  45.     We have the technology.  The tricky bit is learning how to use it.
  46. -- 
  47. graeme
  48. --
  49. Disclaimer:    The author's opinions are his own, and not necessarily
  50.         those of Pyramid Technology Ltd. or Pyramid Technology Inc.
  51.