Home Forums Article Discussions Article Discussions by Author Discuss content posted by Bhavesh SQLCMD or BCP RE: SQLCMD or BCP
Robert-378556
SSCertifiable
Points: 5917
More actions
November 21, 2008 at 1:12 am
#901481
BCP outputs data to a file, SQLCMD to a file or console, so you can redirect console to a file with > or >>:
rem create output.txt
sqlcmd commands > Output.txt
rem append to output.txt
sqlcmd commands >> Output.txt