Delphi Pages Forums  

Go Back   Delphi Pages Forums > Delphi Forum > DB Tools

Lost Password?

Reply
 
Thread Tools Display Modes
  #1  
Old 03-22-2015, 09:31 AM
Jung Jung is offline
Junior Member
 
Join Date: Oct 2014
Posts: 28
Default Locking method for a TQuery

Hello

Sorry if this is not the appropriate forum for paradox tables.
I have been using in my old project the locking table for paradox:
Code:
 Tablel.LockTable(ltWriteLock);
But I don't see in the delphi help the locking method when using a TQuery for the same table.
Maybe the locking is made implicitely ?
Thanks for the answers

Last edited by Jung; 03-22-2015 at 09:36 AM.
Reply With Quote
  #2  
Old 03-25-2015, 12:19 PM
Norrit Norrit is offline
Moderator
 
Join Date: Aug 2001
Location: Landgraaf
Posts: 7,335
Default

TQuery doesn't have this, as you already found out.
But if you use a TTable and a TQuery with the same Connection you should be able to call it in the following construction (pseudo)
Code:
Table.LockTable
Query.ExecSQL
Table.UnlockTable
Reply With Quote
  #3  
Old 03-25-2015, 01:44 PM
Jung Jung is offline
Junior Member
 
Join Date: Oct 2014
Posts: 28
Smile

Hello,

Quote:
But if you use a TTable and a TQuery with the same Connection
This is what I have done. I thought there is maybe a good solution than that
Anyway, thank you very much for the answer.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:10 AM.


Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2019, vBulletin Solutions, Inc.