472,328 Members | 1,021 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,328 software developers and data experts.

perl against ms access

Hello,

I hope someone can solve my problem here.

I am currently working/programming a website using Debian Linux + Perl
+ PHP + PostgreSQL + Apache.

Some data in the postgreSQL server must be updated from a Microsft
Access database once a week.
The Micorosft Access database is running on a Windows NT 4 platform.

How can i connect to this database with PERL.
The PERL script will be running on the Debian server.

What is the appropriate module in perl that can access a ms access
database trought the network and retrieve the data?

/ mike
Nov 12 '05 #1
1 2242
Well, ms-access is only a development too.

You can't connect to c++, or VB either!

In fact, you can't use PERAL to connect to ms-word either. Remember,
ms-access is not a database server. The standard code libraries used with
ms-access is called JET, and it is a simple file share system. Since like
Excel, or Word, we are talking bout just a simple file. There is no database
engine running that you can "connect" to via some socket connection to word,
or Excel, or a JET file share.

The simple solution would be to have ms-access connect to the PostgreSql
engine, as Postgresql most certainly allows a remote odbc connection. And,
ms-access makes a fine client to such database engines.

However, if that peal is running on the windows box, then like most
development languages, you can use the JET engine (code library) on the same
pc as a com (automation) object. So, pearl in windows can automate Word,
Excel, and yes, even a JET/mdb file share.

So, no, you can't connect remotely to a windows pc to use the ms-access file
(no more then peal can connect to Excel, or Word either). If you were
running the desktop database engine that ships with ms-access, then yes,
Pearl could connect via ODBC. However, it is unlikely that the ms-access
application is running the desktop edition of sql server. I only mentioned
this, since for the last 3 versions for office, ms-access has had on the
same office cd a free version of sql server. This server version is 100%
compatible with sql server. This sql server most certainly does allow remote
connections via odbc.

I mention both JET (the default file share engine) and "sql server desktop"
edition since ms-access is really only a tool like VB, or c++ that lets you
develop a interface. That interface can work with sql server, or the JET
file share engine. So, I kind wanted to distinguish between the JET data
library that allows you to read a mdb file, and ms-access which is a
development too. And, they are now really two separate products.

The JET engine (file share) does allow a odbc connection, but really, you
have to be on the same computer for that to work.

It seems to me, that having ms-access connect to the sql database on the
server would be the easy to way move some data. You have VB code behind
ms-access.

I don't really see ms-access connecting to pearl on the server, but
certainly see ms-access connecting to PostgreSql. After all, ms-access is
simply a tool that connects to your database engine of choice.

--
Albert D. Kallal (MVP)
Edmonton, Alberta Canada
No************@msn.com
http://www.attcanada.net/~kallal.msn

Nov 12 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

14
by: Xah Lee | last post by:
Just bumped into another irresponsibility in perl. the crime in question this time is the module File::Basename. Reproduction: 1. create a...
2
by: Chris Kacoroski | last post by:
Hi, I would like to use Python for several scripting tasks I have, but the applications I am scripting against only export a set of Perl API's....
42
by: Fred Ma | last post by:
Hello, This is not a troll posting, and I've refrained from asking because I've seen similar threads get all nitter-nattery. But I really want...
0
by: ccc31807 | last post by:
Just wondering since IBM donated Cloudscape to the Apache Foundation .... Does anyone know if Perl can use Cloudscape, and if so, how Cloudscape...
0
by: Kirt Loki Dankmyer | last post by:
So, I download the latest "stable" tar for perl (5.8.7) and try to compile it on the Solaris 8 (SPARC) box that I administrate. I try all sorts of...
13
by: Otto J. Makela | last post by:
I'm trying to install to php the Perl-1.0.0.tgz package (from http://pecl.php.net/package/perl, enabling one to call perl libraries) to a...
6
by: surfivor | last post by:
I may be involved in a data migration project involving databases and creating XML feeds. Our site is PHP based, so I imagine the team might...
10
by: happyse27 | last post by:
Hi All, I got this apache errors(see section A1 and A2 below) when I used a html(see section b below) to activate acctman.pl(see section c...
82
by: happyse27 | last post by:
Hi All, I modified the user registration script, but not sure how to make it check for each variable in terms of preventing junk registration...
0
by: tammygombez | last post by:
Hey everyone! I've been researching gaming laptops lately, and I must say, they can get pretty expensive. However, I've come across some great...
0
better678
by: better678 | last post by:
Question: Discuss your understanding of the Java platform. Is the statement "Java is interpreted" correct? Answer: Java is an object-oriented...
0
by: teenabhardwaj | last post by:
How would one discover a valid source for learning news, comfort, and help for engineering designs? Covering through piles of books takes a lot of...
0
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and...
0
by: CD Tom | last post by:
This only shows up in access runtime. When a user select a report from my report menu when they close the report they get a menu I've called Add-ins...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge...
0
jalbright99669
by: jalbright99669 | last post by:
Am having a bit of a time with URL Rewrite. I need to incorporate http to https redirect with a reverse proxy. I have the URL Rewrite rules made...
0
by: Matthew3360 | last post by:
Hi there. I have been struggling to find out how to use a variable as my location in my header redirect function. Here is my code. ...
0
by: AndyPSV | last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.