Solved

indid = 255 and impid = -1

Posted on 2006-11-02
4
840 Views
Last Modified: 2007-12-19
I have a few indexes from an inherited database that have the values in the sysindexes table of impid = -1 and indid = 255.  The names of the indexes are not in the table itself.  Were these indexes that had been dropped?  What does indid = 255 mean?  what does impid = -1 mean?
0
Comment
Question by:KathleenR
  • 2
4 Comments
 
LVL 142

Expert Comment

by:Guy Hengel [angelIII / a3]
ID: 17857943
>What does indid = 255 mean?  
Indid 255 are holders in sysindexes for text, ntext and image data.

>Were these indexes that had been dropped?  
no

>what does impid = -1 mean?
column impid = -1 has no meaning for these
0
 

Author Comment

by:KathleenR
ID: 17858008
so how is it these indexes are in the sysindexes table but when I go to manage indexes on the table they are not there or when I try to do a dbcc indexdefrag the command errors on those index names?

0
 
LVL 142

Accepted Solution

by:
Guy Hengel [angelIII / a3] earned 500 total points
ID: 17858067
they are not normal indexes, as said they are system (internal) indexes. they are to keep the correlation between the table rows and the text, ntext and image data which are not inline with the rows on the same pagees, but on other pages.
you don't need to dbcc indexdefrag those, simply ignore them
0
 
LVL 29

Expert Comment

by:Gautham Janardhan
ID: 17858111
select sysobjects.name,sysindexes.name, * from sysindexes, sysobjects where sysindexes.id = sysobjects.id
and xtype = 'u'

this will give u the name of the table or view which is indexed
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction In my previous article (http://www.experts-exchange.com/Microsoft/Development/MS-SQL-Server/SSIS/A_9150-Loading-XML-Using-SSIS.html) I showed you how the XML Source component can be used to load XML files into a SQL Server database, us…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
Via a live example, show how to extract information from SQL Server on Database, Connection and Server properties

914 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now