Index Corruption Not Getting Fixed By DBREINDEX

Jan 30, 2006

Rob writes "We have had an on-going problem in our production database. It appears to all be index corruption. We've opened a PSS with Microsoft, but I figured I'd post here also. We're getting 604,605 errors as well as DBCC CHECKDB errors. All reports are that either REPAIR_REBUILD or REPAIR_FAST will fix the problem. Since putting the database into single_user mode is not an option at this time, we've just been rebuilding the problem indexes with DBCC DBREINDEX. This typically fixes the problem. Microsoft PSS says they believe that it's hardware problems. We're in the process of updating firmware on our storage device. (MSA 1000) This is a clustered machine. Tonight, our index rebuilds completed successfully, but a DBCC CHECKTABLE failed with 8951 and 8955 errors with the REPAIR_FAST option being supplied. I've rebuilt all the indexes on the table, but the DBCC CHECKTABLE still reports with errors. As a test, I DTS'd a copy of this table to make sure that I would at least be able to run a select * on it. That worked okay. My question is the following: Does the repair option for DBCC CHECKDB/TABLE do something that DBCC DBREINDEX doesn't? Thanks in advance! Rob P.S. This is a Siebel environment. :("

View 3 Replies


ADVERTISEMENT

Dbreindex Vs Index Defrag Question

Mar 9, 2007

Does anyone know if dbreindex and index defrag ideally perform the same function? I have been told that index defrag does not hold locks on a table when executed and dbreindex does. Other than this is there any difference between the two functions? My understanding was that dbreindex reindexes the data stored in a table for faster reads and index defrag removes purged data. Am I correct? I am currently running both functions on my SQL server and was advised that I really only need to run the index defrag job. Is this advise correct?

View 6 Replies View Related

Index Corruption

Jan 8, 2001

We have a table with over 6 million rows. 5 fields define the primary key. Some time ago, we started receiving Integrity Check failure notifications on the indexes for the table. I attempted to "Select into" another table and rebuild the index, but the rebuild fails indicating that there are duplicate keys. How can I find the duplicate key? Any idea on how a duplicate would have been inserted in the first place?

View 1 Replies View Related

Index Corruption Help

May 18, 2001

I started seeing the following error in our 6.5 error log:
-----------------------------------------------------------------
Retrying row fetch: rid(3) > pnextrno(3) (pg 0x23b1b6, obj 0x337fafdd, db 6, stat 100c/1)

Getrow: rid(3) > pnextrno(3) (pg 0x23b1b6, obj 0x337fafdd, db 6, stat 100c/1)

Error : 624, Severity: 20, State: 1
Attempt to retrieve row from page via RID failed because the requested RID has a higher number than the last RID on the page. Rid pageid is 0x3 and row num is 0xffffee20.Page pointer = 0x14104800, pageno = 2339254, status = 0x111, objectid = 864006109, indexid = 0.
------------------------------------------------------------------
I ran dbcc checkdb to locate the problem and found that a non clustered index on one of the tables was corrupt so I recreated the index and no error show up when I run dbcc checkdb.

But the error message still shows up at least once a day. I ran dbcc newalloc and found an allocation discrepency and looking into this right now. Is there anything I can do to speed up my search process to find the exact cause of this problem? I need all the help I can get. Thanks.

View 1 Replies View Related

Index Corruption

Jun 27, 2005

We found the following error 4 times in our SQL Server 2000 Service Pack 4 (SP4) log:

Error: 644, Severity: 21, State: 3
Could not find the index entry for RID '163030314f564d30353034200' in index page (1:40729731), index ID 0, database 'MyDB'..

The last time it happened in the middle of the delete process, previous time during the reading process.
We run checkDB and result is 162 consistency errors in database 'MyDB'. The errors are like that:

Server: Msg 2511, Level 16, State 2, Line 1
Table error: Object ID 1141579105, Index ID 0. Keys out of order on page (1:40729731), slots 14 and 15.
Server: Msg 2512, Level 16, State 1, Line 1
Table error: Object ID 1141579105, Index ID 0. Duplicate keys on page (1:40729731) slot 28 and page (1:40729731) slot 29.
Server: Msg 2511, Level 16, State 1, Line 1
Table error: Object ID 1141579105, Index ID 2. Keys out of order on page (1:41115503), slots 428 and 429.
Server: Msg 2511, Level 16, State 1, Line 1
Table error: Object ID 1141579105, Index ID 2. Keys out of order on page (1:41117738), slots 131 and 132.

What we have to do? Will rebuilding indexes help or we have to do some additional steps? Can Dbcc dbrecover help?
What may be the reason for the problem?

Thank you for your help,
a_k_

View 16 Replies View Related

Index Corruption

Jun 27, 2005

We found the following error 4 times in our SQL Server 2000 Service Pack 4 (SP4) log:

Error: 644, Severity: 21, State: 3
Could not find the index entry for RID '163030314f564d30353034200' in index page (1:40729731), index ID 0, database 'MyDB'..

The last time it happened in the middle of the delete process, previous time during the reading process.
We run checkDB and result is 162 consistency errors in database 'MyDB'. The errors are like that:

Server: Msg 2511, Level 16, State 2, Line 1
Table error: Object ID 1141579105, Index ID 0. Keys out of order on page (1:40729731), slots 14 and 15.
Server: Msg 2512, Level 16, State 1, Line 1
Table error: Object ID 1141579105, Index ID 0. Duplicate keys on page (1:40729731) slot 28 and page (1:40729731) slot 29.
Server: Msg 2511, Level 16, State 1, Line 1
Table error: Object ID 1141579105, Index ID 2. Keys out of order on page (1:41115503), slots 428 and 429.
Server: Msg 2511, Level 16, State 1, Line 1
Table error: Object ID 1141579105, Index ID 2. Keys out of order on page (1:41117738), slots 131 and 132.

What we have to do? Will rebuilding indexes help or we have to do some additional steps? Can Dbcc dbrecover help?
What may be the reason for the problem?

Thank you for your help,
a_k_

View 1 Replies View Related

What Might Cause Index Corruption?

Mar 24, 2006

Hi, I have experience an Index corruption on one table. I'd like to know the root cause so that I can provent it. Here is some information about the table.

1)This records of the table may be frequently Deleted/Inserted/Updated via stored procedures, one record at a time (no bulk operations).

2)I noticed there are unnecessary index on this table. I suspect the cluster Index of ScriptID, non uncluser Index (ProjectID, ScriptID), non-cluster Index (ProjectID) caused the problem.

3)Will this be hardware related?


The following is the output of DBCC CheckTable


