Link to home
Start Free TrialLog in
Avatar of Henrik Vang Poulsen
Henrik Vang PoulsenFlag for Denmark

asked on

SQL 2008 server indexes dissappears

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
Avatar of Pawan Kumar
Pawan Kumar
Flag of India image

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 ?
SOLUTION
Avatar of Pawan Kumar
Pawan Kumar
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Yes see i told you!! Some one must have deleted the index

Great Enjoy!

Bye
Pawan
Avatar of Henrik Vang Poulsen

ASKER

The solution has nothing with sql server do do