How to query a remote database?

Original text of this message