in reply to 'use database' for sqlserver

You put the one you want into $server and that's it.

Whoops - "database", not "server".

Replies are listed 'Best First'.
Re^2: 'use database' for sqlserver
by fionbarr (Friar) on May 21, 2013 at 20:22 UTC
    didn't work at all. Is there something on the order of 'dbh->do("use $database")'

      fionbarr:

      I'd be surprised if $dbh->do("use $database") didn't work. Did you try it and have it fail?

      ...roboticus

      When your only tool is a hammer, all problems look like your thumb.

        I did try it and it failed.