Click here to Skip to main content
13,050,617 members (82,637 online)
Rate this:
Please Sign up or sign in to vote.
See more: , +

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....
Posted 26-Nov-12 19:09pm
Updated 26-Nov-12 20:16pm

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

I recommend a codeplex project:

"File Operations For MSSQL, A SQLCLR Assembly" ->

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.

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web01 | 2.8.170713.1 | Last Updated 9 Jan 2013
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100