Unanswered: Openning an access database using ADO.NET
What is the proper way to open an access database using ADO.NET (that is, using c#) ?
I have the following code, but somehow it does not compile saying that it doesn't find the mdb file called PhoneBook :
OleDbConnection Myconnection = null;
Myconnection = new OleDbConnection(@"Provider=Microsoft.Jet.OLEDB.4.0; Data Source=C:\PhoneBook");
What am I doing wrong here ?
All help appreciated !