Server: Msg 8951, Level 16, State 1, Line 1
Table error: Table 'tblScript' (ID 848774131). Missing or invalid key in index 'IX_tblScript' (ID 2) for the row:
Server: Msg 8955, Level 16, State 1, Line 1
Data row (1:2694:0) identified by (RID = (1:2694:0) ScriptID = 2178) has index values (ProjectID = 1 and ScriptID = 2178 and ScriptID = 2178).
Server: Msg 8951, Level 16, State 1, Line 1
Table error: Table 'tblScript' (ID 848774131). Missing or invalid key in index 'IX_tblScript' (ID 2) for the row:
Server: Msg 8955, Level 16, State 1, Line 1
Data row (1:2694:1) identified by (RID = (1:2694:1) ScriptID = 2179) has index values (ProjectID = 1 and ScriptID = 2179 and ScriptID = 2179).
Server: Msg 8951, Level 16, State 1, Line 1
Table error: Table 'tblScript' (ID 848774131). Missing or invalid key in index 'IX_tblScript' (ID 2) for the row:
Server: Msg 8955, Level 16, State 1, Line 1
Data row (1:2694:2) identified by (RID = (1:2694:2) ScriptID = 2180) has index values (ProjectID = 1 and ScriptID = 2180 and ScriptID = 2180).
Server: Msg 8951, Level 16, State 1, Line 1
Table error: Table 'tblScript' (ID 848774131). Missing or invalid key in index 'IX_tblScript' (ID 2) for the row:
Server: Msg 8955, Level 16, State 1, Line 1
Data row (1:2694:3) identified by (RID = (1:2694:3) ScriptID = 2181) has index values (ProjectID = 1 and ScriptID = 2181 and ScriptID = 2181).
Server: Msg 8951, Level 16, State 1, Line 1
Table error: Table 'tblScript' (ID 848774131). Missing or invalid key in index 'IX_tblScript' (ID 2) for the row:
Server: Msg 8955, Level 16, State 1, Line 1
Data row (1:2694:4) identified by (RID = (1:2694:4) ScriptID = 2182) has index values (ProjectID = 1 and ScriptID = 2182 and ScriptID = 2182).
Server: Msg 8951, Level 16, State 1, Line 1
Table error: Table 'tblScript' (ID 848774131). Missing or invalid key in index 'IX_tblScript' (ID 2) for the row:
Server: Msg 8955, Level 16, State 1, Line 1
Data row (1:2694:5) identified by (RID = (1:2694:5) ScriptID = 2183) has index values (ProjectID = 1 and ScriptID = 2183 and ScriptID = 2183).
Server: Msg 8951, Level 16, State 1, Line 1
Table error: Table 'tblScript' (ID 848774131). Missing or invalid key in index 'IX_tblScript' (ID 2) for the row:
DBCC results for 'tblScript'.
Server: Msg 8955, Level 16, State 1, Line 1
Data row (1:2694:6) identified by (RID = (1:2694:6) ScriptID = 2184) has index values (ProjectID = 1 and ScriptID = 2184 and ScriptID = 2184).
Server: Msg 8951, Level 16, State 1, Line 1
Table error: Table 'tblScript' (ID 848774131). Missing or invalid key in index 'IX_tblScript' (ID 2) for the row:
Server: Msg 8955, Level 16, State 1, Line 1
Data row (1:2694:7) identified by (RID = (1:2694:7) ScriptID = 2185) has index values (ProjectID = 1 and ScriptID = 2185 and ScriptID = 2185).
Server: Msg 8951, Level 16, State 1, Line 1
Table error: Table 'tblScript' (ID 848774131). Missing or invalid key in index 'IX_tblScript' (ID 2) for the row:
Server: Msg 8955, Level 16, State 1, Line 1
Data row (1:2694:8) identified by (RID = (1:2694:8) ScriptID = 2186) has index values (ProjectID = 1 and ScriptID = 2186 and ScriptID = 2186).
Server: Msg 8951, Level 16, State 1, Line 1
Table error: Table 'tblScript' (ID 848774131). Missing or invalid key in index 'IX_tblScript' (ID 2) for the row:
Server: Msg 8955, Level 16, State 1, Line 1
Data row (1:2694:9) identified by (RID = (1:2694:9) ScriptID = 2187) has index values (ProjectID = 1 and ScriptID = 2187 and ScriptID = 2187).
Server: Msg 8951, Level 16, State 1, Line 1
Table error: Table 'tblScript' (ID 848774131). Missing or invalid key in index 'IX_tblScript' (ID 2) for the row:
Server: Msg 8955, Level 16, State 1, Line 1
Data row (1:2694:10) identified by (RID = (1:2694:10) ScriptID = 2188) has index values (ProjectID = 1 and ScriptID = 2188 and ScriptID = 2188).
Server: Msg 8951, Level 16, State 1, Line 1
Table error: Table 'tblScript' (ID 848774131). Missing or invalid key in index 'IX_tblScript' (ID 2) for the row:
Server: Msg 8955, Level 16, State 1, Line 1
Data row (1:2694:11) identified by (RID = (1:2694:11) ScriptID = 2189) has index values (ProjectID = 1 and ScriptID = 2189 and ScriptID = 2189).
Server: Msg 8951, Level 16, State 1, Line 1
Table error: Table 'tblScript' (ID 848774131). Missing or invalid key in index 'IX_tblScript' (ID 2) for the row:
Server: Msg 8955, Level 16, State 1, Line 1
Data row (1:2694:12) identified by (RID = (1:2694:12) ScriptID = 2190) has index values (ProjectID = 1 and ScriptID = 2190 and ScriptID = 2190).
Server: Msg 8951, Level 16, State 1, Line 1
Table error: Table 'tblScript' (ID 848774131). Missing or invalid key in index 'IX_tblScript' (ID 2) for the row:
Server: Msg 8955, Level 16, State 1, Line 1
Data row (1:2694:13) identified by (RID = (1:2694:13) ScriptID = 2191) has index values (ProjectID = 1 and ScriptID = 2191 and ScriptID = 2191).
Server: Msg 8951, Level 16, State 1, Line 1
Table error: Table 'tblScript' (ID 848774131). Missing or invalid key in index 'IX_tblScript' (ID 2) for the row:
Server: Msg 8955, Level 16, State 1, Line 1
Data row (1:2694:14) identified by (RID = (1:2694:14) ScriptID = 2192) has index values (ProjectID = 1 and ScriptID = 2192 and ScriptID = 2192).
Server: Msg 8951, Level 16, State 1, Line 1
Table error: Table 'tblScript' (ID 848774131). Missing or invalid key in index 'IX_tblScript' (ID 2) for the row:
Server: Msg 8955, Level 16, State 1, Line 1
Data row (1:2694:15) identified by (RID = (1:2694:15) ScriptID = 2193) has index values (ProjectID = 1 and ScriptID = 2193 and ScriptID = 2193).
Server: Msg 8951, Level 16, State 1, Line 1
Table error: Table 'tblScript' (ID 848774131). Missing or invalid key in index 'IX_tblScript' (ID 2) for the row:
Server: Msg 8955, Level 16, State 1, Line 1
Data row (1:2694:16) identified by (RID = (1:2694:16) ScriptID = 2194) has index values (ProjectID = 1 and ScriptID = 2194 and ScriptID = 2194).
Server: Msg 8951, Level 16, State 1, Line 1
Table error: Table 'tblScript' (ID 848774131). Missing or invalid key in index 'IX_tblScript' (ID 2) for the row:
Server: Msg 8955, Level 16, State 1, Line 1
Data row (1:2694:17) identified by (RID = (1:2694:17) ScriptID = 2195) has index values (ProjectID = 1 and ScriptID = 2195 and ScriptID = 2195).
Server: Msg 8951, Level 16, State 1, Line 1
Table error: Table 'tblScript' (ID 848774131). Missing or invalid key in index 'IX_tblScript' (ID 2) for the row:
Server: Msg 8955, Level 16, State 1, Line 1
Data row (1:2694:18) identified by (RID = (1:2694:18) ScriptID = 2196) has index values (ProjectID = 1 and ScriptID = 2196 and ScriptID = 2196).
Server: Msg 8951, Level 16, State 1, Line 1
Table error: Table 'tblScript' (ID 848774131). Missing or invalid key in index 'IX_tblScript' (ID 2) for the row:
Server: Msg 8955, Level 16, State 1, Line 1
Data row (1:2694:19) identified by (RID = (1:2694:19) ScriptID = 2197) has index values (ProjectID = 1 and ScriptID = 2197 and ScriptID = 2197).
Server: Msg 8951, Level 16, State 1, Line 1
Table error: Table 'tblScript' (ID 848774131). Missing or invalid key in index 'IX_tblScript' (ID 2) for the row:
Server: Msg 8955, Level 16, State 1, Line 1
Data row (1:2694:20) identified by (RID = (1:2694:20) ScriptID = 2198) has index values (ProjectID = 1 and ScriptID = 2198 and ScriptID = 2198).
Server: Msg 8951, Level 16, State 1, Line 1
Table error: Table 'tblScript' (ID 848774131). Missing or invalid key in index 'IX_tblScript' (ID 2) for the row:
Server: Msg 8955, Level 16, State 1, Line 1
Data row (1:2694:21) identified by (RID = (1:2694:21) ScriptID = 2199) has index values (ProjectID = 1 and ScriptID = 2199 and ScriptID = 2199).
Server: Msg 8951, Level 16, State 1, Line 1
Table error: Table 'tblScript' (ID 848774131). Missing or invalid key in index 'IX_tblScript' (ID 2) for the row:
Server: Msg 8955, Level 16, State 1, Line 1
Data row (1:2694:22) identified by (RID = (1:2694:22) ScriptID = 2200) has index values (ProjectID = 1 and ScriptID = 2200 and ScriptID = 2200).
Server: Msg 8951, Level 16, State 1, Line 1
Table error: Table 'tblScript' (ID 848774131). Missing or invalid key in index 'IX_tblScript' (ID 2) for the row:
Server: Msg 8955, Level 16, State 1, Line 1
Data row (1:2694:23) identified by (RID = (1:2694:23) ScriptID = 2204) has index values (ProjectID = 1 and ScriptID = 2204 and ScriptID = 2204).
Server: Msg 8951, Level 16, State 1, Line 1
Table error: Table 'tblScript' (ID 848774131). Missing or invalid key in index 'IX_tblScript' (ID 2) for the row:
Server: Msg 8955, Level 16, State 1, Line 1
Data row (1:2694:24) identified by (RID = (1:2694:24) ScriptID = 2205) has index values (ProjectID = 1 and ScriptID = 2205 and ScriptID = 2205).
Server: Msg 8951, Level 16, State 1, Line 1
Table error: Table 'tblScript' (ID 848774131). Missing or invalid key in index 'IX_tblScript' (ID 2) for the row:
Server: Msg 8955, Level 16, State 1, Line 1
Data row (1:2694:25) identified by (RID = (1:2694:25) ScriptID = 2207) has index values (ProjectID = 1 and ScriptID = 2207 and ScriptID = 2207).
Server: Msg 8951, Level 16, State 1, Line 1
Table error: Table 'tblScript' (ID 848774131). Missing or invalid key in index 'IX_tblScript' (ID 2) for the row:
Server: Msg 8955, Level 16, State 1, Line 1
Data row (1:2694:26) identified by (RID = (1:2694:26) ScriptID = 2209) has index values (ProjectID = 1 and ScriptID = 2209 and ScriptID = 2209).
Server: Msg 8951, Level 16, State 1, Line 1
Table error: Table 'tblScript' (ID 848774131). Missing or invalid key in index 'IX_tblScript' (ID 2) for the row:
Server: Msg 8955, Level 16, State 1, Line 1
Data row (1:2694:27) identified by (RID = (1:2694:27) ScriptID = 2210) has index values (ProjectID = 1 and ScriptID = 2210 and ScriptID = 2210).
Server: Msg 8951, Level 16, State 1, Line 1
Table error: Table 'tblScript' (ID 848774131). Missing or invalid key in index 'IX_tblScript' (ID 2) for the row:
Server: Msg 8955, Level 16, State 1, Line 1
Data row (1:2694:28) identified by (RID = (1:2694:28) ScriptID = 2211) has index values (ProjectID = 1 and ScriptID = 2211 and ScriptID = 2211).
Server: Msg 8951, Level 16, State 1, Line 1
Table error: Table 'tblScript' (ID 848774131). Missing or invalid key in index 'IX_tblScript' (ID 2) for the row:
Server: Msg 8955, Level 16, State 1, Line 1
Data row (1:2694:29) identified by (RID = (1:2694:29) ScriptID = 2212) has index values (ProjectID = 1 and ScriptID = 2212 and ScriptID = 2212).
Server: Msg 8952, Level 16, State 1, Line 1
Table error: Database 'LDAC_Figgie_Corrupted', index 'tblScript.IX_tblScript' (ID 848774131) (index ID 2). Extra or invalid key for the keys:
Server: Msg 8956, Level 16, State 1, Line 1
Index row (1:3608:105) with values (ProjectID = 1 and ScriptID = 2170 and ScriptID = 2170) points to the data row identified by ().
Server: Msg 8952, Level 16, State 1, Line 1
Table error: Database 'LDAC_Figgie_Corrupted', index 'tblScript.IX_tblScript' (ID 848774131) (index ID 2). Extra or invalid key for the keys:
Server: Msg 8956, Level 16, State 1, Line 1
Index row (1:3608:106) with values (ProjectID = 1 and ScriptID = 2171 and ScriptID = 2171) points to the data row identified by ().
Server: Msg 8952, Level 16, State 1, Line 1
Table error: Database 'LDAC_Figgie_Corrupted', index 'tblScript.IX_tblScript' (ID 848774131) (index ID 2). Extra or invalid key for the keys:
Server: Msg 8956, Level 16, State 1, Line 1
Index row (1:3608:107) with values (ProjectID = 1 and ScriptID = 2173 and ScriptID = 2173) points to the data row identified by ().
Server: Msg 8952, Level 16, State 1, Line 1
Table error: Database 'LDAC_Figgie_Corrupted', index 'tblScript.IX_tblScript' (ID 848774131) (index ID 2). Extra or invalid key for the keys:
Server: Msg 8956, Level 16, State 1, Line 1
Index row (1:3608:108) with values (ProjectID = 1 and ScriptID = 2174 and ScriptID = 2174) points to the data row identified by ().
Server: Msg 8951, Level 16, State 1, Line 1
Table error: Table 'tblScript' (ID 848774131). Missing or invalid key in index 'XIF3tblScript' (ID 4) for the row:
Server: Msg 8955, Level 16, State 1, Line 1
Data row (1:2694:0) identified by (RID = (1:2694:0) ScriptID = 2178) has index values (ProjectID = 1 and ScriptID = 2178).
Server: Msg 8951, Level 16, State 1, Line 1
Table error: Table 'tblScript' (ID 848774131). Missing or invalid key in index 'XIF3tblScript' (ID 4) for the row:
Server: Msg 8955, Level 16, State 1, Line 1
Data row (1:2694:1) identified by (RID = (1:2694:1) ScriptID = 2179) has index values (ProjectID = 1 and ScriptID = 2179).
Server: Msg 8951, Level 16, State 1, Line 1
Table error: Table 'tblScript' (ID 848774131). Missing or invalid key in index 'XIF3tblScript' (ID 4) for the row:
Server: Msg 8955, Level 16, State 1, Line 1
Data row (1:2694:2) identified by (RID = (1:2694:2) ScriptID = 2180) has index values (ProjectID = 1 and ScriptID = 2180).
Server: Msg 8951, Level 16, State 1, Line 1
Table error: Table 'tblScript' (ID 848774131). Missing or invalid key in index 'XIF3tblScript' (ID 4) for the row:
Server: Msg 8955, Level 16, State 1, Line 1
Data row (1:2694:3) identified by (RID = (1:2694:3) ScriptID = 2181) has index values (ProjectID = 1 and ScriptID = 2181).
Server: Msg 8951, Level 16, State 1, Line 1
Table error: Table 'tblScript' (ID 848774131). Missing or invalid key in index 'XIF3tblScript' (ID 4) for the row:
Server: Msg 8955, Level 16, State 1, Line 1
Data row (1:2694:4) identified by (RID = (1:2694:4) ScriptID = 2182) has index values (ProjectID = 1 and ScriptID = 2182).
Server: Msg 8951, Level 16, State 1, Line 1
Table error: Table 'tblScript' (ID 848774131). Missing or invalid key in index 'XIF3tblScript' (ID 4) for the row:
Server: Msg 8955, Level 16, State 1, Line 1
Data row (1:2694:5) identified by (RID = (1:2694:5) ScriptID = 2183) has index values (ProjectID = 1 and ScriptID = 2183).
Server: Msg 8951, Level 16, State 1, Line 1
Table error: Table 'tblScript' (ID 848774131). Missing or invalid key in index 'XIF3tblScript' (ID 4) for the row:
Server: Msg 8955, Level 16, State 1, Line 1
Data row (1:2694:6) identified by (RID = (1:2694:6) ScriptID = 2184) has index values (ProjectID = 1 and ScriptID = 2184).
Server: Msg 8951, Level 16, State 1, Line 1
Table error: Table 'tblScript' (ID 848774131). Missing or invalid key in index 'XIF3tblScript' (ID 4) for the row:
Server: Msg 8955, Level 16, State 1, Line 1
Data row (1:2694:7) identified by (RID = (1:2694:7) ScriptID = 2185) has index values (ProjectID = 1 and ScriptID = 2185).
Server: Msg 8951, Level 16, State 1, Line 1
Table error: Table 'tblScript' (ID 848774131). Missing or invalid key in index 'XIF3tblScript' (ID 4) for the row:
Server: Msg 8955, Level 16, State 1, Line 1
Data row (1:2694:8) identified by (RID = (1:2694:8) ScriptID = 2186) has index values (ProjectID = 1 and ScriptID = 2186).
Server: Msg 8951, Level 16, State 1, Line 1
Table error: Table 'tblScript' (ID 848774131). Missing or invalid key in index 'XIF3tblScript' (ID 4) for the row:
Server: Msg 8955, Level 16, State 1, Line 1
Data row (1:2694:9) identified by (RID = (1:2694:9) ScriptID = 2187) has index values (ProjectID = 1 and ScriptID = 2187).
Server: Msg 8951, Level 16, State 1, Line 1
Table error: Table 'tblScript' (ID 848774131). Missing or invalid key in index 'XIF3tblScript' (ID 4) for the row:
Server: Msg 8955, Level 16, State 1, Line 1
Data row (1:2694:10) identified by (RID = (1:2694:10) ScriptID = 2188) has index values (ProjectID = 1 and ScriptID = 2188).
Server: Msg 8951, Level 16, State 1, Line 1
Table error: Table 'tblScript' (ID 848774131). Missing or invalid key in index 'XIF3tblScript' (ID 4) for the row:
Server: Msg 8955, Level 16, State 1, Line 1
Data row (1:2694:11) identified by (RID = (1:2694:11) ScriptID = 2189) has index values (ProjectID = 1 and ScriptID = 2189).
Server: Msg 8951, Level 16, State 1, Line 1
Table error: Table 'tblScript' (ID 848774131). Missing or invalid key in index 'XIF3tblScript' (ID 4) for the row:
Server: Msg 8955, Level 16, State 1, Line 1
Data row (1:2694:12) identified by (RID = (1:2694:12) ScriptID = 2190) has index values (ProjectID = 1 and ScriptID = 2190).
Server: Msg 8951, Level 16, State 1, Line 1
Table error: Table 'tblScript' (ID 848774131). Missing or invalid key in index 'XIF3tblScript' (ID 4) for the row:
Server: Msg 8955, Level 16, State 1, Line 1
Data row (1:2694:13) identified by (RID = (1:2694:13) ScriptID = 2191) has index values (ProjectID = 1 and ScriptID = 2191).
Server: Msg 8951, Level 16, State 1, Line 1
Table error: Table 'tblScript' (ID 848774131). Missing or invalid key in index 'XIF3tblScript' (ID 4) for the row:
Server: Msg 8955, Level 16, State 1, Line 1
Data row (1:2694:14) identified by (RID = (1:2694:14) ScriptID = 2192) has index values (ProjectID = 1 and ScriptID = 2192).
Server: Msg 8951, Level 16, State 1, Line 1
Table error: Table 'tblScript' (ID 848774131). Missing or invalid key in index 'XIF3tblScript' (ID 4) for the row:
Server: Msg 8955, Level 16, State 1, Line 1
Data row (1:2694:15) identified by (RID = (1:2694:15) ScriptID = 2193) has index values (ProjectID = 1 and ScriptID = 2193).
Server: Msg 8951, Level 16, State 1, Line 1
Table error: Table 'tblScript' (ID 848774131). Missing or invalid key in index 'XIF3tblScript' (ID 4) for the row:
Server: Msg 8955, Level 16, State 1, Line 1
Data row (1:2694:16) identified by (RID = (1:2694:16) ScriptID = 2194) has index values (ProjectID = 1 and ScriptID = 2194).
Server: Msg 8951, Level 16, State 1, Line 1
Table error: Table 'tblScript' (ID 848774131). Missing or invalid key in index 'XIF3tblScript' (ID 4) for the row:
Server: Msg 8955, Level 16, State 1, Line 1
Data row (1:2694:17) identified by (RID = (1:2694:17) ScriptID = 2195) has index values (ProjectID = 1 and ScriptID = 2195).
Server: Msg 8951, Level 16, State 1, Line 1
Table error: Table 'tblScript' (ID 848774131). Missing or invalid key in index 'XIF3tblScript' (ID 4) for the row:
Server: Msg 8955, Level 16, State 1, Line 1
Data row (1:2694:18) identified by (RID = (1:2694:18) ScriptID = 2196) has index values (ProjectID = 1 and ScriptID = 2196).
Server: Msg 8951, Level 16, State 1, Line 1
Table error: Table 'tblScript' (ID 848774131). Missing or invalid key in index 'XIF3tblScript' (ID 4) for the row:
Server: Msg 8955, Level 16, State 1, Line 1
Data row (1:2694:19) identified by (RID = (1:2694:19) ScriptID = 2197) has index values (ProjectID = 1 and ScriptID = 2197).
Server: Msg 8951, Level 16, State 1, Line 1
Table error: Table 'tblScript' (ID 848774131). Missing or invalid key in index 'XIF3tblScript' (ID 4) for the row:
Server: Msg 8955, Level 16, State 1, Line 1
Data row (1:2694:20) identified by (RID = (1:2694:20) ScriptID = 2198) has index values (ProjectID = 1 and ScriptID = 2198).
Server: Msg 8951, Level 16, State 1, Line 1
Table error: Table 'tblScript' (ID 848774131). Missing or invalid key in index 'XIF3tblScript' (ID 4) for the row:
Server: Msg 8955, Level 16, State 1, Line 1
Data row (1:2694:21) identified by (RID = (1:2694:21) ScriptID = 2199) has index values (ProjectID = 1 and ScriptID = 2199).
Server: Msg 8951, Level 16, State 1, Line 1
Table error: Table 'tblScript' (ID 848774131). Missing or invalid key in index 'XIF3tblScript' (ID 4) for the row:
Server: Msg 8955, Level 16, State 1, Line 1
Data row (1:2694:22) identified by (RID = (1:2694:22) ScriptID = 2200) has index values (ProjectID = 1 and ScriptID = 2200).
Server: Msg 8951, Level 16, State 1, Line 1
Table error: Table 'tblScript' (ID 848774131). Missing or invalid key in index 'XIF3tblScript' (ID 4) for the row:
Server: Msg 8955, Level 16, State 1, Line 1
Data row (1:2694:23) identified by (RID = (1:2694:23) ScriptID = 2204) has index values (ProjectID = 1 and ScriptID = 2204).
Server: Msg 8951, Level 16, State 1, Line 1
Table error: Table 'tblScript' (ID 848774131). Missing or invalid key in index 'XIF3tblScript' (ID 4) for the row:
Server: Msg 8955, Level 16, State 1, Line 1
Data row (1:2694:24) identified by (RID = (1:2694:24) ScriptID = 2205) has index values (ProjectID = 1 and ScriptID = 2205).
Server: Msg 8951, Level 16, State 1, Line 1
Table error: Table 'tblScript' (ID 848774131). Missing or invalid key in index 'XIF3tblScript' (ID 4) for the row:
Server: Msg 8955, Level 16, State 1, Line 1
Data row (1:2694:25) identified by (RID = (1:2694:25) ScriptID = 2207) has index values (ProjectID = 1 and ScriptID = 2207).
Server: Msg 8951, Level 16, State 1, Line 1
Table error: Table 'tblScript' (ID 848774131). Missing or invalid key in index 'XIF3tblScript' (ID 4) for the row:
Server: Msg 8955, Level 16, State 1, Line 1
Data row (1:2694:26) identified by (RID = (1:2694:26) ScriptID = 2209) has index values (ProjectID = 1 and ScriptID = 2209).
Server: Msg 8951, Level 16, State 1, Line 1
Table error: Table 'tblScript' (ID 848774131). Missing or invalid key in index 'XIF3tblScript' (ID 4) for the row:
Server: Msg 8955, Level 16, State 1, Line 1
Data row (1:2694:27) identified by (RID = (1:2694:27) ScriptID = 2210) has index values (ProjectID = 1 and ScriptID = 2210).
Server: Msg 8951, Level 16, State 1, Line 1
Table error: Table 'tblScript' (ID 848774131). Missing or invalid key in index 'XIF3tblScript' (ID 4) for the row:
Server: Msg 8955, Level 16, State 1, Line 1
Data row (1:2694:28) identified by (RID = (1:2694:28) ScriptID = 2211) has index values (ProjectID = 1 and ScriptID = 2211).
Server: Msg 8951, Level 16, State 1, Line 1
Table error: Table 'tblScript' (ID 848774131). Missing or invalid key in index 'XIF3tblScript' (ID 4) for the row:
Server: Msg 8955, Level 16, State 1, Line 1
Data row (1:2694:29) identified by (RID = (1:2694:29) ScriptID = 2212) has index values (ProjectID = 1 and ScriptID = 2212).
Server: Msg 8952, Level 16, State 1, Line 1
Table error: Database 'LDAC_Figgie_Corrupted', index 'tblScript.XIF3tblScript' (ID 848774131) (index ID 4). Extra or invalid key for the keys:
Server: Msg 8956, Level 16, State 1, Line 1
Index row (1:3609:105) with values (ProjectID = 1 and ScriptID = 2170) points to the data row identified by ().
Server: Msg 8952, Level 16, State 1, Line 1
Table error: Database 'LDAC_Figgie_Corrupted', index 'tblScript.XIF3tblScript' (ID 848774131) (index ID 4). Extra or invalid key for the keys:
Server: Msg 8956, Level 16, State 1, Line 1
Index row (1:3609:106) with values (ProjectID = 1 and ScriptID = 2171) points to the data row identified by ().
Server: Msg 8952, Level 16, State 1, Line 1
Table error: Database 'LDAC_Figgie_Corrupted', index 'tblScript.XIF3tblScript' (ID 848774131) (index ID 4). Extra or invalid key for the keys:
Server: Msg 8956, Level 16, State 1, Line 1
Index row (1:3609:107) with values (ProjectID = 1 and ScriptID = 2173) points to the data row identified by ().
Server: Msg 8952, Level 16, State 1, Line 1
Table error: Database 'LDAC_Figgie_Corrupted', index 'tblScript.XIF3tblScript' (ID 848774131) (index ID 4). Extra or invalid key for the keys:
Server: Msg 8956, Level 16, State 1, Line 1
Index row (1:3609:108) with values (ProjectID = 1 and ScriptID = 2174) points to the data row identified by ().
There are 2234 rows in 52 pages for object 'tblScript'.
CHECKTABLE found 0 allocation errors and 68 consistency errors in table 'tblScript' (object ID 848774131).
repair_fast is the minimum repair level for the errors found by DBCC CHECKTABLE (LDAC_Figgie_Corrupted.dbo.tblScript ).

