title: How to run SQL in Intellij from file instead of console
body: <p>I am using Intellij 14.1.4. I am able to run SQLs by custom defined db data sources in database console.</p>
  
  <p>I have some sql files in my project and would like to execute them directly instead of copying them to the database console. However, I am not able to use the same data sources that I created for the console when setting up connections from the DB Connections drop down.</p>
  
  <p>I wonder how to run SQL statements from sql files with the same data sources as the ones I defined in the db console?</p>
  
  <p>Thanks</p>