Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

An INT datatype is 4 bytes.... Is that 4bytes per entry...

Posted on 2011-02-15
5
Medium Priority
?
476 Views
Last Modified: 2012-05-11
An INT datatype is 4 bytes.... Is that 4bytes per entry...

Example 10 INT entries =  10 bytes?
0
Comment
Question by:Mr_Shaw
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 39

Accepted Solution

by:
Pratima Pharande earned 1000 total points
ID: 34894942
yes
10 INT entries =  40 bytes
0
 
LVL 50

Assisted Solution

by:Lowfatspread
Lowfatspread earned 500 total points
ID: 34894957
yes basically (plus any additional overhead)

so 10 integer columns  = 40 bytes (minimum)
0
 
LVL 18

Assisted Solution

by:Cluskitt
Cluskitt earned 500 total points
ID: 34894967
Basically, when you say that a variable is x bytes, it means that, when you declare that variable, x bytes of RAM (or filepage, but to simplify, assume RAM) are reserved for exclusive use of that variable.
0
 
LVL 39

Assisted Solution

by:Pratima Pharande
Pratima Pharande earned 1000 total points
ID: 34894987
0
 

Author Closing Comment

by:Mr_Shaw
ID: 34895308
thanks
0

Featured Post

Get free NFR key for Veeam Availability Suite 9.5

Veeam is happy to provide a free NFR license (1 year, 2 sockets) to all certified IT Pros. The license allows for the non-production use of Veeam Availability Suite v9.5 in your home lab, without any feature limitations. It works for both VMware and Hyper-V environments

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
Recently we ran in to an issue while running some SQL jobs where we were trying to process the cubes.  We got an error saying failure stating 'NT SERVICE\SQLSERVERAGENT does not have access to Analysis Services. So this is a way to automate that wit…
Via a live example, show how to set up a backup for SQL Server using a Maintenance Plan and how to schedule the job into SQL Server Agent.
Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.

618 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question