title: T-SQL: Export to new Excel file
body: <p>I have a script that does various things and the end result is one large table. I was wondering how I could export this final table to a new Excel file (with column headers as well).</p>
  
  <p>I would need to do this within the script.</p>