title: SQL Database/.SQL File to CSV File
body: <p>I'm writing an application with Ruby on Rails that will take CSV files and migrate data into postgresql databases, however, all of my data is stored as .SQL files or as databases on an MS SQL 2008 server.</p>
  
  <p>I'm wondering if it's possible to write a simple Ruby on Rails script and generate a CSV file from an SQL file/MS SQL database.</p>
  
  <p>Thanks in advance.</p>