home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / database / sybase / 747 < prev    next >
Encoding:
Text File  |  1993-01-28  |  3.4 KB  |  90 lines

  1. Newsgroups: comp.databases.sybase
  2. Path: sparky!uunet!ukma!gatech!news.ans.net!cmcl2!panix!dbenua
  3. From: dbenua@panix.com (David Benua)
  4. Subject: Q+E Lib revisited...
  5. Message-ID: <C1JnDw.Gro@panix.com>
  6. Organization: PANIX Public Access Unix, NYC
  7. Date: Thu, 28 Jan 1993 03:08:19 GMT
  8. Lines: 80
  9.  
  10.  
  11. This thread started here in comp.databases.sybase. I thought
  12. that the answer might be of general interest
  13.  
  14. >At 10:55 PM 1/26/93 -0500, David Benua wrote:
  15. >>I've been using the Q+E DLLs with Sybase on UNIX for several months.
  16. >>You will need:
  17. >>A copy of DBLIB - W3DBLIB.DLL
  18. >>the netlib for your  TCPIP package  - e.g. WDBFTPTC.DLL or WDBNOVTC.DLL
  19. >>a TCPIP package that supports windows (e.g. LAN Workplace or FTP PC/TCP)
  20. >>
  21. >Is this DLL provided by Sybase?  At what cost?
  22. >
  23.  
  24. Yes, both W3DBLIB and the NetLibrary (in our case WDBFTPTC.DLL) are 
  25. provided by Sybase. My recollection is that the total cost is about $199
  26. for the pair (single copy). There are, of course, volume discounts.
  27. BTW, QELIB itself lists for around $325, if I'm not mistaken.
  28.  
  29. >>It works very well. I find that the real advantage is that it can be 
  30. >>called from Macro languages like Excel or Visual Basic. There's not 
  31. >>a great advantage if you're already writing in C.
  32. >>
  33. >Is there an advantage to this product if you are doing C++ and just don't
  34. >want to deal with SQL?  I mean, with the DLLs, you just construct your
  35. >program and don't have to worry about that part of it.
  36. >
  37. >
  38. What do you mean by "just don't want to deal with SQL". You must still
  39. construct SQL statements and pass them to the database with qeSetSQL()
  40. qeAppendSQL() and qeExecSQL(). You must still fetch individual columns 
  41. and rows of your result set with functions like qeFetchNext() and 
  42. qeValCharBuf(). I don't know about you, but I wouldn't call this 
  43. "not dealing with SQL". 
  44.  
  45. In a C (or C++) environment, there are two advantages to QELIB that I can
  46. think of:
  47. 1) Portability. The same (well, nearly the same) code will work on ORACLE,
  48. Sybase, DBase IV, etc. databases. This is a real advantage if you must 
  49. use, for example the Oracle embedded C and Sybase DBLibrary calls. Of course,
  50. being a real C++ programmer, you could just construct appropriate classes
  51. for SQL objects like statements, result rows, data columns, etc. But Pioneer
  52. has done the work for you. 
  53.  
  54. 2) It is a slightly higher level interface than DBLibrary directly. For
  55. example, you don't need to worry about DBProcesses and DBLogins. There is 
  56. only one entity: the Connection. Error handling is also simpler. You can
  57. write a decent error handler which outputs appropriate messages in 
  58. about 10 lines of code.
  59.  
  60. Whether it's worth it depends on the application. If you don't need 
  61. portability, I'm not sure I'd bother. Look for, (or build) a class library
  62. for those functions you need. If you do need portability, remember that
  63. QE doesn't map the SQL statements. There a number of subtle differences 
  64. in SQL syntax between databases. Usually, simple stuff (SELECT * FROM TABLE1
  65. WHERE ...) will work, but more complex things, like outer joins,
  66. will be handled differently in different databases. 
  67.  
  68. I hope this helps
  69.  
  70. Dave B.
  71.  
  72.  
  73.  
  74.  
  75.  
  76. >Thanks.
  77. >
  78.  
  79. ======================================================
  80. Jeff Gehlhaar           QUALCOMM Incorporated 
  81. jbg@qualcomm.com        San Diego, CA, USA
  82. (619) 597-5241          "The Elegant Solution...."
  83. ======================================================
  84.  
  85.  
  86. -- 
  87. David Benua                  Internet: dbenua@panix.com 
  88.                        Compu$erve: 72630,1416
  89.          
  90.