Solved

SQL 2008 server indexes dissappears

Posted on 2016-11-02
5
16 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 28

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 28

Assisted Solution

by:Pawan Kumar
Pawan Kumar earned 500 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 28

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

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

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

There have been several questions about Large Transaction Log Files in SQL Server 2008, and how to get rid of them when disk space has become critical. This article will explain how to disable full recovery and implement simple recovery that carries…
In this article I will describe the Backup & Restore method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…

810 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