I want to connect the ms access database in c# through ado.net at windows server 2008 R2 standard.
using System.Data.OleDb; OleDbConnection connectionAccess = new OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=D:\\testTable.mdb"); OleDbDataAdapter adapterAccess = new OleDbDataAdapter("Select * from test", connectionAccess); DataSet ds = new DataSet(); adapterAccess.Fill(ds); dataGridView1.DataSource = ds.Tables[0];
But it gives an error:
The 'Microsoft.Jet.OLEDB.4.0' provider is not registered on the local machine.
Have you any suggestion and why this error is coming. If it is not registered then how to register this.
Thanks in advance