Click here to Skip to main content
15,886,362 members
Home / Discussions / Database
   

Database

 
GeneralRe: How to intergrate 2 table Pin
cocoonwls8-Apr-09 21:33
cocoonwls8-Apr-09 21:33 
GeneralRe: How to intergrate 2 table Pin
Kevin Horgan9-Apr-09 8:02
Kevin Horgan9-Apr-09 8:02 
GeneralRe: How to intergrate 2 table Pin
cocoonwls10-Apr-09 0:34
cocoonwls10-Apr-09 0:34 
GeneralRe: How to intergrate 2 table Pin
Kevin Horgan10-Apr-09 1:05
Kevin Horgan10-Apr-09 1:05 
QuestionHow to create encrypted trigger Pin
azad yadav8-Apr-09 17:51
azad yadav8-Apr-09 17:51 
AnswerRe: How to create encrypted trigger Pin
Henry Minute11-Apr-09 2:57
Henry Minute11-Apr-09 2:57 
NewsSQL Server 2008 SP1 Released Pin
brucedkyle8-Apr-09 12:21
brucedkyle8-Apr-09 12:21 
QuestionMicrosoft Access and Record Level Locking [modified] Pin
paas8-Apr-09 10:25
paas8-Apr-09 10:25 
I am working with Microsoft Access MDBs (2003 Format) on a project and have a situation where two threads can be inserting records in the same table at the same time. I am using OleDB to open the Access MDB, create commands and transactions, and insert the records.

The connection string to open the MDB is essentially the following:

MyConn.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Jet OLEDB:Engine Type=5;" & _
"Jet OLEDB:Database Locking Mode=1;Mode=Share Deny None;Data Source = SOMENAME.MDB"


Even though I am trying to use record locking with this connection string, and the MDB is certainly shared, we consistently get "Could not update. Currently locked." errors when the two threads are writing to the same table at the same time (and the two threads are using separate OleDBConnections). I have tried using and not using transactions, and the error is the same.

Can anyone tell me what else I may need to do to avoid the "Could not update" problem I am experiencing?

Thank you...

modified on Wednesday, April 8, 2009 4:38 PM

AnswerRe: Microsoft Access and Record Level Locking Pin
Mycroft Holmes8-Apr-09 17:01
professionalMycroft Holmes8-Apr-09 17:01 
GeneralRe: Microsoft Access and Record Level Locking Pin
paas9-Apr-09 1:08
paas9-Apr-09 1:08 
GeneralRe: Microsoft Access and Record Level Locking Pin
Mycroft Holmes9-Apr-09 1:48
professionalMycroft Holmes9-Apr-09 1:48 
GeneralRe: Microsoft Access and Record Level Locking Pin
paas9-Apr-09 2:59
paas9-Apr-09 2:59 
AnswerRe: Microsoft Access and Record Level Locking Pin
Luc Pattyn8-Apr-09 17:41
sitebuilderLuc Pattyn8-Apr-09 17:41 
GeneralRe: Microsoft Access and Record Level Locking Pin
paas9-Apr-09 1:14
paas9-Apr-09 1:14 
QuestionRun Store Procedure Same Time Pin
dataminers8-Apr-09 6:02
dataminers8-Apr-09 6:02 
AnswerRe: Run Store Procedure Same Time Pin
Rob Philpott8-Apr-09 6:59
Rob Philpott8-Apr-09 6:59 
Questionhow to hide trigger so that othe user cant not modify or view Pin
azad yadav8-Apr-09 0:56
azad yadav8-Apr-09 0:56 
AnswerRe: how to hide trigger so that othe user cant not modify or view Pin
anup keshari8-Apr-09 3:31
anup keshari8-Apr-09 3:31 
GeneralRe: how to hide trigger so that othe user cant not modify or view Pin
anup keshari8-Apr-09 3:50
anup keshari8-Apr-09 3:50 
Questionspecial characters in my column Pin
venu6567-Apr-09 20:20
venu6567-Apr-09 20:20 
AnswerRe: special characters in my column Pin
Eslam Afifi7-Apr-09 22:30
Eslam Afifi7-Apr-09 22:30 
AnswerRe: special characters in my column Pin
anup keshari8-Apr-09 0:26
anup keshari8-Apr-09 0:26 
AnswerRe: special characters in my column Pin
venu6568-Apr-09 0:59
venu6568-Apr-09 0:59 
GeneralRe: special characters in my column Pin
anup keshari8-Apr-09 3:27
anup keshari8-Apr-09 3:27 
Questionhow to view trigger in sql 2005 Pin
azad yadav7-Apr-09 18:40
azad yadav7-Apr-09 18:40 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.