PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Hébergement serveur > comp.db.ms-sqlserver > Space Required to store a file in database
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
Space Required to store a file in database

Réponse
 
LinkBack Outils de la discussion
Vieux 09/09/2007, 19h50   #1 (permalink)
apondu
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Space Required to store a file in database

hi,

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

different type in sql database and its ful 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 people here are providing

Regards,
Govardhan.

  Réponse avec citation
Vieux 09/09/2007, 23h24   #2 (permalink)
Erland Sommarskog
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Space Required to store a file in database

apondu (apondu@gmail.com) writes:
> I had a query on sql database, we know we usually store files of
> different type in sql database and its ful 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@sommarskog.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
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 10h58.


Édité par : vBulletin® version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,08574 seconds with 10 queries