Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^2: changing database with DBI and DBD-ODBC

by mje (Deacon)
on Sep 24, 2012 at 20:47 UTC ( #995440=note: print w/ replies, xml ) Need Help??


in reply to Re: changing database with DBI and DBD-ODBC
in thread changing database with DBI and DBD-ODBC

As I'm sure runrig knows there are 3 basic ways to connect via ODBC. DSN=yourdsn, FILEDSN=a_file_with_Attributes and so called DSN-less connection with DRIVER=xxx. On Windows you can also add odbc_driver_complete which may throw a dialogue (if you have a window handle) to complete the connection attributes via a dialogue (you might use this to prompt for username/password etc)

One really useful thing is odbc_out_connect_string which you can use after any successful connect to find out the connection string you can use to connect to this data source again in the future. This is typically what MS Access (and other apps) use to store a connection string after you've filled in a dialog to connect to an ODBC driver.


Comment on Re^2: changing database with DBI and DBD-ODBC

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (7)
As of 2014-09-02 23:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite cookbook is:










    Results (32 votes), past polls