Quantcast
Channel: Forum SQL Server Database Engine
Viewing all articles
Browse latest Browse all 15694

How to Calculate Overhead Bytes for 1 Table

$
0
0

HERE why will be overhead of 7 bytes or how to calculate overhead?

======================================================================

-- Create a table with 393 length + 7 bytes overhead = 400 bytes
-- Therefore 20 records can be stored on one page (8.096 / 400) = 20,24
CREATE TABLE CustomersHeap
(
    CustomerID INT NOT NULL,
    CustomerName CHAR(100) NOT NULL,
    CustomerAddress CHAR(100) NOT NULL,
    Comments CHAR(189) NOT NULL
)
 


Manish


Viewing all articles
Browse latest Browse all 15694

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>