You are here: Re: uploading image files « MsSQL Server « IT news, forums, messages
Re: uploading image files

Posted by Erland Sommarskog on 05/25/07 22:00

M@ (mattcushing@gmail.com) writes:
> 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@sommarskog.se

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация