BCP 数据导出

EXEC master..xp_cmdshell 'BCP  test.dbo.name out d:	_002.txt -c -t -T'

EXEC master..xp_cmdshell 'BCP  "select  name from test.dbo.name" queryout d:	_004.txt -c -t -T'

EXEC master..xp_cmdshell 'BCP tran_test.dbo.uptrans out d:	_006.txt -c -t -S HOUYAJUNJHIDCDBS005 -T'
原文地址:https://www.cnblogs.com/itclw/p/11090268.html