SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Why Page Number in SQL Server database is not starting from zero


Why Page Number in SQL Server database is not starting from zero

Author
Message
info.sqldbamail
info.sqldbamail
Ten Centuries
Ten Centuries (1.4K reputation)Ten Centuries (1.4K reputation)Ten Centuries (1.4K reputation)Ten Centuries (1.4K reputation)Ten Centuries (1.4K reputation)Ten Centuries (1.4K reputation)Ten Centuries (1.4K reputation)Ten Centuries (1.4K reputation)

Group: General Forum Members
Points: 1401 Visits: 278
I have a question on SQL Server page, I have created a new database with only one new table as below

Here is the Code:

CREATE TABLE PAGETEST
(
ID int primary key
)
GO
INSERT INTO PAGETEST VALUES (200)


When i see my staring page number= FileID:pagenumber it is starting 1:285
Q 1). Why my page not starting from 1:0 or 1:001?
Q 2).Will this page number have dependency from model database? Kindly find the below images
Kindly find images below





---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Save a tree... Please don't waste paper unless you really need to!

When life puts into problem don't say 'God Why Me' sayw00t 'Try Me'
GilaMonster
GilaMonster
SSC Guru
SSC Guru (842K reputation)SSC Guru (842K reputation)SSC Guru (842K reputation)SSC Guru (842K reputation)SSC Guru (842K reputation)SSC Guru (842K reputation)SSC Guru (842K reputation)SSC Guru (842K reputation)

Group: General Forum Members
Points: 842630 Visits: 48504
While it may be a new database, the system tables were there before you created the user table, hence the first couple hundred pages are already allocated.

Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

We walk in the dark places no others will enter
We stand on the bridge and no one may pass


Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum








































































































































































SQLServerCentral


Search