title: How can i execute a sql server 2008 command by a batch file?
body: <p>i have to execute a sql command from a batch file. like :- </p>
  
  <p>"Select top 1 versionNumber from SchemaVersion order by Id desc"</p>
  
  <p>and Show its result on batch file , just when this batch file gets open.</p>
  
  <p>please can any one suggest me right solution to do this ??</p>
  
  <p>thanks in advance..</p>