title: Not able to use SQLCMD.EXE because it was not present
body: <p>I want to run a <code>.bat</code> file on my server but it is throwing an error:</p>
  
  <blockquote>
    <p>No sqlcmd.exe present in any of folder under the "C:\Program
    Files\Microsoft SQL Server"</p>
  </blockquote>
  
  <p>I tried to install ODBC 11 and SQLCMD utility but not worked</p>
  
  <pre><code>@ECHO OFF SET SQLCMD="C:\Program Files\Microsoft SQL 
  Server\110\Tools\Binn\SQLCMD.EXE" SET PATH="folder path" SET 
  SERVER="myServer" SET DB="myDB" SET LOGIN="admin" SET PASSWORD="1234" SET 
  INPUT="MyQuery.sql" SET OUTPUT="OutputLog.txt" COPY %PATH%*.SQL %INPUT% 
  %SQLCMD% -S %SERVER% -d %DB% -U %LOGIN% -P %PASSWORD% -i %INPUT% -o %OUTPUT% 
  </code></pre>
  
  <blockquote>
    <p>(This is my .bat file , if u can see, I am not able to find SQLCMD.exe there on the given path or any other folder under in "Microsoft SQL Server" , so how to use sqlcdm or how to run my sql query through .bat file) </p>
  </blockquote>