Click here to Skip to main content
12,501,105 members (43,310 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: C# ASP.NET SQL-Server , +
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....
Posted 26-Nov-12 19:09pm
Updated 26-Nov-12 20:16pm
v2

1 solution

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

Solution 1

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.
  Permalink  

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
Web02 | 2.8.160919.1 | Last Updated 9 Jan 2013
Copyright © CodeProject, 1999-2016
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