Re: Space Required to store a file in database



Unless you have/use your own compression routine, storing a file in a binary
format (varbinary, image) won't reduce it's size. However, the storage of
anything in a database occurs a small overhead; so the storing of a file of
exactly 5MB in size will take a little bigger than just 5MB. There is no
precise number for this overhead and in fact, it can vary from file to file;
ie, the storing of a second file of exactly the same 5MB will not
necessarily take exactly the same overhead.

--
Sylvain Lafontaine, ing.
MVP - Technologies Virtual-PC
E-mail: sylvain aei ca (fill the blanks, no spam please)


"apondu" <apondu@xxxxxxxxx> wrote in message
news:1189363945.934271.258880@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
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@xxxxxxxxx, if someone knows the answer then
please

let me know

Thanks for the response and help people here are providing

Regards,
Govardhan.



.



Relevant Pages

  • Re: Rude Word Spotter?
    ... I tend to store the text items in Access 97 memo fields in RTF format. ... XML, JET database, SQL Server database or some other source? ... I enjoy writing conversion routines to move data about. ...
    (uk.people.silversurfers)
  • Re: Article Storage: Files vs. Database
    ... anyway to store other data thna just the description for each article ... approaches are to either store the articles in aspx files, ... indexed by the database, or to store the article text in the database. ... Some advantages of storing them in files are simplicity, ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Ideas on storing and retriving files in a Windows Application
    ... files etc. 2) Because it is stored in a relational database, ... blobs takes some minor modifications other than just using SELECT blah FROM ... horror stories of people who started storing BLOB data in a db only to have ... > will open the appropiatte application to display the file and 2. ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: Number + 1
    ... Using the same number in a variety of databases may be a reason for storing ... incremented portion and the extended portion. ... The value for dmrdate is assigned automatically as today's date and time, ... My experience not only with my database but with other customers & ...
    (microsoft.public.access.gettingstarted)
  • Re: Image ctl causes bloat when using text field to store path/fil
    ... Are you storing the image in the database? ... it in your database or embedding it in the report and/or form. ... got the same bloating problem in a report containing the Image control. ... Compact on Close will attempt to do so while the database is use... ...
    (microsoft.public.access.tablesdbdesign)

Loading