I am using OLEDB to connect .mdb/.accdb file.
I am writing code like this
using System.data.OLEDB;
class dbconne { ..... ......... ....... . . . .
OleDbConnection aConnection = new OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=c:\db1.mdb");
OleDbCommand aCommand = new OleDbCommand("select * from emp_test", aConnection);
aConnection.Open(); .... .... . . . }
Now i run this code i didn't get any compile errors. But it give runtime error
ERROR is : "Microsoft.Jet.OLEDB.4.0" provider is not registered on the local machine
can any one tell solution for this plzz