Ado dot netconnection String with Access 2007

I am trying to connect with Access 2007 "accdb" file using ADO net using the following code, but i am getting the error Unrecognized Database format, What can be the possible reason for this?

        OleDbConnection conn = new 
        OleDbConnection("PROVIDER=Microsoft.Jet.OLEDB.4.0;
        Data Source=C:/MyWorkers.accdb");

        try
        {
            conn.Open();
            MessageBox.Show("Connected");


        }
        catch (Exception ex)
        {
            MessageBox.Show(ex.Message);
        }

Answers


You can use the Microsoft.ACE.OLEDB.12.0 provider, see http://www.connectionstrings.com/access-2007 available as part of the office 2007 system driver package.


Need Your Help

mvc 2 upload with vb.net

html asp.net-mvc vb.net file-upload

I didn't find any answer on web with vb.net (I find millions of samples with c#)

PDFbox Preflight PDF/A-1b check not working properly in java version 1.8

java pdf pdfbox pdfa

I am using PDFBOX Preflight to validate pdf document to check whether it is in PDF/A-1b format or not . It works perfectly on java 1.7 but when I run the code in java 1.8 i get following errors

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.