title: Select Into Outfile incorrect syntax?
body: <p>I am trying to execute a simple <code>SELECT INTO OUTFILE</code> query in SQL Server 2008 R2 Management Studio. I don't understand why this is giving me this error.</p>
  
  <pre><code>SELECT * INTO OUTFILE 'C:\datadump\sqldbdump.txt"
  FROM dbo.alarms_2_2014
  FIELDS TERMINATED BY ','
  LINES TERMINATED BY '\n';
  </code></pre>
  
  <p>Error:</p>
  
  <blockquote>
    <p>Incorrect syntax near 'C:\datadump\sqldbdump.txt'.</p>
  </blockquote>