sql server 存储过程将一系列查询结果输出到txt文档中保存?
sql   server   存储过程将一系列查询结果输出到txt文档中保存?
------解决方案--------------------用DTS转化执行转化.. 
------解决方案----------------------1 
 create table test_tb(c1 varchar(8000)) 
 --2 
 insert test_tb exec 存储过程名 
 --3 
 exec master..xp_cmdshell  'bcp 数据库名..test_tb out d:\aa.txt  -c -q -t, -S服务器名 -Usa -P密码 '