dbTalk Databases Forums  

Space Required to store a file in database

comp.databases.ms-sqlserver comp.databases.ms-sqlserver


Discuss Space Required to store a file in database in the comp.databases.ms-sqlserver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
apondu
 
Posts: n/a

Default Space Required to store a file in database - 09-09-2007 , 01:50 PM






hi,

I had a query on sql database, we know we usually store files of

different type in sql database and its helpful for searching and

retrieving the documents from the database, but one query i had was

related to the amount of space required to store the files in the

database. For Eg., say i have a word document which is of 5Mb thn how

much space does it occupy in the database if i store it in binary
format

b'coz i know it'll occupy less than the original file size but i
wanted

to knw exactly how much space it'll take in the database and y?

my mail-id is apondu (AT) gmail (DOT) com, if someone knows the answer then
please

let me know

Thanks for the response and help people here are providing

Regards,
Govardhan.


Reply With Quote
  #2  
Old   
Erland Sommarskog
 
Posts: n/a

Default Re: Space Required to store a file in database - 09-09-2007 , 05:24 PM






apondu (apondu (AT) gmail (DOT) com) writes:
Quote:
I had a query on sql database, we know we usually store files of
different type in sql database and its helpful for searching and
retrieving the documents from the database, but one query i had was
related to the amount of space required to store the files in the
database. For Eg., say i have a word document which is of 5Mb thn how
much space does it occupy in the database if i store it in binary format
b'coz i know it'll occupy less than the original file size but i wanted
to knw exactly how much space it'll take in the database and y?
If the word document is 5MB on disk, it will take up 5MB in the database
plus some over head that I would expect to be small, at most 1%. The only
way you can make it take up less then 5MB is to compress it before you store
it.



--
Erland Sommarskog, SQL Server MVP, esquel (AT) sommarskog (DOT) se

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/pro...ads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinf...ons/books.mspx


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.