dbTalk Databases Forums  

Record locking

comp.databases.btrieve comp.databases.btrieve


Discuss Record locking in the comp.databases.btrieve forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Bre-x
 
Posts: n/a

Default Record locking - 11-15-2004 , 01:57 PM






is there a way to find out if a particular table is being use?
and how do you can find out if a record is beig use (del, insert, update)

regards,

Bre-x

Reply With Quote
  #2  
Old   
Bill Bach
 
Posts: n/a

Default Re: Record locking - 11-16-2004 , 12:08 AM






The DTI Interface provides functions to check on a file.

You can check a single record by trying to lock the record first, then
calling the StatExtended function to find out who the lock holder is. I

've written my own application called FindLock that can iterate over a data
set and find out which user has which records locks, but it must still hit
every record in the database. An application that hits a record lock has the
first part done -- and can simply call the Extended Stat call to find out the
other details.
Goldstar Software Inc.
Building on Btrieve(R) for the Future(SM)
Bill Bach
BillBach (AT) goldstarsoftware (DOT) com
http://www.goldstarsoftware.com
*** Pervasive.SQL Service & Support Classes ***
Chicago: November 16-19, 2004: See our web site for details!



Bre-x wrote:

Quote:
is there a way to find out if a particular table is being use?
and how do you can find out if a record is beig use (del, insert, update)

regards,

Bre-x


Reply With Quote
  #3  
Old   
Scott817
 
Posts: n/a

Default Re: Record locking - 02-23-2005 , 05:54 PM



In Windows 2000 or newer you can right click on my computer and Select
Manage. Then go to Shared Folders>> Open Sessions. You can close a file
there also.

"Bill Bach" <bbach (AT) cncdsl (DOT) com> wrote

Quote:
The DTI Interface provides functions to check on a file.

You can check a single record by trying to lock the record first, then
calling the StatExtended function to find out who the lock holder is. I

've written my own application called FindLock that can iterate over a
data
set and find out which user has which records locks, but it must still hit
every record in the database. An application that hits a record lock has
the
first part done -- and can simply call the Extended Stat call to find out
the
other details.
Goldstar Software Inc.
Building on Btrieve(R) for the Future(SM)
Bill Bach
BillBach (AT) goldstarsoftware (DOT) com
http://www.goldstarsoftware.com
*** Pervasive.SQL Service & Support Classes ***
Chicago: November 16-19, 2004: See our web site for details!



Bre-x wrote:

is there a way to find out if a particular table is being use?
and how do you can find out if a record is beig use (del, insert, update)

regards,

Bre-x




Reply With Quote
  #4  
Old   
Leonard
 
Posts: n/a

Default Re: Record locking - 03-03-2005 , 12:22 AM



If you see a file open in the Windows manager then it is not open by
the database engine on the server. The Windows manager only shows
files open across the network. As the Pervasive.SQL database engine
is client / server in nature the file (as shared by windows) should
not be open as it should be open locally by the database engine.

Even if you see it open there I would not recomend just closing it
like that. While the database engine does do a multi-phase file
commit if file IO is suddenly blocked or stopped there is the chance
(small as it is) of file corruption.

BTW, the network shared open file list goes back to at least WFW 3.11
if you know where to look.

Leonard

On Wed, 23 Feb 2005 16:54:14 -0600, "Scott817" <Scott (AT) capauto (DOT) com>
wrote:

Quote:
In Windows 2000 or newer you can right click on my computer and Select
Manage. Then go to Shared Folders>> Open Sessions. You can close a file
there also.

"Bill Bach" <bbach (AT) cncdsl (DOT) com> wrote in message
news:41998B70.BEBAAB3 (AT) cncdsl (DOT) com...
The DTI Interface provides functions to check on a file.

You can check a single record by trying to lock the record first, then
calling the StatExtended function to find out who the lock holder is. I

've written my own application called FindLock that can iterate over a
data
set and find out which user has which records locks, but it must still hit
every record in the database. An application that hits a record lock has
the
first part done -- and can simply call the Extended Stat call to find out
the
other details.
Goldstar Software Inc.
Building on Btrieve(R) for the Future(SM)
Bill Bach
BillBach (AT) goldstarsoftware (DOT) com
http://www.goldstarsoftware.com
*** Pervasive.SQL Service & Support Classes ***
Chicago: November 16-19, 2004: See our web site for details!



Bre-x wrote:

is there a way to find out if a particular table is being use?
and how do you can find out if a record is beig use (del, insert, update)

regards,

Bre-x




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

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



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.