dbTalk Databases Forums  

SQL Server Scanning Tables

comp.databases.ms-sqlserver comp.databases.ms-sqlserver


Discuss SQL Server Scanning Tables in the comp.databases.ms-sqlserver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Miks
 
Posts: n/a

Default SQL Server Scanning Tables - 03-10-2006 , 08:26 AM






Hi,

When we make a search for a table in SQL Server 2000

sysindexes table is searched and indid field is checked,

If it's 0 we go for full table scan (No Indexes Present)

If it's 1 it means clustured index column is used for search.

2-254 means non-clustred indexes used.

Thank you very much for taking time and replying.

Thank you,
Miks


Reply With Quote
  #2  
Old   
Dan Guzman
 
Posts: n/a

Default Re: SQL Server Scanning Tables - 03-12-2006 , 07:19 AM






What is your question?

SQL Server may choose to use available indexes in different ways depending
on the query. A scan of the entire clustered index is the same as a
scanning of a table without a clustered index.

--
Hope this helps.

Dan Guzman
SQL Server MVP

"Miks" <akmeera2k4 (AT) gmail (DOT) com> wrote

Quote:
Hi,

When we make a search for a table in SQL Server 2000

sysindexes table is searched and indid field is checked,

If it's 0 we go for full table scan (No Indexes Present)

If it's 1 it means clustured index column is used for search.

2-254 means non-clustred indexes used.

Thank you very much for taking time and replying.

Thank you,
Miks




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.