Foutmelding ANSI_WARNINGS (MSSQL)

Status
Niet open voor verdere reacties.

michielkuiper

Gebruiker
Lid geworden
30 dec 2010
Berichten
11
Wij maken gebruik van database die draait op MS SQL server 2012.
Bij het uitvoeren van een job krijgen we de foutmelding:

Foutmelding: DELETE failed because the following SET options have incorrect setting: 'ANSI_WARNINGS'.
Verify that SET options are correct for use with indexed 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.


Via google heb ik al eea gevonden betreft deze fout. Zo heb ik bijvoorbeeld al geprobeerd om de ANSI_WARNINGS
instellingen aan te passen (SQL Server Management Studio - SET ANSI_WARNINGS ON/OFF of via Server Properties >
Connections tab).

Helaas zonder resultaat en ik kom momenteel niet zo veel verder.

Wij draaien met
Microsoft SQL Server Management Studio 11.0.5058.0
Microsoft Analysis Services Client Tools 11.0.5058.0
Microsoft Data Access Components (MDAC) 6.1.7601.17514
Microsoft MSXML 3.0 6.0
Microsoft Internet Explorer 9.11.9600.17501
Microsoft .NET Framework 4.0.30319.18444
Operating System 6.1.7601

Op een Microsoft Windows server 2008 R2.

Heeft er iemand nog een idee wat we kunnen aanpassen of weet iemand wat de oplossing is?
Dan hoor ik dat graag. Ieder geval alvast bedankt voor de moeite.
 
Considerations When You Use the SET Statements

[…]When you are creating and manipulating indexes on computed columns or indexed views, the SET options ARITHABORT, CONCAT_NULL_YIELDS_NULL, QUOTED_IDENTIFIER, ANSI_NULLS, ANSI_PADDING, and ANSI_WARNINGS must be set to ON. The option NUMERIC_ROUNDABORT must be set to OFF.

If any one of these options is not set to the required values, INSERT, UPDATE, DELETE, DBCC CHECKDB and DBCC CHECKTABLE actions on indexed views or tables with indexes on computed columns will fail. SQL Server will raise an error listing all the options that are incorrectly set. Also, SQL Server will process SELECT statements on these tables or indexed views as if the indexes on computed columns or on the views do not exist.
Bron: deze

SAMENGEVAT: Je moet juist ANSI_WARNINGS op ON zetten, omdat die wordt vermeld in de foutmelding. Zal voldoende zijn als je in de TSQL/isql broncode van je job toevoegt, lijkt mij.

Tijs.
 
Laatst bewerkt:
Status
Niet open voor verdere reacties.
Terug
Bovenaan Onderaan