dbTalk Databases Forums  

how much bytes needed in sql server

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


Discuss how much bytes needed in sql server in the comp.databases.ms-sqlserver forum.



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

Default how much bytes needed in sql server - 06-13-2007 , 09:47 AM






Hi i want to know how much bytes will sql server take to store a
single alphabet like "a". i need to know similarly for all data types
(including images).here i am doing a application where i need to
predict the amount of space required in sql server to store the user
fed dynamic data.

Give me a handy solution.

Regards
visu


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

Default Re: how much bytes needed in sql server - 06-13-2007 , 05:08 PM






visu (k.visube (AT) gmail (DOT) com) writes:
Quote:
Hi i want to know how much bytes will sql server take to store a
single alphabet like "a".
If you use varchar, that's one byte. If you use nvarchar, it's two bytes.

Quote:
i need to know similarly for all data types
(including images).here i am doing a application where i need to
predict the amount of space required in sql server to store the user
fed dynamic data.
Look up the "Data types" in Books Online. With this as a starting point,
you should be able to find the storeage consumption fo every data type.


--
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
  #3  
Old   
Dan Guzman
 
Posts: n/a

Default Re: how much bytes needed in sql server - 06-14-2007 , 07:40 AM



To add on to Erland's response, see the Books Online for topics on
estimating table and index size. In addition to the storage requirements of
individual columns, you'll need to add additional overhead for row, page,
etc.

--
Hope this helps.

Dan Guzman
SQL Server MVP

"visu" <k.visube (AT) gmail (DOT) com> wrote

Quote:
Hi i want to know how much bytes will sql server take to store a
single alphabet like "a". i need to know similarly for all data types
(including images).here i am doing a application where i need to
predict the amount of space required in sql server to store the user
fed dynamic data.

Give me a handy solution.

Regards
visu



Reply With Quote
  #4  
Old   
visu
 
Posts: n/a

Default Re: how much bytes needed in sql server - 06-15-2007 , 08:00 AM



On Jun 14, 5:40 pm, "Dan Guzman" <guzma...@nospam-
online.sbcglobal.net> wrote:
Quote:
To add on to Erland's response, see the Books Online for topics on
estimating table and index size. In addition to the storage requirements of
individual columns, you'll need to add additional overhead for row, page,
etc.

--
Hope this helps.

Dan Guzman
SQL Server MVP

"visu" <k.vis... (AT) gmail (DOT) com> wrote in message

news:1181746030.311842.326400 (AT) o11g2000prd (DOT) googlegroups.com...



Hi i want to know how much bytes will sql server take to store a
single alphabet like "a". i need to know similarly for all data types
(including images).here i am doing a application where i need to
predict the amount of space required in sql server to store the user
fed dynamic data.

Give me a handy solution.

Regards
visu- Hide quoted text -

- Show quoted text -
thanks for all the replies...

I dont find any useful books in online..
Can u people suggest some useful URL regarding to my problem ?

Regards
visu



Reply With Quote
  #5  
Old   
Andrew Morton
 
Posts: n/a

Default Re: how much bytes needed in sql server - 06-15-2007 , 10:53 AM



visu wrote:
Quote:
I dont find any useful books in online..
Can u people suggest some useful URL regarding to my problem ?
They are referring to what is (perhaps confusingly) named "SQL Server 2005
Books Online", as noted at the end of Erland's message.
http://technet.microsoft.com/en-us/s.../bb428874.aspx

Andrew




Reply With Quote
  #6  
Old   
Dan Guzman
 
Posts: n/a

Default Re: how much bytes needed in sql server - 06-16-2007 , 08:35 AM



In addition to the web URL, the documentation is also available via local
help. One method to find the relevant topic is by entering "estimating
table size" in the index search.

--
Hope this helps.

Dan Guzman
SQL Server MVP

"visu" <k.visube (AT) gmail (DOT) com> wrote

Quote:
On Jun 14, 5:40 pm, "Dan Guzman" <guzma...@nospam-
online.sbcglobal.net> wrote:
To add on to Erland's response, see the Books Online for topics on
estimating table and index size. In addition to the storage requirements
of
individual columns, you'll need to add additional overhead for row, page,
etc.

--
Hope this helps.

Dan Guzman
SQL Server MVP

"visu" <k.vis... (AT) gmail (DOT) com> wrote in message

news:1181746030.311842.326400 (AT) o11g2000prd (DOT) googlegroups.com...



Hi i want to know how much bytes will sql server take to store a
single alphabet like "a". i need to know similarly for all data types
(including images).here i am doing a application where i need to
predict the amount of space required in sql server to store the user
fed dynamic data.

Give me a handy solution.

Regards
visu- Hide quoted text -

- Show quoted text -

thanks for all the replies...

I dont find any useful books in online..
Can u people suggest some useful URL regarding to my problem ?

Regards
visu



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.