View 6 Replies View Related

Possible Index Corruption

Oct 16, 2007

Hi there,

Firstly to give you some background. I’m working for a small company who should (but can’t) employ someone to look after what is becoming a huge database.

I work as a Web Developer and as such my DBA skills will not win any awards!!! I know how to write Stored Procedures and SQL....but I’m not up to speed keeping things working under the hood!

Just recently when deleting lines through SQL Server Management Studio, I am getting and error: could not delete. Possible index corruption. Run DBCC CHECKDB.

Now in the past I did run the above, and the problem still remains. More recently I have clicked on the index and clicked "rebuild". In one such case the fragmentation of the index had reached 92%!!!

There is no maintenance plan as such in place for our DB, and we have several tables with 3+ million lines (Maybe 30-40 tables in the entire DB). Are we crazy??? Are we also very lucky to date that nothing serious has gone wrong?

Is it time to get a DBA in for a few days to sort the above!!!! (All the DBA contractors say yes...)

Thanks in advance.

Justin

View 12 Replies View Related

Index Corruption Issues

Jul 20, 2005

We are having some troubles with corrupt indexes on our SQL 2000dbase.It is only affecting 2 tables out of about 150 we have.These 2 tables are heavily used.We have run dbcc repairs; dropped and recreated indexes but theproblem persistsIs it possible that this ongoing problem is indicative of a hardwareproblem.If so how could we diagnose this?here is a sample of the dbcc check against one of the tables whoseindexes we are having trouble with:thanksJ.C. ClayServer: Msg 8951, Level 16, State 1, Line 1Table error: Table 'page_views' (ID 1436024347). Missing or invalidkey in index 'IX_sessionid' (ID 7) for the row:Server: Msg 8955, Level 16, State 1, Line 1Data row (1:42151:27) identified by (RID = (1:42151:27) ) has indexvalues (session_id = B89F855E-CBB7-4874-A3BD-8D8827ED1481@§_).Server: Msg 8951, Level 16, State 1, Line 1Table error: Table 'page_views' (ID 1436024347). Missing or invalidkey in index 'IX_page_views_nav' (ID 8) for the row:Server: Msg 8955, Level 16, State 1, Line 1Data row (1:42151:27) identified by (RID = (1:42151:27) ) has indexvalues (navigation_id = A9E17BF3-41A6-43EF-8FD6-15C5B5E5E744@§_).Server: Msg 8951, Level 16, State 1, Line 1Table error: Table 'page_views' (ID 1436024347). Missing or invalidkey in index 'IX_page_views_tab_nav' (ID 10) for the row:Server: Msg 8955, Level 16, State 1, Line 1Data row (1:42151:27) identified by (RID = (1:42151:27) ) has indexvalues (tab_navigation_id =6373D50E-EF0B-4084-B8A7-032653E262E2@§_).Server: Msg 8951, Level 16, State 1, Line 1Table error: Table 'page_views' (ID 1436024347). Missing or invalidkey in index 'IX_page_view_id' (ID 11) for the row:Server: Msg 8955, Level 16, State 1, Line 1Data row (1:42151:27) identified by (RID = (1:42151:27) ) has indexvalues (page_view_id = 431E5427-A688-4957-967B-A3466799D94E@§_).DBCC results for 'page_views'.There are 958422 rows in 54595 pages for object 'page_views'.CHECKTABLE found 0 allocation errors and 4 consistency errors in table'page_views' (object ID 1436024347).repair_fast is the minimum repair level for the errors found by DBCCCHECKTABLE (profound.dbo.page_views ).

