Click here to Skip to main content
15,916,941 members
Home / Discussions / Database
   

Database

 
GeneralRe: ADO Errors Pin
_Magnus_31-Aug-01 4:03
_Magnus_31-Aug-01 4:03 
GeneralRe: ADO Errors Pin
Rashid Thadha2-Sep-01 22:21
Rashid Thadha2-Sep-01 22:21 
GeneralRe: ADO Errors Pin
_Magnus_2-Sep-01 23:50
_Magnus_2-Sep-01 23:50 
GeneralSending XML directly to a template using SQL Server & IIS Pin
Nick Blumhardt30-Aug-01 14:05
Nick Blumhardt30-Aug-01 14:05 
GeneralMDAC installation check Pin
John Smith30-Aug-01 0:47
John Smith30-Aug-01 0:47 
GeneralRe: MDAC installation check Pin
30-Aug-01 1:05
suss30-Aug-01 1:05 
GeneralRe: MDAC installation check Pin
Rashid Thadha30-Aug-01 1:09
Rashid Thadha30-Aug-01 1:09 
GeneralMulti-threading app using OLE DB calling into a shared Access DB Pin
Baz29-Aug-01 23:03
Baz29-Aug-01 23:03 
Hi there Guys! Hope someone out there can help!

I have a multi-threaded application that uses OLE DB and the MS Jet engine to call into a shared Access database. I have a critical section which get's locked and unlocked before and after accessing the DB, therefore stopping any other thread from accessing it whilst it is being used by another thread.

However, I am getting some errors. I initially thought it may be the critical sections, and so changed them to mutexes, but have since proved that this isn't the problem. The problem I am getting is this:

[Microsoft][ODBC Microsoft Access Driver] Could not update; currently locked by user 'me' on machine 'xxxxxx'

So silly me! I'm trying to access the database when it is apparently still locked - even though the first thread has stopped accessing it! There seems to be some latency involved in the first thread letting go of the database properly and the next one calling in.

I have thought on checking for existence of the ".ldb" lock file, but this just seems crap! Surely there is a more elegant way!? Any help/ideas would be greatly appreciated! Big Grin | :-D
GeneralRe: Multi-threading app using OLE DB calling into a shared Access DB Pin
Rashid Thadha30-Aug-01 12:10
Rashid Thadha30-Aug-01 12:10 
GeneralRe: Multi-threading app using OLE DB calling into a shared Access DB Pin
Steen Krogsgaard3-Sep-01 23:25
Steen Krogsgaard3-Sep-01 23:25 
GeneralADO Refresh Method Problems (beginner) Pin
Bigge29-Aug-01 7:38
Bigge29-Aug-01 7:38 
GeneralRe: ADO Refresh Method Problems (beginner) Pin
Martin Bohring5-Sep-01 22:10
Martin Bohring5-Sep-01 22:10 
GeneralIdentity Columns Pin
27-Aug-01 8:45
suss27-Aug-01 8:45 
GeneralRe: Identity Columns Pin
Rashid Thadha30-Aug-01 12:14
Rashid Thadha30-Aug-01 12:14 
GeneralProblems with ODBC and MSACCESS Pin
Simone Giannecchini26-Aug-01 11:37
Simone Giannecchini26-Aug-01 11:37 
QuestionWhat are SQL or MSDE best practices for connections Pin
Rod Hamilton24-Aug-01 3:12
Rod Hamilton24-Aug-01 3:12 
GeneralAccess database!!!!! Pin
22-Aug-01 6:24
suss22-Aug-01 6:24 
GeneralRe: Access database!!!!! Pin
Anders Molin30-Aug-01 2:51
professionalAnders Molin30-Aug-01 2:51 
GeneralRe: Access database!!!!! Pin
Drawil6-Nov-01 20:19
Drawil6-Nov-01 20:19 
GeneralAccess 2000 Pin
21-Aug-01 3:00
suss21-Aug-01 3:00 
GeneralRe: Access 2000 Pin
CodeGuy21-Aug-01 4:59
CodeGuy21-Aug-01 4:59 
GeneralRe: Access 2000 Pin
22-Aug-01 12:04
suss22-Aug-01 12:04 
GeneralRe: Access 2000 Pin
CodeGuy22-Aug-01 12:18
CodeGuy22-Aug-01 12:18 
GeneralDuplicating (copying) a table in SQL Server database Pin
User 988520-Aug-01 13:13
User 988520-Aug-01 13:13 
GeneralRe: Duplicating (copying) a table in SQL Server database Pin
Chanceamatic22-Aug-01 14:38
Chanceamatic22-Aug-01 14:38 

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.