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