View 1 Replies View Related

Index Corruption On Table Without Key: What Could Be The Reasons ?

Sep 14, 2005

Dear group,we are running a SQL-Server Database which is about 30 GB large. Thepurpose of this database is to contain periodic data from automaticdevices which insert values into some tables.Unfortunately most of these tables don't have a key (and a key can onlybe introduced when the application programmers have changed theirsoftware). Tables have this structuredeviceno timestamp datawhere we expect for every device and timestamp one row of data.In the ongoing operation it happens that the index of this large tablegets corrupted and a select from this table yields 2 rows for somedevices.In fact a select "SELECT DEVICENO, TIMESTAMP, COUNT(*) FROM TABLE GROUPBY DEVICENO, TIMESTAMP HAVING COUNT(*) > 1" returns lots of data.After rebuild of the indexes the table is "clean" again.What could cause the index corruption ?Missing key?Faulty application program ?a combination of both ?How can i prevent this from happening again, as long as there is noupdated database / application ?I'd be grateful for any useful commentRegardsUli

View 14 Replies View Related

Index Problem In A System Table Needs To Be Fixed

Jun 6, 2000

I run dbcc checkdb on one of my databases and I get the following message....

Server: Msg 2511, Level 16, State 1, Line 0
Table Corrupt: Object ID 12, Index ID 0. Keys out of order on page (1:7364), slots 120 and 121.
CHECKDB found 0 allocation errors and 1 consistency errors in table 'sysdepends' (object ID 12).
CHECKDB found 0 allocation errors and 1 consistency errors in database 'DMBEN'.
repair_fast is the minimum repair level for the errors found by DBCC CHECKDB (DMBEN ).

