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'