A Microsoft extension to the ANSI SQL language that includes procedural programming, local variables, and various support functions.
Another option if you do not need the headers and you need to export the data to a text file and you want better performance, is to use bcp instead of sqlcmd