Hey Everyone -
Hoping someone has tried this before.
I have a database that is sitting in a shared folder with open
permissions on my hdd on a network.
It is accessible on the network to everyone.
the location is similar to \\ComputerName\Click\Test.mdb
where computerName is my computer name, the folder being called click, and the Test.mdb being an access database.
When I add the connection in server explorer within Visual Studio, the test connection
works. I add a oledbconnection to the form. When I run the form, and
use oledbconnection.open() I recieve an error message saying
"Format of the initialization string does not conform to the OLE DB
specification"
the string is as follows
Jet OLEDB:Global Partial Bulk Ops=2;Jet OLEDB:Registry Path=;Jet
OLEDBatabase Locking Mode=0;Jet OLEDBatabase Password=;Data
Source="\\ComputerName\Click\test.mdb";Password=;Jet OLEDB:Engine
Type=4;Jet OLEDB:Global Bulk
Transactions=1;Provider="Microsoft.Jet.OLEDB.4.0";Jet OLEDB:System
database=;Jet OLEDB:SFP=False;Extended Properties=;Mode="Read|Share
Deny Read|Share Deny Write";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
Can anybody help me out?
I don't want to use SQL Server. The point is for the program to run
on a person's local hdd and it connect through the network I live on and to
access the database sitting on my hdd in the shared folder.
I don't understand why it connects on the server explorer, but not
when run.
I know the database works - if i do a local connection string i.e. c:\mydocument\click\test.mdb, the program works.
Thanks!
Hoping someone has tried this before.
I have a database that is sitting in a shared folder with open
permissions on my hdd on a network.
It is accessible on the network to everyone.
the location is similar to \\ComputerName\Click\Test.mdb
where computerName is my computer name, the folder being called click, and the Test.mdb being an access database.
When I add the connection in server explorer within Visual Studio, the test connection
works. I add a oledbconnection to the form. When I run the form, and
use oledbconnection.open() I recieve an error message saying
"Format of the initialization string does not conform to the OLE DB
specification"
the string is as follows
Jet OLEDB:Global Partial Bulk Ops=2;Jet OLEDB:Registry Path=;Jet
OLEDBatabase Locking Mode=0;Jet OLEDBatabase Password=;Data
Source="\\ComputerName\Click\test.mdb";Password=;Jet OLEDB:Engine
Type=4;Jet OLEDB:Global Bulk
Transactions=1;Provider="Microsoft.Jet.OLEDB.4.0";Jet OLEDB:System
database=;Jet OLEDB:SFP=False;Extended Properties=;Mode="Read|Share
Deny Read|Share Deny Write";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
Can anybody help me out?
I don't want to use SQL Server. The point is for the program to run
on a person's local hdd and it connect through the network I live on and to
access the database sitting on my hdd in the shared folder.
I don't understand why it connects on the server explorer, but not
when run.
I know the database works - if i do a local connection string i.e. c:\mydocument\click\test.mdb, the program works.
Thanks!