When will the LOCKTABLE "expires" ?

DefDef Member Posts: 2
Hi,
I'm interested in case if no modification performed after locking of the table.
Does the locking removed on exit from trigger/function?

Comments

  • girish.joshigirish.joshi Member Posts: 407
    This depends on whether you are using SQL or Native.

    In general LOCKTABLE 'expires' (the locks are released) when your transaction ends.

    Your transaction can end in few ways:

    1. a commit call
    2. If you call a report, when the report returns
    3. If you are on a form, (assuming default properties), one transaction ends/begins when you complete the primary key information. Another transaction ends/begins when you leave the form.
Sign In or Register to comment.