title: spool output to particular file from command prompt
body: <p><img src="https://i.stack.imgur.com/A5EA5.png" alt="enter image description here" /></p>
  <p>I want to spool my output to  a particular file.
  My database in SqlServer. I am entering code in command prompt like this:</p>
  <p><img src="https://i.stack.imgur.com/M0iFz.png" alt="enter image description here" /></p>
  <p>First I am connecting to my data base like this:</p>
  <pre><code>sqlcmd -S SUPPORT2/SUPPORT2 -U sa -P solutions
  </code></pre>
  <p>SUPPORT2/SUPPORT2 is a my server name.<br />
  I choose my database name(vallett), then I am selecting Ename from EmployeeMaster_tbl.<br />
  I want to spool this output to a particular word file, how can I do this?</p>
  <p>I tried somthing like this..but getting an error</p>