title: Extracting files from a database
body: <p>Does anyone know of a query, script or way of how I can extract actual files, example a jpeg, msg, or xls file, etc. from a database?  Basically, the files are not saved on a physical drive.  They are stored within the database.  How can I export/extract them from the database?</p>
  
  <p>Using SQL Server 2008 R2.</p>