473,750 Members | 2,186 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2310
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
2577
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 directory containing a file of this name: "cdrom.html". 2. "use File::Basename;", with the line: ($name,$path,$suffix) = fileparse($File::Find::name, ('.html', '.m'));
2
1854
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. Is there any package that makes it easy to use an application's Perl APIs from Python. Essentially I am looking for a package that would read a perl module and allow me to access the functions in that module from Python. For example the Communigate Pro messsaging server has a Perl api, but...
42
4107
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 to make a decision on how best to invest my time. I'm not interested on which language is better in *general*, just for my purpose. My area of research is in CAD algorithms, and I'm sensing the need to resort to something more expedient than C++, bash scripting, or sed scripting.
0
2374
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 stacks up against the alternatives? I've used Access a lot and SQL Server some tho' not with Perl, and MySQL a lot and Postgres some with Perl. The recent news about MySQL AB rethinking the MySQL license got me wondering about Cloudscape ... just in case MySQL adopts a commercial type of...
0
9744
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 different switches, but I can't get it to compile. I need it to be compiled with threads. Anyone have any wisdom on how best to do this? Here's a transcript of my latest attempt. It's long; you might want to skip to the bottom, where I try "make" and the fatal errors start happening.
13
3262
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 pre-existing Solaris system. Unfortunately, the attempt fails in a rather dramatic way, spewing out thousands of "relocation remains"... I'm somewhat lost on what to do next, the documentation that came along with the Perl package is somewhat sparse. Anyone have suggestions? % uname -a
6
3011
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 suggest PHP, but I had a look at the PHP documentation for one of the Pear modules for creating XML and it didn't look like much. I've used Perl XML:Twig and I have the impression that there is more Perl stuff available as well as the Perl stuff being well documented as I have a Perl DBI book, a Perl...
10
6975
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 below). Section D below is part of the configuration of section c. Not sure where went wrong as the web page displayed internal server error. Also, what is the error 543? and error 2114. Where to find the list of errors in websites as it is not the standard apache error. I could not find...
82
10050
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 and invalid characters? Two codes below : a) html b) perl script (print and inserting into database) Cheers... Andrew
0
8999
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9575
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9338
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9256
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8260
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6080
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4712
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4885
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3322
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.