Solved

Limit of saving file in sql table

Posted on 2013-02-03
7
147 Views
Last Modified: 2013-02-03
I dont want to use SQl Server's filestream. I want to save the files in a table in database using varbinary(max)....

How big the file can be?
0
Comment
Question by:Camillia
  • 3
  • 3
7 Comments
 
LVL 9

Expert Comment

by:Aeriden
ID: 38849041
0
 
LVL 9

Accepted Solution

by:
Aeriden earned 250 total points
ID: 38849043
Sorry, the link is for SQL 2012.  For SQL 2008, reference http://msdn.microsoft.com/en-us/library/ms188362%28v=sql.100%29.aspx

(still the same maximum size)
0
 
LVL 7

Author Comment

by:Camillia
ID: 38849060
If i want to think in terms of pages, how many pages is 2GB? or i cant compare it as such?
0
VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

 
LVL 9

Expert Comment

by:Aeriden
ID: 38849268
In the old days (circa SQL Server 4.x and 6.x) we used to think in terms of pages.  I haven't thought that way in a long time (haven't needed to).  Perhaps you could provide some insight as to why pages would be of concern to you (and perhaps relevant)?
0
 
LVL 7

Author Comment

by:Camillia
ID: 38849275
I want to explain to my manager what 2GB compares to # of PDF files.
0
 
LVL 75

Assisted Solution

by:Anthony Perkins
Anthony Perkins earned 250 total points
ID: 38849617
I want to explain to my manager what 2GB compares to # of PDF files.
Unfortunately, you cannot do that.  The best you can do is pick some random files and divide the sum of all the sizes by the total number of pages.  For example the PDF that I see are a little over 2Kb per page, but I am talking about a PDF with over half a million pages.

But I do need to add that if you have PDFs with anywhere close to 2 GB and you are attempting to save in database you have bigger problems.

Good luck with your approach and make sure to come back to this thread in say about a year or two and tell us how it worked out for you.
0
 
LVL 7

Author Comment

by:Camillia
ID: 38849669
Thanks. Not going to store 2GB of files. I was just looking at example. Going to put a limit on the size of the file we save.
0

Featured Post

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

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

SQL Server engine let you use a Windows account or a SQL Server account to connect to a SQL Server instance. This can be configured immediatly during the SQL Server installation or after in the Server Authentication section in the Server properties …
This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

777 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