Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine

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.

Comment on Re: adding DSN to a machine

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (5)
As of 2015-11-28 15:38 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (743 votes), past polls