I then run dbcc checkdb ('DMBEN',repair_rebuild) with no_infomsgs and I get the same messages...nothing was fixed.

Any ideas what I can do now. I tried dropping and recreating the index but the problem is on a system database and SQL won't let me drop the index.

Help.

View 1 Replies View Related

Transact SQL :: Convert Non Fixed Rows To Non Fixed Columns Dynamically?

Oct 5, 2015

I have a table with 3 columns  (ID Int , Name Varchar(25), Course Varchar(20))

My source data looks like below

ID      Name        Course
1        A                Java
1        A                C++
2        B                Java
2        B                SQL Server
2        B                .Net
2        B                 SAP
3        C                 Oracle

My Output should look like below...

ID      Name       Course(1)     Course(2)         Course(3)     Course(4)  

1        A                 Java            C++
2        B                 Java            SQL Server .Net             SAP
3        C                 Oracle

Basically need t-sql to Convert non fixed rows to non fixed columns...

Rule: IF each ID and Name have more than 1 course then show it in new columns as course(1) course(2)..Course(n)

Create SQL:

Create table Sample (ID Int null , Name  Varchar(25) null, Course Varchar(20) null)

Insert SQL:

INSERT Sample (ID, Name, Course)
          VALUES (1,'A','Java'),
                 (1,'A','C++'),
                 (2,'B','Java'),
                 (2,'B','SQL Server'),
                 (2,'B','.Net'),
                 (2,'B','SAP'),
                 (3,'C','Oracle')

