all groups > sql server full text search > september 2007 >
You're in the

sql server full text search

group:

Space Required to store a file in database



Space Required to store a file in database apondu
9/9/2007 11:49:39 AM
sql server full text search: 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@gmail.com, if someone knows the answer then
please

let me know

Thanks for the response and help people here are providing

Regards,
Govardhan.
RE: Space Required to store a file in database ML
9/10/2007 1:12:01 AM
Perhaps...

select datalength(<your column>)
from <your table>
where <criteria specifying the row(s) to check>

[quoted text, click to view]

How do you know that?


ML

---
Matija Lah, SQL Server MVP
AddThis Social Bookmark Button