Click here to Skip to main content
15,886,724 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: , +
Hello,


Good Morning,


I have the Problem here for retrieving Large volumn of varbinary data,
I have retrieve data from DB like below:
SQL
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....
Posted
Updated 26-Nov-12 20:16pm
v2

1 solution

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.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900