You need to create a linked server to access the databases on an other server.