Sunday, 2 June 2013

Error connecting to Access DB on network

Error connecting to Access DB on network

I have two pc lined up connected to each other using WAN.
I have shared the folder containing an Access Database and the i give permission to Everyone for everything on the database itself.
Now the Code i am using is:
string connectionString = string.Empty;
connectionString  = @"Provider=Microsoft.Jet.OLEDB.4.0; Data Source=\\winPcDemo-570f\abcd\testDB.mdb; Jet OLEDB:Database Password=**********;";
OleDbConnection tmpconnection = new OleDbConnection(connectionString);

tmpconnection.Open(); // ERROR
But this comes up with an error:
Disk or network error.
Its unlike to any to other question on this site so that is why i am posting this.

No comments:

Post a Comment