Solved

How to export a SQL Server 2008 image field to a pdf file?

Posted on 2014-03-18
3
651 Views
Last Modified: 2014-03-26
I have a table with an image field that is used to store pdf files in binary format. I have successfully imported a pdf file into the image field using openrowset. Then I successfully exported it to a binary file using BCP in a SQLCMD window.

Now my problem is how to get the exported binary file into pdf format so Adobe can read it, and I can confirm that I have the same file I started with.
0
Comment
Question by:chi5927
  • 2
3 Comments
 
LVL 5

Expert Comment

by:dannygonzalez09
ID: 39937485
found an article which i think might help you

http://www.sqlservercentral.com/articles/BCP/63560/
0
 

Accepted Solution

by:
chi5927 earned 0 total points
ID: 39945997
I don't think there's any way to do this other than programmatically. I'm going to try writing a little utility program to do the job. If that doesn't work I will re-post the question.
0
 

Author Closing Comment

by:chi5927
ID: 39955466
I have seen nothing in any of the articles I read to indicate that it's possible to do this in native SQL. I have some code from another application that does it programmatically so I'm going with that.
0

Featured Post

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

The password reset disk is often mentioned as the best solution to deal with the lost Windows password problem. In Windows 2008, 7, Vista and XP, a password reset disk can be easily created. But besides Windows 7/Vista/XP, Windows Server 2008 and ot…
Ever notice how you can't use a new drive in Windows without having Windows assigning a Disk Signature?  Ever have a signature collision problem (especially with Virtual Machines?)  This article is intended to help you understand what's going on and…
Using examples as well as descriptions, and references to Books Online, show the different Recovery Models available in SQL Server and explain, as well as show how full, differential and transaction log backups are performed
Via a live example, show how to shrink a transaction log file down to a reasonable size.

813 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now