473,414 Members | 1,944 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,414 software developers and data experts.

Q : Use SQL Server or Files For Storage?

Quick question for opinions, I thought I read an article about this
somewhere but I can't remember where.

The question is if I was creating a file storage system for a web site that
might have a high rate of requests should I use SQL server as my storage
then use the content-disposition header to deliver the file? or should I
just use SQL to store links to the files on the server. am I right to think
that using actual files would allow my system to have better performance
since IIS would cache and stream the files properly. But if I use SQL to
store my files it'd be more secure since the file can only be accessed after
going through both forms authentication, and my own code to extract the blob
data from SQL Server itself? But performance would suffer since I have to
pull it out from the database, coerce the data into a memory stream then
only write it down the response stream.

Opinions please?

Thanks,
Marauderz.
Nov 18 '05 #1
3 987
links

--
Curt Christianson
Owner/Lead Developer, DF-Software
www.Darkfalz.com
"Marauderz" <ma***********@marauderzstuff.com.invalid> wrote in message
news:OS****************@TK2MSFTNGP10.phx.gbl...
Quick question for opinions, I thought I read an article about this
somewhere but I can't remember where.

The question is if I was creating a file storage system for a web site that might have a high rate of requests should I use SQL server as my storage
then use the content-disposition header to deliver the file? or should I
just use SQL to store links to the files on the server. am I right to think that using actual files would allow my system to have better performance
since IIS would cache and stream the files properly. But if I use SQL to
store my files it'd be more secure since the file can only be accessed after going through both forms authentication, and my own code to extract the blob data from SQL Server itself? But performance would suffer since I have to
pull it out from the database, coerce the data into a memory stream then
only write it down the response stream.

Opinions please?

Thanks,
Marauderz.

Nov 18 '05 #2
Storing files in SQL Server is going to be a performance hit, especially if
they are binary files. You can make storing the files in your file system as
secure as you want it to be. So, all other things being equal, store your
files in the file system.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"Marauderz" <ma***********@marauderzstuff.com.invalid> wrote in message
news:OS**************@TK2MSFTNGP10.phx.gbl...
Quick question for opinions, I thought I read an article about this
somewhere but I can't remember where.

The question is if I was creating a file storage system for a web site that might have a high rate of requests should I use SQL server as my storage
then use the content-disposition header to deliver the file? or should I
just use SQL to store links to the files on the server. am I right to think that using actual files would allow my system to have better performance
since IIS would cache and stream the files properly. But if I use SQL to
store my files it'd be more secure since the file can only be accessed after going through both forms authentication, and my own code to extract the blob data from SQL Server itself? But performance would suffer since I have to
pull it out from the database, coerce the data into a memory stream then
only write it down the response stream.

Opinions please?

Thanks,
Marauderz.

Nov 18 '05 #3
Thanks for the responses guys, the problem is I'm working with some other
devices like Nokia phones and others. =P So if I use links and I want to
protect my files I'd be using an ASPX page or IHTTPHandler to process and
ensure the request is authentic then stream it through via a BinaryWrite.

So the question is of course.. can I rely on the Content-Disposition HTML
Header so that I can name and transfer the files down to them phones
properly? =P

Thanks again for the responses.
Nov 18 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Bob Olsson | last post by:
Hello all! I´m going to develop a windows smartclient and can´t find the information I need. Where do I store user-settings like paths, background colour and so on. I´ve read an article about...
2
by: Ken Lindner | last post by:
I have a need to become familiar with SQL Server 2000 for work. Needless to say I am new to SQL Server any version, but not IT in general. My employer has provided me with the SQL Server 2000...
7
by: Nick Gilbert | last post by:
Hi, As part of a website (ASP.NET) we're creating, we need the ability to store documents with pretty much 'mission critical' security. ie, if the server is completely compromised (eg a...
1
by: sajithm | last post by:
Hi all, I have a problem while trying to create folder and files in a remot storage server using asp.net. Actually I was trying with filesystem object and this says bad usernam and passeord,....
6
by: leandra_s | last post by:
Hello I want to upload files to a server with asp. But the problem is that the server where my asp website stands is a different server then where my upload files must go. Is there a way to...
0
by: lknight643 | last post by:
I have an asp.net application that works with a SQL server database on server No. 1 but I want to upload files for storage to Server No. 2 that is accessible only from the Internet. If the file...
2
by: Josh Kandiko | last post by:
Hi, I've been having some frustrations with deleting files from the Isolated Storage directories. Basically, I want my application to remove all instances of configuration information for my...
1
by: suresh_nsnguys | last post by:
Hi, I am having 1 doubt.Suppose if i am uploading a video file of 40 MB.whether the upload video file in the server will be 40 MB.but i checked out , the size is different in local and server....
6
by: LordZyse | last post by:
Just so everyone can know, I would LOVE to stay with yellowtip webserver, if you know how to install the GD files to it PLEASE let me know. This php worked on my 4.x php server but I get...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.