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 

TTable Lock

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





PostPosted: Wed Dec 17, 2003 7:17 am    Post subject: TTable Lock Reply with quote




how to lock table using TTable ?

Thanks
Back to top
George Christoforakis
Guest





PostPosted: Wed Dec 17, 2003 8:40 am    Post subject: Re: TTable Lock Reply with quote



table or record? On which database?
George Christoforakis.

"Iwan Deni Budihalim" <a@b.com> wrote

Quote:

how to lock table using TTable ?

Thanks



Back to top
Bill Todd (TeamB)
Guest





PostPosted: Wed Dec 17, 2003 1:12 pm    Post subject: Re: TTable Lock Reply with quote



It is almost always impossible to answer a database question when you
do not tell us what database you are using.

--
Bill (TeamB)
(TeamB cannot respond to questions received via email)
Back to top
Iwan Deni Budihalim
Guest





PostPosted: Thu Dec 18, 2003 3:03 am    Post subject: Re: TTable Lock Reply with quote


I'm Using sql server 2000 database.. and i want to lock certainly record when someone want to edit or delete that record.

how to do it ?
thanks.

"Bill Todd (TeamB)" <no (AT) no (DOT) com> wrote:
Quote:
It is almost always impossible to answer a database question when you
do not tell us what database you are using.

--
Bill (TeamB)
(TeamB cannot respond to questions received via email)


Back to top
George Christoforakis
Guest





PostPosted: Thu Dec 18, 2003 10:21 am    Post subject: Re: TTable Lock Reply with quote

You either have to use pessimistic lock or if you use optimistic lock to put
it in edit mode.
George Christoforakis.

"Iwan Deni Budihalim" <a@b.com> wrote

Quote:

I'm Using sql server 2000 database.. and i want to lock certainly record
when someone want to edit or delete that record.

how to do it ?
thanks.

"Bill Todd (TeamB)" <no (AT) no (DOT) com> wrote:
It is almost always impossible to answer a database question when you
do not tell us what database you are using.

--
Bill (TeamB)
(TeamB cannot respond to questions received via email)




Back to top
George Christoforakis
Guest





PostPosted: Thu Dec 18, 2003 10:24 am    Post subject: Re: TTable Lock Reply with quote

When you mean 'lock' then record do you mean lock as in database terms or
somekind of a flag to prevent record 150th (for example) to be readonly?
George Christoforakis.

"Iwan Deni Budihalim" <a@b.com> wrote

Quote:

I'm Using sql server 2000 database.. and i want to lock certainly record
when someone want to edit or delete that record.

how to do it ?
thanks.

"Bill Todd (TeamB)" <no (AT) no (DOT) com> wrote:
It is almost always impossible to answer a database question when you
do not tell us what database you are using.

--
Bill (TeamB)
(TeamB cannot respond to questions received via email)




Back to top
Kevin Frevert
Guest





PostPosted: Thu Dec 18, 2003 11:14 am    Post subject: Re: TTable Lock Reply with quote

Iwan,

First, never use table-based components against a set-based RDBMS. Check
out:
http://bdn.borland.com/article/0,1410,28160,00.html

Second, avoid using the BDE against MSSQL 7/2000. Use ADO (TADODataSet,
TADOCommand, etc)
Check out:
http://community.borland.com/article/0,1410,28688,00.html
http://community.borland.com/article/0,1410,10359,00.html
http://community.borland.com/article/0,1410,19694,00.html
http://support.microsoft.com/default.aspx?scid=kb;en-us;260817

Third, check out locking in MSSQL's Books Online. Far too much information
to place here.

Good luck,
krf

"Iwan Deni Budihalim" <a@b.com> wrote

Quote:

I'm Using sql server 2000 database.. and i want to lock certainly record
when someone want to edit or delete that record.

how to do it ?
thanks.

"Bill Todd (TeamB)" <no (AT) no (DOT) com> wrote:
It is almost always impossible to answer a database question when you
do not tell us what database you are using.

--
Bill (TeamB)
(TeamB cannot respond to questions received via email)




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.