Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Retrieve value from .mdf database file

by Sinistral (Monsignor)
on Nov 30, 2012 at 19:37 UTC ( [id://1006511]=note: print w/replies, xml ) Need Help??


in reply to Retrieve value from .mdf database file

A file with the extension mdf is a binary file format produced by Microsoft Access. There are several ways in the Perl world to programatically open, read, and manipulate such a file:

  • If you are on a Windows machine with Microsoft Access installed, you can use Win32::OLE to open Access and get data from the file. There is some information in Ms Access and win32 ole, but it seems that unlike Excel, there is not as much information on manipulating Access using OLE via Perl.
  • You can, again on Windows, create an ODBC DSN that can be used in conjunction with DBI and DBD::ODBC to treat Access as just another database server.
  • You can, instead of ODBC, read using an ADO connection to Access. This, again, is a Microsoft Windows solution.
  • If you're not on Windows (hopefully using a nice Perl stack like Strawberry Perl or ActiveState's Perl), then you might be able to get away with using MDB Tools and convert your mdb file into some other format.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1006511]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (5)
As of 2024-03-29 06:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found