-
Putting images in an unpopulated table.
Here's what I've got.
We have a table that needs to be populated with a Foreign Key and an image file that matches it. The image file is named the the person's SSN which matches the FK.
Is there a way I can use the name of the file (123456789.jpg) to import it into the database or is there a better way?
-
You have to use UPDATETEXT command to load the image in the database or you may use TEXTCOPY utility (found in C:\Program Files\Microsoft SQL Server\80\Tools\Devtools\Samples\DBLib\TextCopy)
But you can't use image data as foreign key column, you should have a separate column for that.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|