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