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

x
?
Solved

SQL 2008 server indexes dissappears

Posted on 2016-11-02
5
Medium Priority
?
22 Views
Last Modified: 2016-11-08
Hi

We have some indexes that seems to disappear without any interaction from us.

One of the indexes is created like this (it has disappered 4 times last month)

      CREATE NONCLUSTERED INDEX IDX_WMSORDERTRANS_HTSYSTEM
      ON [dbo].[WMSORDERTRANS] ([EXPEDITIONSTATUS],[DATAAREAID])
      INCLUDE ([INVENTTRANSID])

To us it looks standard but still it disappears?

/Henrik
0
Comment
Question by:HenrikVang
  • 3
  • 2
5 Comments
 
LVL 35

Expert Comment

by:Pawan Kumar
ID: 41869774
Some one must have deleted the index - Manually/Via Job/Script. I dont think index just disappears.

Try this and see if exists

SELECT * 
FROM sys.indexes 
WHERE name='IDX_WMSORDERTRANS_HTSYSTEM' AND object_id = OBJECT_ID('WMSORDERTRANS')

Open in new window


Are you the DB Owner ?
0
 
LVL 35

Assisted Solution

by:Pawan Kumar
Pawan Kumar earned 2000 total points
ID: 41871572
Hi HenrikVang,

Any update on this?

Regards,
Pawan
0
 

Accepted Solution

by:
HenrikVang earned 0 total points
ID: 41871826
Hi Pawan
I just found the solution - our AX2009 cleans all indexes when a table is updated and create only the indexes that is registred in AX and not the ones that was created in SQL management

/Henrik
0
 
LVL 35

Expert Comment

by:Pawan Kumar
ID: 41871831
Yes see i told you!! Some one must have deleted the index

Great Enjoy!

Bye
Pawan
0
 

Author Closing Comment

by:HenrikVang
ID: 41878486
The solution has nothing with sql server do do
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

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

Naughty Me. While I was changing the database name from DB1 to DB_PROD1 (yep it's not real database name ^v^), I changed the database name and notified my application fellows that I did it. They turn on the application, and everything is working. A …
This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…
Loops Section Overview

885 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