You can do it with 2 different ways:
1. Create a remote views
2. With SPT. Take a look in SQLCONNECT(), SQLSTRINGCONNECT(), SQLEXEC() and related functions.
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.