eg:

declare @sql nvarchar(4000)
set @sql='bcp "Select name from SemanticProject..concept" queryout "c:\DT.txt" -T -c'
--select @sql
EXEC master..xp_cmdshell @sql
Go

posted on 2012-06-18 10:35  finallyly  阅读(251)  评论(0编辑  收藏  举报