Microsoft Access Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsDatabaseMicrosoft Access Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
SlickEdit: Code in over 40 languages across 7 platforms. SlickEdit’s unmatched power, speed, and flexibility allows even the most accomplished developers to write better code faster. Download a free trial today!
  #1  
Old September 12th, 2003, 11:55 AM
Grygonos Grygonos is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 1 Grygonos User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Nolock

Is there a way to specify no lock when constructing a sql statement to execute on an Access DB? I have some statements causing major locking probs in a linked table.



Quote:
SELECT Referrals.Auditor, Referrals.1, Referrals.2, States.State FROM Referrals INNER JOIN States on States.State = Referrals.State
States is a linked table from another Access DB. When this query executes it causes MANY problems by creating lots of locking records in the db that contains States. Is there an equivalent to NOLOCK that I can use to eliminate this?

Last edited by Grygonos : September 12th, 2003 at 12:12 PM.

Reply With Quote
  #2  
Old October 8th, 2003, 06:11 AM
m_lazor m_lazor is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Location: Luxembourg
Posts: 156 m_lazor User rank is Corporal (100 - 500 Reputation Level)m_lazor User rank is Corporal (100 - 500 Reputation Level)m_lazor User rank is Corporal (100 - 500 Reputation Level)m_lazor User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
At least until Access2k there is no other possibility than using connection parameters.
In your case this should be s.th. like adReadOnly, adForwardOnly
But a simple select statement should not lock tables, even in Access. But as soon as someone opens the query and leaves it with the pen in the record selector (i.e. change with no save) then, of course, all necessary stuff is locked. This is (or would then be) a user training problem!

Reply With Quote
Reply

Viewing: ASP Free ForumsDatabaseMicrosoft Access Help > Nolock


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway