This sounds like it should be a simple task, but I have not been able to find a simple explanation.
I need to create a new table, which will grow to be quite large (approx. 500,000 records). I want to calculate how many pages to assign to the table at creation, and what the next extent size should be.
I know approx. how many records, and columns, and the datatypes of the columns. The create table statement is as follows:
[tt]
CREATE TABLE drsstatsumm
(
stat_yr decimal(2,0),
district_major decimal(10,0),
st_loc decimal(2,0),
art_no char(14),
pur_man_cd decimal(1,0),
ord_qty decimal(14,3),
ord_revenue decimal(12,2),
ord_cost decimal(12,2)
)
IN #>> dbspace ?
EXTENT SIZE #>> size ?
NEXT SIZE #>> size ?
;
[/tt]
Can anyone provide me with a step-by-step calculation ?
Thanks in advance - SteveB.
I need to create a new table, which will grow to be quite large (approx. 500,000 records). I want to calculate how many pages to assign to the table at creation, and what the next extent size should be.
I know approx. how many records, and columns, and the datatypes of the columns. The create table statement is as follows:
[tt]
CREATE TABLE drsstatsumm
(
stat_yr decimal(2,0),
district_major decimal(10,0),
st_loc decimal(2,0),
art_no char(14),
pur_man_cd decimal(1,0),
ord_qty decimal(14,3),
ord_revenue decimal(12,2),
ord_cost decimal(12,2)
)
IN #>> dbspace ?
EXTENT SIZE #>> size ?
NEXT SIZE #>> size ?
;
[/tt]
Can anyone provide me with a step-by-step calculation ?
Thanks in advance - SteveB.