title: How can I connect to an external database from a sql statement or a stored procedure?
body: <p>When running a SQL statement or a stored procedure on a database, can you connect to an external database and pull data from there?</p>
  
  <p>something like:</p>
  
  <pre><code>SELECT a.UserID, b.DataIWantToGet 
    FROM mydb.Users as a, externaldb.Data as b
  </code></pre>