共享192.168.100.22的d盘.
然后执行:EXEC master..xp_cmdshell 'bcp TatelName  out "\\192.168.100.22\d\temp\temp.txt
" -c -Sservername -Uusername -Ppassword'
或者,直接在192.168.100.22的电脑的命令提示符下执行:
bcp TatelName  out d:\temp\temp.txt -c -Sservername -Uusername -Ppassword