Wednesday, October 30, 2013

Setting Password to Mdb File through C# code

Thank you so much. Its working fine with this connection string. Only 1 more parameter needs to be added.

string conString =@"Provider=Microsoft.Jet.OLEDB.4.0;Data Source="Path to your access file";Jet OLEDB:Database Password=password;Mode=12";



Here Mode is for exclusive open of file.

No comments:

Post a Comment