Ron Hinds
2009-05-18 23:39:51 UTC
Access 2003 FE/SQL 2000 SP4 BE. I upsized this project a few years ago and
mostly everything has been working smoothly. But lately I have been getting
deadlocks on SQL server that are coming from Access queries, specifically
queries used to populate combo boxes. I have set the default record locking
for the project to "None" - this was one of the first changes I had to make
when I started this project. I find it strange that these combo box queries
are locking the underlying table because a combo is always a read-only
lookup, right? I have converted many of the combo box sources to SQL
Pass-Through Queries over time for performance's sake, but with hundreds of
forms and subforms it has been on a case-by-case basis when a performance
issue is noticed. A month or so ago when this locking problem started to pop
up, I couldn't solve it by just creating a SPT; I had to add the "WITH
NOLOCK" hint to the SQL of the SPT. The most recent issue I have yet to be
able to pin down which combo box is causing the problem, which is why I'm
posting a question here to see if anyone can explain why this has suddenly
become an issue after three years of not being an issue.
mostly everything has been working smoothly. But lately I have been getting
deadlocks on SQL server that are coming from Access queries, specifically
queries used to populate combo boxes. I have set the default record locking
for the project to "None" - this was one of the first changes I had to make
when I started this project. I find it strange that these combo box queries
are locking the underlying table because a combo is always a read-only
lookup, right? I have converted many of the combo box sources to SQL
Pass-Through Queries over time for performance's sake, but with hundreds of
forms and subforms it has been on a case-by-case basis when a performance
issue is noticed. A month or so ago when this locking problem started to pop
up, I couldn't solve it by just creating a SPT; I had to add the "WITH
NOLOCK" hint to the SQL of the SPT. The most recent issue I have yet to be
able to pin down which combo box is causing the problem, which is why I'm
posting a question here to see if anyone can explain why this has suddenly
become an issue after three years of not being an issue.