| View previous topic :: View next topic |
| Author |
Message |
Iwan Deni Budihalim Guest
|
Posted: Wed Dec 17, 2003 7:17 am Post subject: TTable Lock |
|
|
how to lock table using TTable ?
Thanks
|
|
| Back to top |
|
 |
George Christoforakis Guest
|
Posted: Wed Dec 17, 2003 8:40 am Post subject: Re: TTable Lock |
|
|
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
|
Posted: Wed Dec 17, 2003 1:12 pm Post subject: Re: TTable Lock |
|
|
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
|
Posted: Thu Dec 18, 2003 3:03 am Post subject: Re: TTable Lock |
|
|
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
|
Posted: Thu Dec 18, 2003 10:21 am Post subject: Re: TTable Lock |
|
|
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
|
Posted: Thu Dec 18, 2003 10:24 am Post subject: Re: TTable Lock |
|
|
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
|
Posted: Thu Dec 18, 2003 11:14 am Post subject: Re: TTable Lock |
|
|
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 |
|
 |
|