You put the one you want into $server and that's it.
Whoops - "database", not "server".
In reply to Re: 'use database' for sqlserver by Corion in thread 'use database' for sqlserver by fionbarr