如何从DB中检索大型varbinary数据? [英] how retrieve Large varbinary Data from DB?

查看:101
本文介绍了如何从DB中检索大型varbinary数据?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,





早上好,





我这里有问题来检索大量的varbinary数据,

我从DB检索数据如下:

Hello,


Good Morning,


I have the Problem here for retrieving Large volumn of varbinary data,
I have retrieve data from DB like below:

select convert(varchar(max),email_body) from mst_email_temp





但我的数据部分还原,所以我为此做了什么。



伙计们,如果你知道另一种检索数据的方法那么请帮助我....



but also my data retrive partially,so what i do for that.

Guys,If you know another way to retrieving data for that then please help me....

推荐答案

我推荐一个codeplex项目:



MSSQL的文件操作,SQLCLR程序集 - > http://nclsqlclrfile.codeplex.com/



在您设法安装此程序集后,使用以下功能:

I recommend a codeplex project:

"File Operations For MSSQL, A SQLCLR Assembly" -> http://nclsqlclrfile.codeplex.com/

And after you manage to install this assembly, use the function:
DECLARE @FileImage varbinary(max)
SELECT @FileImage = dbo.MFGetFileImage(''C:\stuff\email'',''bigemail.eml'' )
SELECT CAST(@FileImage AS [xml])



你很可能得到很多东西,你可以用它们做你想做的事。没有缩写。


You''ll get likely get long lines of whatever and you can do what you want with them. Without abbreviations.


这篇关于如何从DB中检索大型varbinary数据?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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