.MDB Version?

  • Thread starter Thread starter Craig Ison
  • Start date Start date
C

Craig Ison

Anyone got code to determine what version(97,2000,2002) a .MDB access
database is?
Is there a string in the header of the file?
 
Craig Ison said:
Anyone got code to determine what version(97,2000,2002) a .MDB access
database is?
Is there a string in the header of the file?

Craig,
You can use the Connection's ServerVersion property to determine the version number of the MDB.

e.g.
Dim connString As String = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\nwind.mdb;"
Dim oledbConn As OleDbConnection = New OleDbConnection(connString)
oledbConn.Open()
Dim version As String = oledbConn.ServerVersion

--

Thanks,
Carl Prothman
Microsoft ASP.NET MVP
http://www.able-consulting.com
 
Back
Top