Click here to Skip to main content
15,885,366 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Now I am considering options to store the documents on the server
I'll have PDF documents mostly around 1 Million or so,those will store into a SQL Server table
I am aware that I will reach the 8TB, I'm not sure about limit .mdf size of SQL Server Enterprise edition.
After the PDF files are stored they can be downloaded and viewed via browser after entering the related order number.
Here is some additional information:
-The PDF files will have a size of around 1-2 MB. each
-SQLServer 2016 Enterprise
-2TB SSD*4


What I have tried:

my table of orders by a varbinary(MAX) column and store the PDF document directly into that binary field.
Posted
Updated 12-Nov-18 2:04am

1 solution

Don't store them in SQL server - store them as files (I'd use a GUID as the file name) and store the location plus the original filename in SQL.
That way, you aren't clogging SQL with unnecessary data, using up huge amounts of SQL server bandwidth, and you make it easier to back up the whole system.

As long as all the apps that would fetch them from the DB have access to the folder, it's all a lot simpler.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900