title: Store Files in SQL Server or keep them on the File Server?
body: <p>Currently we have thousands of Microsoft Word files, Excel files, PDF's, images etc stored in folders/sub folders. These are generated by an application on a regular basis and can be accessed at any time within that application. As we look to upgrade we are now looking into storing all these documents within SQL Server 2005 instead. Reasons for this are based on being able to compress the documents, adding additional fields to store more information on those documents and applying index’s where necessary.</p>
  
  <p>I suppose what I’m after is the pros and cons of using SQL Server as a document repository instead of keeping them on the file server, as well as any experience you might have in doing this.</p>
  
  <p>We would be using C# and Windows Workflow to do this task.</p>
  
  <p>Thanks for your comments.</p>
  
  <p>Edit</p>
  
  <hr>
  
  <p>How big are the files? </p>
  
  <p><strong>between 100k = 200k in size (avg. 70KB)</strong></p>
  
  <p>How many will be? </p>
  
  <p><strong>At the moment it’s around 3.1 Million files (ranging from Word/Excel and PDF's), which can grow by 2,600 a day. (The growth will also increase over time)</strong></p>
  
  <p>How many reads? </p>
  
  <p><strong>This one is difficult to quantify as our old system/application makes it hard to work this out.</strong></p>
  
  <hr>
  
  <p>Also another useful link pointed out on a similar post covers the pros and cons of both methods.</p>
  
  <p><a href="https://stackoverflow.com/questions/616762/what-is-the-best-way-to-associate-a-file-with-a-piece-of-data">Files Stored on DB vs FileSystem - Pros and Cons</a></p>