title: Schedule SQL Server query to execute and output a file
body: <p>Alright guys, this should be a very simple request. I'd like to run a query (IE <code>Select * from tablex</code>) every night and have it automatically output to a text file on the same system. </p>
  
  <p>Thanks</p>