SQLSERVER-CLASS14(INDEXES)
SQLSERVER-CLASS14(INDEXES)
Sql server store data in it under data pages where a datapage is a minuta for storing of
information.a datapage will be having a size of 8kb and all data pages are stored under
a logical container.
Whenever database engine want to retrive the information from table.it will
1. Full page scan: In this first case sql servere will search for requiered
information in each and every page to collect the information so if the table
has more rows it will be taking lot of time for scanning.
2. Index scan : In this second case sql server without searching into each and
every datapage for retrive data it will make use of an index for retrive
information,where an index is a pointer to the information what we are retrive
which can reduce disk I/O operations and saving time but we want to use
index scan for searching the database first the index has to created.
Syntax:
Non – clustered index: In this case the arrangement of the data in the index table will
be not same as arrangement of the data of actual table.
Index used by the sql server to speed up the retrival ,manipulate of rows.
Specification of an index:-