共享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
然后执行: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
zjcxc(邹建)
我上次提得还不行啊,就是这条语句在另一部机子不行
我是用ADO来做的,不知CNN是要设置成服务器端还是客户端