Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

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

by mje (Curate)
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?

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (4)
As of 2018-05-21 04:16 GMT
Find Nodes?
    Voting Booth?