dbTalk Databases Forums  

How C++ handle lock from Sybase ASE?

sybase.public.omni sybase.public.omni


Discuss How C++ handle lock from Sybase ASE? in the sybase.public.omni forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Matthew
 
Posts: n/a

Default How C++ handle lock from Sybase ASE? - 08-26-2005 , 10:45 PM






as title. and if deadlock is happened. Then how to solve?

Reply With Quote
  #2  
Old   
Rob Verschoor
 
Posts: n/a

Default Re: How C++ handle lock from Sybase ASE? - 08-29-2005 , 04:08 AM






First, note that 'C++' is a programming language. Programming languages do
not access a database -- applications do. Nevertheless, the language in
which an application is written is compeltely irrelevant for this matter.

So, when an application issues a query that gets aborted by the ASE server
because the query runs into a deadlock, then the application can do two
things: (i) present an error to the user (ii) re-submit the same transaction
again and hope it works out OK this time (you may want to put a maximum to
the number of re-submits). As an application programmer, it's your choice
which of the two you take.
You may want to check out http://www.sybase.com/detail?id=1001342 for some
more background.

HTH,

Rob
-------------------------------------------------------------
Rob Verschoor

Certified Sybase Professional DBA for ASE 12.5/12.0/11.5/11.0
and Replication Server 12.5 / TeamSybase

Author of Sybase books (order online at www.sypron.nl/shop):
"Tips, Tricks & Recipes for Sybase ASE"
"The Complete Sybase Replication Server Quick Reference Guide"
"The Complete Sybase ASE Quick Reference Guide"

mailto:rob (AT) YOUR (DOT) SPAM.sypron.nl.NOT.FOR.ME
http://www.sypron.nl
Sypron B.V., P.O.Box 10695, 2501HR Den Haag, The Netherlands
-------------------------------------------------------------

<Matthew> wrote

Quote:
as title. and if deadlock is happened. Then how to solve?



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.