Solved

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

Posted on 2014-03-18
3
615 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
Comment Utility
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
Comment Utility
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
Comment Utility
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 Microsoft Windows PC® & Mac Backup

Backup and recovery solutions to protect all your PCs & Mac– on-premises or in remote locations. Acronis backs up entire PC or Mac with patented reliable disk imaging technology and you will be able to restore workstations to a new, dissimilar hardware in minutes.

Join & Write a Comment

Let's review the features of new SQL Server 2012 (Denali CTP3). It listed as below: PERCENT_RANK(): PERCENT_RANK() function will returns the percentage value of rank of the values among its group. PERCENT_RANK() function value always in be…
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…
Via a live example, show how to extract insert data into a SQL Server database table using the Import/Export option and Bulk Insert.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.

772 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

10 Experts available now in Live!

Get 1:1 Help Now