Solved

File attachments in SQL Server

Posted on 2007-11-30
2
533 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 51

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

Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

Question has a verified solution.

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

When crafting your “Why Us” page, there are a plethora of pitfalls to avoid. Follow these five tips, and you’ll be well on your way to creating an effective page.
Although a lot of people devote their energy toward marketing for specific industries, there are some basic principles that can be applied to any sector imaginable. We’ll look at four steps to take and examine how those steps were put into action fo…
Viewers will learn how the fundamental information of how to create a table.
The is a quite short video tutorial. In this video, I'm going to show you how to create self-host WordPress blog with free hosting service.

626 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