Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / March 2008

Tip: Looking for answers? Try searching our database.

Storing/Retrieving Files In Database

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Cindy - 08 Mar 2008 04:31 GMT
Hi.  I'm using SQL Server 2005.  I'd like to know if anyone has any
reference on how to allow users to upload a file **onto a database**.
In other words, a user can have several related files belonging to
him.  Also, I would need a syntax that allowed me to retrieve those
files.

I'm sure this is possible.  Aside from that information, can anyone
suggest whether this is the proper method?  I know I can simply store
the paths, but starting to juggle various directories is not really my
cup of tea; if there is only one directory to store all the files,
some of them might have the same name, thus creating a conflict.  That
is something I do not need to worry about if everything is stored in a
table image field.

In any case, thank you in advance for your help.

Cindy
Alexey Smirnov - 08 Mar 2008 14:20 GMT
> Hi.  I'm using SQL Server 2005.  I'd like to know if anyone has any
> reference on how to allow users to upload a file **onto a database**.
[quoted text clipped - 13 lines]
>
> Cindy

http://www.google.com/search?hl=en&q=asp.net+upload+file+into+database
Cindy - 08 Mar 2008 19:01 GMT
> > Hi.  I'm using SQL Server 2005.  I'd like to know if anyone has any
> > reference on how to allow users to upload a file **onto a database**.
[quoted text clipped - 17 lines]
>
> - Show quoted text -

Priviet Alexey --

I am capable of searching Google; however, there are a couple of
questions you left unanswered.  Namely, is this the proper way of
going about these things?  Will the database bloat if there is too
much information in it?  Any considerations or suggestions would be
helpful.

Thanks.

Cindy
Peter Bromberg [C# MVP] - 08 Mar 2008 19:51 GMT
If you are asking whether file data should be stored in a database, that's
really up to you. Many people store the files on the filesystem and only have
a database entry that points to the file location. Regarding "bloat" that
should not be an issue as long as the table(s) are properly indexed.

-- Peter
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
Short Urls & more: http://ittyurl.net

> > > Hi.  I'm using SQL Server 2005.  I'd like to know if anyone has any
> > > reference on how to allow users to upload a file **onto a database**.
[quoted text clipped - 29 lines]
>
> Cindy
Alexey Smirnov - 10 Mar 2008 09:33 GMT
On Mar 8, 8:51 pm, Peter Bromberg [C# MVP]
<pbromb...@yahoo.NoSpamMaam.com> wrote:
> If you are asking whether file data should be stored in a database, that's
> really up to you. Many people store the files on the filesystem and only have
[quoted text clipped - 41 lines]
>
> - Show quoted text -

I agree with Peter.

Sharepoint / WSS stores the files in SQL Server (can this be an answer
to the question about proper way? :-) I'm also working at the moment
on a similar application that keeps files saved in the database. I
decided to do this because of easy backup, synchronization and role-
based security.

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.