dbTalk Databases Forums  

uploading image files

comp.databases.ms-sqlserver comp.databases.ms-sqlserver


Discuss uploading image files in the comp.databases.ms-sqlserver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
M@
 
Posts: n/a

Default uploading image files - 05-25-2007 , 12:24 PM






I have a directory of files that I would like to upload with some data
to a table so that I can store the files in the db. I'm not trying to
parse files into rows, I want to stick the actual file in the column.
Is there some kind of insert script, or bulk copy that I can use?

I have about 150 docs and I would rather not go through the whole app,
pick the file, upload it. etc.

thx,
M@


Reply With Quote
  #2  
Old   
Erland Sommarskog
 
Posts: n/a

Default Re: uploading image files - 05-25-2007 , 05:00 PM






M@ (mattcushing (AT) gmail (DOT) com) writes:
Quote:
I have a directory of files that I would like to upload with some data
to a table so that I can store the files in the db. I'm not trying to
parse files into rows, I want to stick the actual file in the column.
Is there some kind of insert script, or bulk copy that I can use?

I have about 150 docs and I would rather not go through the whole app,
pick the file, upload it. etc.
I have a mockup that I got from SQL Server Magazin on
http://www.sommarskog.se/blobload.txt. You could extend that to a
program that reads your directory to load your files.


--
Erland Sommarskog, SQL Server MVP, esquel (AT) sommarskog (DOT) se

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/pro...ads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinf...ons/books.mspx


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.