Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using COMMIT with SELECT statements

Status
Not open for further replies.
Nov 7, 2003
2
GB
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.
 
I have been advied this by my application vendor - Sybase is the host DB.
 
By default, Sybase has autocommit turned on.

If you begin transaction then, yes, locks may be retained.

I suggest you take a look at the docs - see auto commit and transaction isolation levels - they should help make things clear.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top