sqlcmd -i C:\MyFolder\MyScript.sql -o C:\MyFolder\MyOutput.txt

  Inside the MyScript.sql is this code.

 

          USE [yourDatabase]

          GO

 

          SELECT     IndividualId, FirstName, LastName, DateCreated

          FROM         Individual

          ORDER BY LastName

          GO

 

 

OR YOU CAN USE THIS

 

USE [yourDatabase]

GO

execute dbo.Individual

GO