home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / bit / listserv / cmspipl / 581 < prev    next >
Encoding:
Text File  |  1992-09-08  |  1.6 KB  |  46 lines

  1. Comments: Gated by NETNEWS@AUVM.AMERICAN.EDU
  2. Path: sparky!uunet!paladin.american.edu!auvm!VNET.BITNET!PIPER
  3. Message-ID: <CMSPIP-L%92090904321262@VM.MARIST.EDU>
  4. Newsgroups: bit.listserv.cmspip-l
  5. Date:         Wed, 9 Sep 1992 10:32:28 LCL
  6. Sender:       VM/SP CMS Pipelines Discussion List <CMSPIP-L@MARIST.BITNET>
  7. From:         "John P. Hartmann" <PIPER@VNET.BITNET>
  8. Subject:      Subject not specified.
  9. Lines: 35
  10.  
  11.  To:   David Rosenberg
  12.  CC:   Piplist
  13.  From: John P. Hartmann, AIX & OpenSys, Copenhagen.  JOHN     at DKIBMVM2
  14.  
  15.  Hi, David.
  16.  
  17.  I can see that I am rather terse on this in the SQL help information;
  18.  I should certainly expand on this.
  19.  
  20.  There is a bug in my SQL interface such that this sequence:
  21.     pipe literal insert xxx | s: sql execute
  22.                  <----l--->                  <----n---->
  23.  the length of the insert statement (l) is incorrectly taken as the
  24.  length of any additional operands on execute (n).  The error message is
  25.  particularly unintelligent when n is zero.
  26.  
  27.  The  scan  of the  connect  command  is  as SQL  proscribes.   Without
  28.  keywords,  the sequence  is indeed  userid, password,  database.  This
  29.  from PIPSQL ASSEMBLE:
  30.  
  31. * CONNECT <userid> [IDENTIFIED [BY]] <password> [TO <database>]
  32. * CONNECT TO <database>
  33.  
  34.  The easiest way by far is to do all of this with three separate
  35.  PIPE commands using the nocommit option on SQL.
  36.  
  37.   pipe sql nocommit execute connect user password database
  38.   pipe sql nocommit execute delete
  39.   pipe .... | sql insert into oscar
  40.  
  41.  Though you can combine the first two:
  42.  
  43.   pipe literal delete ...|sql nocommit execute connect user password db
  44.  
  45.      j.                                                john@vnet.ibm.com
  46.