Solved

File attachments in SQL Server

Posted on 2007-11-30
2
505 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 45

Accepted Solution

by:
Vitor Montalvão earned 50 total points
Comment Utility
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
Comment Utility
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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
Any business that wants to seriously grow needs to keep the needs and desires of an international audience of their websites in mind. Making a website friendly to international users isn’t prohibitively expensive and can provide an incredible return…
Via a live example, show how to backup a database, simulate a failure backup the tail of the database transaction log and perform the restore.
The viewer will learn how to dynamically set the form action using jQuery.

771 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now