node-adodb icon indicating copy to clipboard operation
node-adodb copied to clipboard

Best Way to solve this error 'It has already been opened exclusively by another user, or you need permission to view and write the data'

Open frmichetti opened this issue 3 years ago • 2 comments

I built a backend with node adodb and sometimes I need to run 2 queries at the same time in my database, but sometimes I get the following exception:

'Microsoft Access database engine cannot open or write the file 'file_name'. It has already been opened exclusively by another user, or you need permission to view and write the data.

What is the best way to solve this problem? Is there any configuration to allow multiple access to the database at the same time? Note: Within Access, the database is already configured to allow shared mode.

frmichetti avatar Dec 12 '21 16:12 frmichetti

Note: the system is open only by one user

frmichetti avatar Dec 12 '21 16:12 frmichetti

+1

I thought about changing the way it reads the DB with the connection string:

Provider=Microsoft.ACE.OLEDB.12.0;Mode=Read

Sounds good, doesn't work.

dlh2 avatar Jan 12 '22 14:01 dlh2