Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^2: DBD::ODBC in Windows Server 2008

by Narveson (Chaplain)
on May 05, 2010 at 20:59 UTC ( [id://838574]=note: print w/replies, xml ) Need Help??


in reply to Re: DBD::ODBC in Windows Server 2008
in thread [answered] DBD::ODBC in Windows Server 2008

Good advice, and a perceptive warning:

that does mean if you connect from multiple apps and you want to change some aspect of the driver connection you will have to change it in multiple places instead of in a single SYSTEM DSN.

I think I'll set up a module so my client scripts can say

use OurDatabase::Connection; my $dbh = OurDatabase::Connection->new();

and the OurDatabase::Connection module can check whether it's running in development or in production and pick the right server name accordingly.

My boss may regret the apparent increase in complexity, but I'll try to point out that we'll be leaving behind our dependency on crucial data that we've been keeping hidden in the Windows registry until now.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (7)
As of 2024-04-19 08:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found