View 12 Replies View Related

Difference Between Index Seek && Index Scan && Index Lookup Operations?

Oct 20, 2006

please explain the differences btween this logical & phisicall operations that we can see therir graphical icons in execution plan tab in Management Studio

thank you in advance

View 3 Replies View Related

DBREINDEX - More

Jan 8, 2002

I ran the dbreindex using query analyzer (on the tables mentioned in my previous posting - 1/7/02) and still the scan density remains at 50%.
I do not understand why the dbreindex is not reorging these tables to a
higher scan density.
I used a fill factor of 90%.

View 5 Replies View Related

DBREINDEX

Dec 17, 2001

HI,

I have a database at 30GB, with 'FULL' recovery model. The transaction log backup after a DBREINDEX job on this database is creating a very huge backup file. Any Idea how can I avoid such a huge backup file.

I have tried to change the recovery model to 'Bulk_logged' before DBREINDEX and changed it back to 'FULL'. That sure helped me to avoid the growth of log file. But, that did not help me to reduce the size of the transactional log backup file.

Regards
Chakri

View 1 Replies View Related

Qustion On Dbreindex.

Dec 21, 2001

Is that OK to run dbreindex every 24 hours on heavily modified/inserted tables?Does that harm anyway?Gurus advice needed!
thanks.

