in reply to database connection output
hi dreman,
All you need is to create two diferent $dbhs. Example:
All you need is to create two diferent $dbhs. Example:
It was not that hard, was it? Wasn't this a ask first, think later question?my $dbh1=DBI->connect("dbi:Sybase:$server1","$user1", "$pass1" ) or di +e DBI::errstr; my $dbh2=DBI->connect("dbi:Sybase:$server2","$user2", "$pass2" ) or di +e DBI::errstr; $dbh1->do("SOME SQL ON SERVER 1"); $dbh2->do("SOME SQL ON SERVER 2");
TheMage
Talking Web
Talking Web
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: database connection output
by jonadab (Parson) on Nov 30, 2006 at 17:12 UTC | |
Re^2: database connection output
by davorg (Chancellor) on Dec 01, 2006 at 08:58 UTC |
In Section
Seekers of Perl Wisdom