MS SQL Server 2005,将varbinary写入文件系统 [英] MS SQL Server 2005, write varbinary to file system

查看:98
本文介绍了MS SQL Server 2005,将varbinary写入文件系统的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

仅使用sql查询是否可以将varbinary单元的内容写入文件系统?我有一列存储pdf的列,为了进行一些快速测试,我想将pdf写入文件系统.

Using just an sql query is it possible to write the contents of a varbinary cell to the file system? I have a column that stores pdf s as and for some quick testing I'd like to write out the pdfs to the filesystem.

感谢您的帮助.

推荐答案

此处有类似问题.

您需要遍历每一行,并对每个varbinary字段执行BCP(批量复制)转储到文件系统

You'll need to iterate through each row and perform a BCP (BulkCopy) Dump of each varbinary field to the filesystem

这篇关于MS SQL Server 2005,将varbinary写入文件系统的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