Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
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
Edited 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
0 OriginalGriff 205
1 Sergey Alexandrovich Kryukov 185
2 jlopez788 144
3 Rob Philpott 100
4 Prakriti Goyal 97
0 OriginalGriff 6,837
1 Sergey Alexandrovich Kryukov 5,589
2 Maciej Los 3,479
3 Peter Leow 3,323
4 DamithSL 2,505


Advertise | Privacy | Mobile
Web04 | 2.8.140721.1 | Last Updated 9 Jan 2013
Copyright © CodeProject, 1999-2014
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