Rajasii
asked on
How to fetch image data (doc,jpg,pdf) from sqlserver2005 to file using TSQL
Hi friends,
I want to retrieve the image data type data like .doc,.jpg,.pdf files from SQL Sever through TSQL.
Thanks and regards
I want to retrieve the image data type data like .doc,.jpg,.pdf files from SQL Sever through TSQL.
Thanks and regards
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
Are you looking to do this purely in SQL server, or do you have a client application that will do the actual work of writing the text files? Writing binary data to files using TSQL will be messy at best.
ASKER
Yes. I am looking it in purely in SQL server.
SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
ASKER
For example I want to store the image data from db to on file name like C:\fetched.doc.
Thanks for your quick reply.