怎样用存储过程写操作系统文件?

在存储过程中,能够将一些数据写入操作系统的文件中?
请高手指点。

---------------------------------------------------------------

用xp_cmdshell执行吧!
---------------------------------------------------------------

example:
declare @bcpname char(100)
select @bcpname='copy f:\fac.txt d:\fac.txt'
exec master..xp_cmdshell @bcpname

Published At
Categories with 数据库类
Tagged with
comments powered by Disqus