Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister

Re: adding DSN to a machine

by rchiav (Deacon)
on Apr 06, 2001 at 06:34 UTC ( #70383=note: print w/replies, xml ) Need Help??

in reply to adding DSN to a machine

Does anyone know if Win32::ODBC supports ADO? If it does, you can set up your connection string to be DSN-less.

For example, for an access database, you'd set up the connection string as follows..

"DBQ=C:\path\to\you.mdb;DRIVER={MS Access (*.mdb)}"

and for an MS SQL connection..

"Provider=SQLOLEDB; Data Source=Server_Name; Initial Catalog=DatabaseName; User ID=UserID; Password=Password"

This way you won't have to install DSN's on any of the machines. There's a bunch of debaet over performace.. some people saying that it's better DSN-less and others saying it's slower. I can't weigh in on that, but it will help you with you problem..

Hope this helps..


UPDATE The first example is NOT ADO. It should work regardless of whether or not Win32::ODBC supports ADO though... it's just a standard DSNless connection. There's an ADO method to connect to access database also. If you need more info on any of this, let me know and I'll dig up some more info.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://70383]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (7)
As of 2017-05-30 08:18 GMT
Find Nodes?
    Voting Booth?