Solved

File attachments in SQL Server

Posted on 2007-11-30
2
516 Views
Last Modified: 2011-09-20
I have a website where I have some cfm pages with a sql server 2000 backend...some of the forms in cfm will have attachments (word docs, etc.)...Is it an issue just creating an attachment table in the sql database and store the file there or is it better to store it in a ntfs file location and store a link to it in the sql server? Our database isn't anything enormous, but still looking for best practices in terms of speed and data integrity.
0
Comment
Question by:garyttu
2 Comments
 
LVL 47

Accepted Solution

by:
Vitor Montalvão earned 50 total points
ID: 20383239
I prefer the solution to store files in file server and store they links in a column of a table in SQL Server.
I avoid to work with BLOB's
0
 
LVL 16

Assisted Solution

by:ThinkPaper
ThinkPaper earned 50 total points
ID: 20383404
ditto. It is better to store your files on your file server and save the location in your DB. This is faster, easier and generally the preferred method.
BLOBs should only be used in rare cases. It would take more resources on your db and could significantly slow it down; scalability would also be a concern. You'd need to fully understand how to implement it - its a bit more trickier and usually not worth the effort..
0

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
T-SQL: Do I need CLUSTERED here? 13 45
Tsql query 6 22
optimize stored procedure 6 28
Query to capture 5 and 9 digit zip code? 4 22
Developer portfolios can be a bit of an enigma—how do you present yourself to employers without burying them in lines of code?  A modern portfolio is more than just work samples, it’s also a statement of how you work.
Color can increase conversions, create feelings of warmth or even incite people to get behind a cause. If you want your website to really impact site visitors, then it is vital to consider the impact color has on them.
Via a live example, show how to set up a backup for SQL Server using a Maintenance Plan and how to schedule the job into SQL Server Agent.
Any person in technology especially those working for big companies should at least know about the basics of web accessibility. Believe it or not there are even laws in place that require businesses to provide such means for the disabled and aging p…

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question