yes, you can connect to a database hosted on a remote machine provided database drivers are available on machine and supported.
also make sure remote connections are enabled in your database server.
there should be necessary changes made in configuration so to be able to establish successful connection.
database port should be enabled in firewall on database server.
database server should accept connections from your source server.
Regards,
ST
Professional UK Web Hosting
Last edited: May 25, 2011