home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / database / sybase / 627 < prev    next >
Encoding:
Internet Message Format  |  1993-01-07  |  1.5 KB

  1. Path: sparky!uunet!cis.ohio-state.edu!magnus.acs.ohio-state.edu!usenet.ins.cwru.edu!agate!ucbvax!mtxinu!sybase!davidvc
  2. From: davidvc@sybase.com (David Van Couvering)
  3. Newsgroups: comp.databases.sybase
  4. Subject: Re: What does dbcancel() do?
  5. Message-ID: <27690@sybase.sybase.com>
  6. Date: 7 Jan 93 05:00:48 GMT
  7. References: <1420@shrike.com>
  8. Sender: news@Sybase.COM
  9. Organization: Sybase, Inc.
  10. Lines: 23
  11.  
  12. [ stuff deleted... ]
  13. >dbcancel() says that it sends a signal to the server to stop
  14. >processing the current command batch and discard any results. Since
  15. >I am just doing inserts, I don't really care about the results.
  16. >However, I am not sure what delimits the "current" command batch,
  17. >and I might not want to cancel THAT.
  18. >
  19. >Does anyone KNOW how this works? Particularly if the command batch
  20. >DOES contain several statements (all INSERTs in this case).
  21.  
  22. dbcancel() cancels all the inserts that are part of the current
  23. dbsqlexec().  dbcanquery would only cancel one of them (unless
  24. the inserts were all part of a stored procedure).  In more exact
  25. terms, dbcanquery() only cancels one set of results (equivalent
  26. to one call to dbresults and then an empty dbnextrow loop).  
  27. dbresults() cancesl all sets of results (equivalent to an empty
  28. dbresults loop and an empty dbnextrow() loop).
  29.  
  30. David
  31. --
  32. davidvc@sybase.com | {pacbell,lll-tis,pyramid,sun}!sybase!davidvc
  33. David Van Couvering Sybase 1650 65th Street Emeryville, CA  94608
  34. - Opinions expressed here are mine and not necessarily those of Sybase -
  35.