May 24, 2007 at 11:25 am
How do I load a PDF into SQL? What would be the INSERT query?
Thanks...Nali
May 24, 2007 at 10:04 pm
You shouldn't... you should store the file name only and let the external app get the file using the file name.
--Jeff Moden
Change is inevitable... Change for the better is not.
May 25, 2007 at 2:42 am
I agree with Jeff; there are a number of very practical reasons why this is not a good idea.
Look at BOL and read up on Image and Varbinary data types. Then choose Jeff's way of doing it.
May 25, 2007 at 6:46 am
I think I understand your concerns and why you'd want to store pointers to PDF files instead of loading them to SQL. However, in my environment, it currently makes more sense to store in the DB, if its possible, and if it passes testing.
So far it looks like simple INSERT statements will not work, and I'll have to rely on a DTS or VB scripting to load the PDFs.....
May 25, 2007 at 8:47 am
And then, what? You will still have problems getting the images out of the DB to be displayed. Perhaps this will change your mind... there are hundreds more like it...
http://www.sqlteam.com/item.asp?ItemID=986
--Jeff Moden
Change is inevitable... Change for the better is not.
May 25, 2007 at 8:54 am
there are good reasons to go either way. You use an interest statement and a small app to load the stream makes the most sense.
May 25, 2007 at 9:09 am
Know of any URL's that'll get Nali started on that, Steve? I thought I had a good one but can't find it, now...
--Jeff Moden
Change is inevitable... Change for the better is not.
Viewing 7 posts - 1 through 6 (of 6 total)
You must be logged in to reply to this topic. Login to reply