Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Appending data into an MS Access table via Perl

Status
Not open for further replies.

Tript99

Programmer
Dec 4, 2001
13
US
Hello,
Does anyone have an example of some code that will allow me to use Perl to append data in a text file into a table in microsoft access? Is this even possible? I searched through the archives but couldn't really find anything.
Any help would be great!
Thanks,
Tript.
 
Look at module DBI and its documents. All answers you are looking for are in there.

If you need more help, please post some of the code.
 
Specifically, ADO would be a useful driver: You can connect to Access databases without first creating a data source. I've done things like this in the past:
Code:
my $DSN = 'driver=Microsoft Access Driver (*.mdb);dbq=HClub.mdb';
my $dbh = DBI->connect("dbi:ADO:$DSN",{ RaiseError => 1, PrintError => 1, AutoCommit => 0 });
But yeah, first find some documentation/tutorial on DBI itself before diving in too deep. You'll thank yourself later on.

----------------------------------------------------------------------------------
...but I'm just a C man trying to see the light
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top