Link to home
Start Free TrialLog in
Avatar of brgdotnet
brgdotnetFlag for United States of America

asked on

How to determine the version of an MS Access file (.mdb) using C#

I need to find a way to determine which version of Microsoft Access an access fil e is? I know how to open an access file, but not to determine which version the .mdb file is. I need to know how to do this in C#.

 OleDbConnection con = new OleDbConnection(@"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\mydatabase.mdb;User Id=admin;Password=jinkies;");
 
    try
    {
        con.Open();
    }
    catch
    {
        Console.WriteLine("DB Open failed!");
    }

ASKER CERTIFIED SOLUTION
Avatar of tsells
tsells
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of brgdotnet

ASKER

My apologies. I am trying to determine if an access file is version 1997 or 2000 that is what I need to determine.