Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

HEAP index ???? Expand / Collapse
Author
Message
Posted Thursday, March 21, 2013 11:25 AM
SSC Veteran

SSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC Veteran

Group: General Forum Members
Last Login: Monday, May 5, 2014 8:20 AM
Points: 201, Visits: 405
CAn you please help me figure this one out??

In MS, I am looking at the table and see no indexes there...
However, running this select and get the following result:

SELECT * FROM SYS.INDEXES I WHERE I.object_id = object_id('TABLENAME')


object_id
927342368
name
NULL
index_id
0
type
0
type_desc
HEAP
is_unique
0
data_space_id
1
ignore_dup_key
0
is_primary_key
0
is_unique_constraint
0





Post #1433932
Posted Thursday, March 21, 2013 11:31 AM


SSC-Insane

SSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-Insane

Group: General Forum Members
Last Login: Today @ 2:18 PM
Points: 20,755, Visits: 32,571
In the sys.indexes table an index_id of 0 indicates that the table is a heap, no clustered index. An index_id of 1 indicates that there is a clustered index. These two values are mutually exclusive. A table is either a heap or has a clustered index (i.e. the table).



Lynn Pettis

For better assistance in answering your questions, click here
For tips to get better help with Performance Problems, click here
For Running Totals and its variations, click here or when working with partitioned tables
For more about Tally Tables, click here
For more about Cross Tabs and Pivots, click here and here
Managing Transaction Logs

SQL Musings from the Desert Fountain Valley SQL (My Mirror Blog)
Post #1433936
Posted Thursday, March 21, 2013 12:07 PM
SSC Veteran

SSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC Veteran

Group: General Forum Members
Last Login: Monday, May 5, 2014 8:20 AM
Points: 201, Visits: 405
thank you
got it



Post #1433952
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse