2017-02-21 6 views
0

Ich habe einen Job, der Teil meines Staging-Prozesses ist, und es umfasst die Indizierung einer Tabelle Post Population.Indexerstellungsjob wegen Angebot fehlgeschlagen

Einer der Indizes ist ein gefilterter Index:

CREATE NONCLUSTERED INDEX [IDX_IP_ActivePAss] ON [dbo].[IPStg] 
(
    [SIP] ASC, 
    [EIP] ASC 
) 
WHERE ([Status] IN ("Active", "Private")) 
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, 
SORT_IN_TEMPDB = OFF, 
DROP_EXISTING = OFF, 
ONLINE = OFF, 
ALLOW_ROW_LOCKS = ON, 
ALLOW_PAGE_LOCKS = ON) 
ON [PRIMARY] 
GO 

Der Auftrag schlägt mit dem folgenden Fehler:

CREATE INDEX failed because the following SET options have incorrect settings: 'QUOTED_IDENTIFIER'. Verify that SET options are correct for use with indexed views and/or indexes on computed columns and/or filtered indexes and/or query notifications and/or XML data type methods and/or spatial index operations. [SQLSTATE 42000] (Error 1934). The step failed.

Bitte beraten.

Antwort

1

Ich würde erwarten, dass einzelne Anführungszeichen nicht doppelt angezeigt werden. Ich denke, es ist ein Tippfehler.

CREATE NONCLUSTERED INDEX [IDX_IP_ActivePAss] ON [dbo].[IPStg] ( 
    [SIP] ASC, 
    [EIP] ASC 
) WHERE ([Status] IN ('Active', 'Private') 
) WITH (PAD_INDEX = OFF, 
     STATISTICS_NORECOMPUTE = OFF, 
     SORT_IN_TEMPDB = OFF, 
     DROP_EXISTING = OFF, 
     ONLINE = OFF, 
     ALLOW_ROW_LOCKS = ON, 
     ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] GO 
+0

Es ist ein Tippfehler, es ist ein einziges Zitat. – Nugeswale

+0

Bitte als beantwortet markieren, wenn Sie zufrieden sind, dass ich Ihre Frage richtig beantwortete – Steve

+0

das Problem besteht auch mit einem einzigen Zitat – Nugeswale

Verwandte Themen