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 

Locks and Cursors

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (ADO)
View previous topic :: View next topic  
Author Message
Randi White
Guest





PostPosted: Thu Feb 19, 2004 4:40 am    Post subject: Locks and Cursors Reply with quote



I am trying to convert a D5 BDE Paradox app to my first D5 ADO SQL 2000 app.
I may have several users trying to access the same record simultaneously I
am missing the functionality that the BDE offers up front when a record is
locked ie 'record is locked' BEFORE users start editing. Looking at the
MDAC SDK I interpret that I need to set pessimistic lock and dynamic cursor
type for 'locking up front' but when I attempt to do that and open the table
or query , the IDE sets the cursor TYPE back static on me and the lock to
batch optimistic. If I set the cursor LOCATION to server with pessimistic
and dynamic I get error "Dataset does not support bookmarks which are
required for multi-record data controls."

If someone shed some light on how to achieve the desired results, it would
be greatly appreciated.

Thanks in advance


Back to top
Kevin Frevert
Guest





PostPosted: Thu Feb 19, 2004 11:02 am    Post subject: Re: Locks and Cursors Reply with quote



Randi,

Locking in MSSQL (or most RDBMSs) is very different than Paradox (far too
much to get into here). MSSQL's Books Online has some good information on
it's locking mechanism.

To help avoid common pitfalls with converting desktop db apps...
http://bdn.borland.com/article/0,1410,28160,00.html

Other misc stuff...
http://www.hower.org/Kudzu/Articles/DBDesign/index.html
http://bdn.borland.com/article/0,1410,27790,00.html

Good luck,
krf

"Randi White" <rwhite (AT) nsaero (DOT) com> wrote

Quote:
I am trying to convert a D5 BDE Paradox app to my first D5 ADO SQL 2000
app.
I may have several users trying to access the same record simultaneously I
am missing the functionality that the BDE offers up front when a record is
locked ie 'record is locked' BEFORE users start editing. Looking at the
MDAC SDK I interpret that I need to set pessimistic lock and dynamic
cursor
type for 'locking up front' but when I attempt to do that and open the
table
or query , the IDE sets the cursor TYPE back static on me and the lock to
batch optimistic. If I set the cursor LOCATION to server with
pessimistic
and dynamic I get error "Dataset does not support bookmarks which are
required for multi-record data controls."

If someone shed some light on how to achieve the desired results, it
would
be greatly appreciated.

Thanks in advance





Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (ADO) 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.