Question:
Saving images in SQL SERVER is a good idea?
anonymous
2011-12-01 01:50:26 UTC
Saving images in SQL SERVER is a good idea?
Four answers:
just "JR"
2011-12-01 06:32:07 UTC
No.

You store the PATH to the image in database, and the image somewhere else.
TheMadProfessor
2011-12-01 17:15:59 UTC
Storing them directly in the tables? No, it's a horrible idea...it wastes tablespace and slows down query execution. ALWAYS store large binary files and the like in a separate folder in the database's path and only store the relative path to the file in the table row. Once you have that, getting at the image (or whatever) is a minor second step.
matthewh2712
2011-12-01 10:18:34 UTC
no, not what a SQL server is designed for really. store file locations in there by all means though, or HTML which will generate and grab the image from your image store location
anonymous
2011-12-01 09:56:39 UTC
NEVER store any large files in a database, it defeats the object of a database which is fast retrieval of data. The correct way to do this would be to store the files in specific folders, and if you do need fast access to them you can then store information about them in the database, so you can look them up easily, and also edit information about them quickly.


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...