Can you do row locking in Access/JET?
For example, can you do the following in JET SQL:
UPDATE Test WITH (ROWLOCK)
SET UpdateDate = myDate
WHERE PrimaryKey = myKey
Can you do row locking in Access/JET?
For example, can you do the following in JET SQL:
UPDATE Test WITH (ROWLOCK)
SET UpdateDate = myDate
WHERE PrimaryKey = myKey
As far as I'm aware you can only achieve this via the options and not in SQL
From this article:
Open Access. Then click on Tools-->Options and select the "Advanced" tab.
There you'll find three options for setting Default Record Locks. You'll also find a check box labelled "Open databases using Record-Level Locking". Use "Help" to learn about what each of these options do for you and select the choices that you prefer for your databases.
Access doesn't have query hints that I'm aware of.
It should be configurable at the database level. In Access 2003, for example, you can go to Tools > Options
, go to the Advanced
tab, and you'll find the Default record locking
option, which gives you the following choices:
In addition, there is a Open databases using record-level locking
checkbox below that.