dbTalk Databases Forums  

Using COMMIT with SELECT statements

comp.databases.sybase comp.databases.sybase


Discuss Using COMMIT with SELECT statements in the comp.databases.sybase forum.



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

Default Using COMMIT with SELECT statements - 11-07-2003 , 11:30 AM






I am using ASA 7 and have been advised to use COMMIT when using SELECT
statements in order to prevent locks being left on tables. I have
never expereienced this behaviour with any DBMS that I have used and
not with Sybase either - Uncomitted Trans in DBWatch+ is always
reported as 0.

I would be grateful for advice either way.

Reply With Quote
  #2  
Old   
Joe Weinstein
 
Posts: n/a

Default Re: Using COMMIT with SELECT statements - 11-07-2003 , 11:51 AM








Yahoo Sirius wrote:

Quote:
I am using ASA 7 and have been advised to use COMMIT when using SELECT
statements in order to prevent locks being left on tables. I have
never expereienced this behaviour with any DBMS that I have used and
not with Sybase either - Uncomitted Trans in DBWatch+ is always
reported as 0.

I would be grateful for advice either way.
That advise sounds like hooey from an oracle SQL-plus-centric DBMS novice.
(The SQL-PLUS user program for Oracle operates in 'chained, autocommit(false)
mode.)
Forget it. Sybase connections operate by default in unchained, autoCommit(true)
mode, so unless you've explicitly changed that by changing the session to chained
mode or defined a transaction with 'begin transaction', the DBMS releases
all locks by the time the query is finished.

Joe Weinstein at BEA



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 - 2012, Jelsoft Enterprises Ltd.