Hi,
The database on MS-Access is kept on one machine and i have to access it from another machine.. I have given the following connection string on the client machine. But still it is not accessible.
I have shared to Databse folder with full permissions...
But, still it is not accessible.. so what can i do.

public static string con = @"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=\192.168.1.90\D:\Hospital Managment System\Database\HospitalMgt.mdb";

Regards,
Shailaja

Edited 7 Years Ago by ShailaMohite: n/a

UNC paths typically have a double backslash in front of them: \\hostname\share\file . Give that a shot.

UNC paths typically have a double backslash in front of them: \\hostname\share\file . Give that a shot.

Thanks,

public static string con = @"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=\\192.168.1.90\D:\Hospital Managment System\Database\HospitalMgt.mdb";

But it give Error

\\192.168.1.90\D:\Hospital Managment System\Database\HospitalMgt.mdb is not valid path.Make sure that the path name is spelled correctly and that you are connected to the server on which machine the file resides

Databse folder kept in 192.168.1.90 this machine
how to access this database folder

It seems the "Internet Explorer Enhanced Security" component blocks connections to access databases with UNC paths. Try mapping a drive to the UNC path and using the mapped drive reference to open it.

Comments
Thanks
This question has already been answered. Start a new discussion instead.