W
wullemsp
I am having problems connecting to an Access database that is secured by an
mdw database.
In Visual Studio using the Server view I am able to connect by setting the
Provider, the database, the system database on the "All" tab, entering the
user and password details and then using the Test Connection. That
succeeds. I also have no difficulty opening the database in Access 2003
SP1.
When I copy the same connectionString to my C# WebService
OleDbConnection.connectionString and then try to open the connection, I get
a message saying " Message @"The Microsoft Jet database engine cannot open
the file 'C:\Acc_Extasy\ExtasyXP_tab.mdb'. It is already opened exclusively
by another user, or you need permission to view its data." string
".
the connection string I am using is :
"Provider=Microsoft.Jet.OLEDB.4.0;User ID=dbowner;Password=blahdiblah;Data
Source=C:\Acc_Extasy\ExtasyXP_tab.mdb;Mode=Share Deny None;Extended
Properties=;Jet OLEDB:System database=C:\Acc_Extasy\ExplorersXP_sys.mdw;Jet
OLEDB:Registry Path=;Jet OLEDB:Engine Type=5;Jet OLEDBatabase Locking
Mode=1;Jet OLEDB:Global Partial Bulk Ops=2;Jet OLEDB:Global Bulk
Transactions=1;Jet OLEDB:Create System Database=False;Jet OLEDB:Encrypt
Database=False;Jet OLEDBon't Copy Locale on Compact=False;Jet
OLEDB:Compact Without Replica Repair=False;Jet OLEDB:SFP=False"
Can anyone tell me what is going on here or point me in the right direction
please.
Paths and filenames are correct, user exist and password, while substituted
here is correct, there are no other connections open.
thanks
mdw database.
In Visual Studio using the Server view I am able to connect by setting the
Provider, the database, the system database on the "All" tab, entering the
user and password details and then using the Test Connection. That
succeeds. I also have no difficulty opening the database in Access 2003
SP1.
When I copy the same connectionString to my C# WebService
OleDbConnection.connectionString and then try to open the connection, I get
a message saying " Message @"The Microsoft Jet database engine cannot open
the file 'C:\Acc_Extasy\ExtasyXP_tab.mdb'. It is already opened exclusively
by another user, or you need permission to view its data." string
".
the connection string I am using is :
"Provider=Microsoft.Jet.OLEDB.4.0;User ID=dbowner;Password=blahdiblah;Data
Source=C:\Acc_Extasy\ExtasyXP_tab.mdb;Mode=Share Deny None;Extended
Properties=;Jet OLEDB:System database=C:\Acc_Extasy\ExplorersXP_sys.mdw;Jet
OLEDB:Registry Path=;Jet OLEDB:Engine Type=5;Jet OLEDBatabase Locking
Mode=1;Jet OLEDB:Global Partial Bulk Ops=2;Jet OLEDB:Global Bulk
Transactions=1;Jet OLEDB:Create System Database=False;Jet OLEDB:Encrypt
Database=False;Jet OLEDBon't Copy Locale on Compact=False;Jet
OLEDB:Compact Without Replica Repair=False;Jet OLEDB:SFP=False"
Can anyone tell me what is going on here or point me in the right direction
please.
Paths and filenames are correct, user exist and password, while substituted
here is correct, there are no other connections open.
thanks