Export data in txt file by using SQLCMD

Download sql-server eBook

Syntax

  • sqlcmd -S SHERAZM-E7450\SQL2008R2 -d Baseline_DB_Aug_2016 -o c:\employee.txt -Q "select * from employee"

Related Examples

Stats

34 Contributors: 1
Tuesday, September 27, 2016
Licensed under: CC-BY-SA

Not affiliated with Stack Overflow
Rip Tutorial: info@zzzprojects.com

Download eBook