BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Isolation Levels

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (SQL Servers)
View previous topic :: View next topic  
Author Message
Rhea Grason
Guest





PostPosted: Wed Nov 09, 2005 5:01 pm    Post subject: Isolation Levels Reply with quote



I use Delphi5 as the front end to Sybase SQLAnywhere databases. I am having issues with locking. I have several queries which return more than one row. When one user has a query open for viewing only and then another user tries to make a change to a record from that query, the app will hang until the other user closes the query, and then the changes will be saved. What exactly do I need to do to make it possible for changes to be made by one user while another user may be looking at the same query set? I am using the BDE and cached updates.
Back to top
SQL
Guest





PostPosted: Wed Nov 09, 2005 5:34 pm    Post subject: Re: Isolation Levels Reply with quote



Hi, take a look at
http://www.ianywhere.com/developer/product_manuals/sqlanywhere/0901/en/html/dbugen9/00000126.htm


http://sqlservercode.blogspot.com/

Back to top
Oliver Townshend
Guest





PostPosted: Thu Nov 10, 2005 7:03 am    Post subject: Re: Isolation Levels Reply with quote



Quote:
I use Delphi5 as the front end to Sybase SQLAnywhere databases. I am having
issues with locking. I have several queries which return more than one row.
When one user has a query open for viewing only and then another user tries
to make a change to a record from that query, the app will hang until the
other user closes the query, and then the changes will be saved. What
exactly do I need to do to make it possible for changes to be made by one
user while another user may be looking at the same query set? I am using
the BDE and cached updates.

You shouldn't do a StartTransaction and then wait for user input. You can
save up the Start and Commit to wrap around your BatchUpdate. At least
that's my theory about what's going wrong. Haven't used SQLAnywhere with
BDE in a decade.

Oliver Townshend



Back to top
Rhea Grason
Guest





PostPosted: Mon Nov 14, 2005 4:49 pm    Post subject: Re: Isolation Levels Reply with quote

I don't call a start transaction in code until the user has clicked on the save button. Is that what you mean?
Back to top
Oliver Townshend
Guest





PostPosted: Tue Nov 15, 2005 4:11 am    Post subject: Re: Isolation Levels Reply with quote

Quote:
I don't call a start transaction in code until the user has clicked on the
save button. Is that what you mean?

Well yes and no. That won't be causing your locking problems then, unless
their is an implicit transaction somewhere else. Sorry I can't help.

Oliver Townshend



Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (SQL Servers) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.