Link to home
Create AccountLog in
Avatar of Rajasii
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
ASKER CERTIFIED SOLUTION
Avatar of Aneesh
Aneesh
Flag of Canada image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
Avatar of Rajasii
Rajasii

ASKER

Please Can u explain me detaily.

For example I want to store the image data from db to on file name like C:\fetched.doc.

Thanks for your quick reply.
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.
Avatar of Rajasii

ASKER

Yes. I am looking it in purely in SQL server.
SOLUTION
Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.