View 1 Replies View Related

Dbcc Dbreindex

Jan 7, 2002

We are new to SQL Server and we are currently setting up a job that
does a dbreindex for tables that need it. I got the scripts for this
from swynk. 50 of the tables that needed a dbreindex,
(under 90% scan density) were not impacted by running the dbreindex.
I.e., I ran the dbreindex and it left it at 50% scan density.
The fill factor for these tables is set to 100%.
I tried update stats, updateusage...nothing changes....
I am sure there must be a logical reason as to why the dbreindex
had no impact on these tables. Does any one have any info on this?
Thanks in advance!

View 4 Replies View Related

DBCC DBREINDEX

Mar 21, 2001

I am executing a DBCC DBREINDEX for a table with about
4 million rown in SQL6.5. I has run for about
15 hrs now and is till running.
The index is the PK for the table and it is clustred index.
I ran it on a non clustered index on the same table and it ran for a couple of hrs.
Does any one have any idea how much time it might take for the clustered index?
I heard that this process might take more time and for one of my friends it ran for more than 40 hours.
I don;t have so much if time as th DB has to go for production to night and if not it might effect our businees.
I cancelled DBCC DBREINDEX before by killing the process and the master.DAT file got corrupted.I had to restore everytihng. Does anyone know any work around?
Help appreciated.

Thanks.

View 4 Replies View Related

DBCC DBREINDEX

Jun 11, 2001

Could users use database while running DBCC DBREINDEX for all tables in database?

View 1 Replies View Related

DBCC DBREINDEX ?

Aug 14, 2001

Hi,
I wanted to know is DBCC DBREINDEX is a logged operation?
The reason why I am asking this is, Whenever we create an index or drop an existing it is a logged operation. Is this the same when we do DBCC DBREINDEX? Is it drops existing indexes and creates new indexes. My concern here is about transaction log. If I run a DBCC DBREINDEX on a huge table with lot of indexes, Is it going to fill transaction log?

Any help is appreciated!

Thank you,
Ravi.

View 1 Replies View Related

Dbcc Dbreindex

Nov 7, 2000

About how long should I expect this to run? The Database is 200MB. The table I doing the reindex on has about 800 rows. Is an hour outrageous.. ?

View 1 Replies View Related

Dbcc Dbreindex

Aug 4, 2000

Hello!

SQL Server 7
After database clean up (removing old data)I run dbcc dbreindex.
Is it true I don't need to run UPDATE STATISTICS after DBCC DBREINDEX as since SQL Server 7 runs UPDATE STATISTICS automatically (after dbcc dbreindex).
Thank you.
Anny

View 2 Replies View Related

DBCC DBREINDEX

Mar 21, 2001

I am executing a DBCC DBREINDEX for a table with about
4 million rown in SQL6.5. I has run for about
15 hrs now and is till running.
The index is the PK for the table and it is clustred index.
I ran it on a non clustered index on the same table and it ran for a couple of hrs.
Does any one have any idea how much time it might take for the clustered index?
I heard that this process might take more time and for one of my friends it ran for more than 40 hours.
I don;t have so much if time as th DB has to go for production to night and if not it might effect our businees.
I cancelled DBCC DBREINDEX before by killing the process and the master.DAT file got corrupted.I had to restore everytihng. Does anyone know any work around?
Help appreciated.

Thanks.

View 1 Replies View Related

DBREINDEX:How Does It Work?

Jun 10, 2005

Can anyone shed some light as to how SQL Server performs DBCC DBREINDEX?
Does it use PRIMARY data file space and how much extra data space/log space do we need to have to be able to run this command?

View 2 Replies View Related

Dbcc Dbreindex

