Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

indid = 255 and impid = -1

Posted on 2006-11-02
4
Medium Priority
?
893 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 143

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 143

Accepted Solution

by:
Guy Hengel [angelIII / a3] earned 2000 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

In this article we will learn how to fix  “Cannot install SQL Server 2014 Service Pack 2: Unable to install windows installer msi file” error ?
This month, Experts Exchange sat down with resident SQL expert, Jim Horn, for an in-depth look into the makings of a successful career in SQL.
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function
Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.

879 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