Solved

SQL 2008 server indexes dissappears

Posted on 2016-11-02
5
19 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

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 …
In this article I will describe the Detach & Attach 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 is a high-level webinar that covers the history of enterprise open source database use. It addresses both the advantages companies see in using open source database technologies, as well as the fears and reservations they might have. In this…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

729 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