Jan 10, 2006

Hi All,

I have a following script:

DECLARE @TableName sysname
DECLARE cur_reindex CURSOR FOR
SELECT table_name
FROM information_schema.tables
WHERE table_type = 'base table'
OPEN cur_reindex
FETCH NEXT FROM cur_reindex INTO @TableName
WHILE @@FETCH_STATUS = 0
BEGIN
PRINT 'Rebuilding indexes ' + @TableName + ' table'
DBCC DBREINDEX (@TableName, ' ', 10)
FETCH NEXT FROM cur_reindex INTO @TableName
END
CLOSE cur_reindex
DEALLOCATE cur_reindex
GO

I added as a step in the job. However, when I run it I get an error message:

Msg 2501, Sev 16: Could not find a table or object named 'table_1'. Check sysobjects. [SQLSTATE 42S02]

When I run
SELECT table_name
FROM information_schema.tables
WHERE table_type = 'base table'

table_1 is the first on list. Any idea why I am getting this error message?

View 5 Replies View Related

Please Help!...Hanging DBREINDEX Job

Feb 24, 2007

I have a scheduled job on my SQL Server 2000 that runs a DBREINDEX job on all the tables in my database. For some reason the system just hangs for hours now when it reaches one particular table. Can somebody please help me to correct the problem. Thank you all in advance.

View 2 Replies View Related

DBCC DBREINDEX Does Nothing

May 17, 2004

Has anyone had the problem with DBCC DBREINDEX on a table/index not doing anything.
You just get the usual "DBCC execution completed. If DBCC printed error messages, contact your system administrator." message.
I have tried:
DBCC DBREINDEX ('<table_name>')
DBCC DBREINDEX (<table_name>)
DBCC DBREINDEX ('<table_name>', '')
DBCC DBREINDEX ('<table_name>', '<index_name>')
DBCC DBREINDEX ('<table_name>', '<index_name>', 80)

Maybe its "optimising" and not thinking anything needs updating.

Should I look for an alternative way of rebuilding an index like dropping and recreating?

The beauty with DBCC DBREINDEX ('<table_name>') would have been that I was going to get the list of user tables in the database and call it for each table to simply rebuild all indexes.

View 5 Replies View Related

DB Maintenance -dbreindex

Apr 19, 2007

We are running a maintenance plan that rebuilds the indexes for all the databases. I have ran showcontig after the maintenance plan and am still seeing fragmentation. Here is one of the master tables that is included in on the maintenance job.
sysobjects table:
pages scanned - 5
extents scanned - 3
extents switches - 3
avg. pages per extent - 1.7
scan density - 25%
logical scan fragmentation - 40%
extent fragmentation - 66.67%
avg.bytes free per page - 1360.4
avg. page density 83.19%
According to what I have read this still seems to be fragmented. What can be done to improve this?

View 11 Replies View Related

DBCC DBREINDEX

Sep 21, 2007



DBCC CHECKDB;
GO
Result:
DBCC results for 'AgentsStateChanges'.
There are 2422697 rows in 46484 pages for object 'AgentsStateChanges'.
CHECKDB found 0 allocation errors and 92 consistency errors in table 'AgentsStateChanges' (object ID 2025058250).

Server: Msg 8934, Level 16, State 3, Line 1
Table error: Object ID 53575229, index ID 1. The high key value on page (1:193625) (level 0) is not less than the low key value in the parent (0:1), slot 0 of the next page (1:269532).
Server: Msg 8935, Level 16, State 1, Line 1
Table error: Object ID 53575229, index ID 1. The previous link (1:269531) on page (1:269532) does not match the previous page (1:193625) that the parent (1:272396), slot 252 expects for this page.
Server: Msg 8936, Level 16, State 1, Line 1
Table error: Object ID 53575229, index ID 1. B-tree chain linkage mismatch. (1:193625)->next = (1:269532), but (1:269532)->Prev = (1:269531).
Server: Msg 2511, Level 16, State 1, Line 1
Table error: Object ID 53575229, Index ID 2. Keys out of order on page (1:266856), slots 14 and 15.
Server: Msg 2511, Level 16, State 1, Line 1
Table error: Object ID 53575229, Index ID 2. Keys out of order on page (1:266856), slots 154 and 155.
Server: Msg 2511, Level 16, State 1, Line 1
Table error: Object ID 53575229, Index ID 2. Keys out of order on page (1:266869), slots 49 and 50.


DBCC DBREINDEX ('Vestel.dbo.AgentsStateChanges', PK_LLAgentFlowSummary, 0);
GO
Result:
Server: Msg 1505, Level 16, State 1, Line 1
CREATE UNIQUE INDEX terminated because a duplicate key was found for index ID 1. Most significant primary key is 'type 24, len 16'.
The statement has been terminated.



PLEASE HELP!;
GO

View 6 Replies View Related

Executing DBCC Dbreindex

Oct 10, 2001

Is it Nessary to disconnect users , go in single user mode to execute
DBCC DBREINDEX in SQL Server 2000 ?

View 2 Replies View Related

Is A Dbcc Dbreindex Logged?

Jan 5, 2001

If I reindex tables on a production server and dump the transaction log then load that tran log to a
warm standby server --will the indices be rebuilt on the standby server? My guess is no,
but I've heard people say otherwise.

--jen

View 1 Replies View Related

Dbcc Dbreindex Failed

Feb 5, 2001

when i run the dbcc dbreindex command it failed and message like this

[Microsoft][ODBC SQL Server Driver][Named Pipes]ConnectionCheckForData (PeekNamedPipe()).
[Microsoft][ODBC SQL Server Driver][Named Pipes]Connection broken.

Connection Broken
please help

View 3 Replies View Related

DBREINDEX/INDEXDEFRAG A Few Questions

Jun 29, 2004

I pretty much understand the differences between DBCC DBREINDEX and DBCC INDEXDEFRAG. However, I need the forums help to understand a few specific issues relating to clustered/non-clustered indexes and the advantages/disadvantages of running the DBCC DBREINDEX/INDEXDEFRAG against the table or against each specific index...

"If a table has a clustered index, it's only necessary to re-index the clustered index because any non-clustered indexes on that table will be automatically re-indexed as well."

I think the above statement is true for DBCC DBREINDEX but is the following statement true for DBCC INDEXDEFRAG:-

"If a table has a clustered index, it's only necessary to Index Defrag the clustered index because any non-clustered indexes on that table will be automatically defragged as well."

Following on from the above, is there any advantage with an index maintenance strategy to individually running DBCC DBREINDEX against each specific index as opposed to running it against the table and letting SQL sort out the underlying indexes? Does the same apply to DBCC INDEXDEFRAG?

Regards,

Clive

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved