June 12, 2014 at 5:03 am
Hi!
Would you please help me here?
I want to insert some images base on their Picture IDs. Picture IDs are in the extension of files in a single folder.
June 12, 2014 at 6:00 am
Can you give some example of what you are trying to do? Table ddl would be nice.
SSIS has the import column transformation, it may be worth checking that one out.
Need an answer? No, you need a question
My blog at https://sqlkover.com.
MCSE Business Intelligence - Microsoft Data Platform MVP
June 14, 2014 at 4:31 am
Hi!
Thanks. This is my case.
I want to import some images base on the PK_ID.
Thanks again.
June 14, 2014 at 4:32 am
June 16, 2014 at 12:07 am
Did you try the SSIS import column transformation I mentioned earlier?
Importing Files Using SSIS[/url]
Need an answer? No, you need a question
My blog at https://sqlkover.com.
MCSE Business Intelligence - Microsoft Data Platform MVP
June 16, 2014 at 4:11 am
Well, I didn't actually.
Honestly, I haven't worked with SSIS.
Do you think that would help me? If it does, I would learn it.
June 16, 2014 at 4:16 am
It would satisfy your requirement yes.
You would only need to create the full path at which an image is located.
Currently only the last part of the filename is stored in the table.
I see for example 22068.jpg.61018_PICTURE.jpg in the screenshot, where 61018 is a PK stored in the table.
You'd need the first part as well.
Need an answer? No, you need a question
My blog at https://sqlkover.com.
MCSE Business Intelligence - Microsoft Data Platform MVP
June 16, 2014 at 4:20 am
On the other hand, since you have not used SSIS yet, a small C# app might be easier:
Uploading Images to a Database ( C# ) – Part I[/url]
You would need to loop over all of the files in the folder, extract the PK and match it against the table.
Need an answer? No, you need a question
My blog at https://sqlkover.com.
MCSE Business Intelligence - Microsoft Data Platform MVP
August 7, 2014 at 5:25 am
I would like to say thanks Koen Verbeeck who share this link here. It is very helpful for me while insert images into SQL server.
Viewing 9 posts - 1 through 8 (of 8 total)
You must be logged in to reply to this topic. Login to reply