H
Haim
Hello everybody,
I'm kind of new in this so please be patient, and please
try to explain as simple as possible.
The code I'm using is in C#.
My problem is while trying to fill a dataset (an access
2003 DB using OLE DB Jet 4 Engine) I get the exception
that the DB is already in use. In my connection string
the connection mode is "Share deny None" so as for my
best understanding this should not happen.
The first thing I do in my application is to open the
connection. The connection, adapter and dataset where
created by the VS.NET wizard and the check is OK, I got
all the tables properties and it seems to work very well
in the designer mode.
The exception is raised by the line:
oleDbDataAdapterMain.Fill(this.dataSetKitlugimTable);
and my connection string is:
this.oleDbConnection1.ConnectionString = @"Jet
OLEDB:Global Partial Bulk Ops=2;Jet OLEDB:Registry
Path=;Jet OLEDBatabase Locking Mode=1;Jet
OLEDBatabase Password=;Data Source=""C:\my
docs\kitlugim.mdb"";Password=;Jet OLEDB:Engine Type=5;Jet
OLEDB:Global Bulk
Transactions=1;Provider=""Microsoft.Jet.OLEDB.4.0"";Jet
OLEDB:System database=;Jet OLEDB:SFP=False;Extended
Properties=;Mode=Share Deny None;Jet OLEDB:New Database
Password=;Jet OLEDB:Create System Database=False;Jet
OLEDBon't Copy Locale on Compact=False;Jet
OLEDB:Compact Without Replica Repair=False;User
ID=Admin;Jet OLEDB:Encrypt Database=False";
I tried also to change the
OLEDBatabase Locking Mode=1
to
OLEDBatabase Locking Mode=0 but this also didn't help.
Help will be very very very much appreciated!
Thanks,
Haim.
I'm kind of new in this so please be patient, and please
try to explain as simple as possible.
The code I'm using is in C#.
My problem is while trying to fill a dataset (an access
2003 DB using OLE DB Jet 4 Engine) I get the exception
that the DB is already in use. In my connection string
the connection mode is "Share deny None" so as for my
best understanding this should not happen.
The first thing I do in my application is to open the
connection. The connection, adapter and dataset where
created by the VS.NET wizard and the check is OK, I got
all the tables properties and it seems to work very well
in the designer mode.
The exception is raised by the line:
oleDbDataAdapterMain.Fill(this.dataSetKitlugimTable);
and my connection string is:
this.oleDbConnection1.ConnectionString = @"Jet
OLEDB:Global Partial Bulk Ops=2;Jet OLEDB:Registry
Path=;Jet OLEDBatabase Locking Mode=1;Jet
OLEDBatabase Password=;Data Source=""C:\my
docs\kitlugim.mdb"";Password=;Jet OLEDB:Engine Type=5;Jet
OLEDB:Global Bulk
Transactions=1;Provider=""Microsoft.Jet.OLEDB.4.0"";Jet
OLEDB:System database=;Jet OLEDB:SFP=False;Extended
Properties=;Mode=Share Deny None;Jet OLEDB:New Database
Password=;Jet OLEDB:Create System Database=False;Jet
OLEDBon't Copy Locale on Compact=False;Jet
OLEDB:Compact Without Replica Repair=False;User
ID=Admin;Jet OLEDB:Encrypt Database=False";
I tried also to change the
OLEDBatabase Locking Mode=1
to
OLEDBatabase Locking Mode=0 but this also didn't help.
Help will be very very very much appreciated!
Thanks,
Haim.