Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Insert pdf file into sql column

Status
Not open for further replies.

rsshetty

Programmer
Dec 16, 2003
236
US
I am using a DTS package to transfer a file from a location on the computer to a sql table column. To be more specific, I am using the bcp utility of sql server to do it.
Here's my problem:
If I knew the file's name in advance, then there would be no problem. However, the file is generated in a sequence. For eg. 1111.pdf, 1112.pdf,1113.pdf,etc. Now if the name of the file is 1111.pdf, the file has to go to the row in the table which has ID=1111. If the name of the file is 1112.pdf, the file has to go to the row which has ID=1112.
How would I get to know the names of the files in the location since they keep changing?

Any ideas?

rsshetty.
It's always in the details.
 
No issues. I found out how to do this differently.

rsshetty.
It's always in the details.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top