在SQL中创建文件 [英] File creation in SQL
本文介绍了在SQL中创建文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
想要创建文件(xml / txt)到sql中的特定位置。我已经搜索并使用xp_cmdshell创建了该文件。但是由于安全原因,我想要没有cmdshell。还有其他任何创建文件的方式吗?
我尝试了什么:
exec master.xp_cmdshell @Command
解决方案
单向写入文件正在使用CLR过程。例如,请查看从数据库写入文件 [ ^ ]
Want to Create file (xml/txt) to a particular location in sql. i've searched and got that file creation using xp_cmdshell. But i want without cmdshell due to security reason.is any other way for creating file ?
What I have tried:
exec master.xp_cmdshell @Command
解决方案
One way to write into a file is using a CLR procedure. For example, have a look at Writing into a file from database[^]
这篇关于在SQL中创建文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文