Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask

Re: login to MSSQL via DBI::ODBC

by olivierp (Hermit)
on Sep 24, 2003 at 14:14 UTC ( #293859=note: print w/replies, xml ) Need Help??

in reply to login to MSSQL via DBI::ODBC

I have experienced this on Win32 platforms with ActiveState Perl 5.8.0 when upgrading DBI to 1.3?

For some reason, DBI is not taking into account the username & password specified in the DSN.

However, the following works for me:

my $dbh=DBI->connect("dbi:ODBC:$DSN", $uname, $pwd) || die "Error: $DB +I::errstr";

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://293859]
[Corion]: Meh. I get the feeling I should post a call-to-action for people to test their modules with the upcoming 5.26 (or 5.25.latest), as it seems that the smoke testers don't really weed out modules that fail without . in @INC
[Corion]: But without instructions on how to easily test things yourself, I don't think such a call to arms is helpful
[Corion]: (this post on / p5p makes it seem to me that smoke testers seem to have a blind spot there)
[Corion]: Hmmm. Maybe setting $ENV{PERL5LIB}=" some path without dot"; perl Makefile.PL; make test already is enough to locally test your module...
[Corion]: Meh, no, will need a BEGIN hook...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (7)
As of 2017-03-27 08:02 GMT
Find Nodes?
    Voting Booth?
    Should Pluto Get Its Planethood Back?

    Results (317 votes). Check out past polls.