fionbarr has asked for the wisdom of the Perl Monks concerning the following question:
There was only one database; now I have two and I need to select which one I want. What's the syntax for this please?my $dbs = "dbi:ODBC:DRIVER={SQL Server};SERVER={$server}"; $dbh = DBI->connect( $dbs, $username, $password, { PrintError => 1 } +);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: 'use database' for sqlserver
by mje (Curate) on May 22, 2013 at 08:50 UTC | |
by fionbarr (Friar) on May 22, 2013 at 13:54 UTC | |
|
Re: 'use database' for sqlserver
by Corion (Patriarch) on May 21, 2013 at 20:02 UTC | |
by fionbarr (Friar) on May 21, 2013 at 20:22 UTC | |
by roboticus (Chancellor) on May 22, 2013 at 13:54 UTC | |
by fionbarr (Friar) on May 22, 2013 at 14:25 UTC | |
by mje (Curate) on May 23, 2013 at 08:35 UTC | |
|
Re: 'use database' for sqlserver (connectionstrings)
by Anonymous Monk on May 21, 2013 at 22:52 UTC | |
by runrig (Abbot) on May 22, 2013 at 01:18 UTC |