bonjour ,

j'ai un script qui tourne correctement mais en si je le planifie avec le job SQL j'ai ce message d'erreur
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
ate		2/20/2022 9:01:36 AM
Log		Job History (Timing_Import)
Message
Executed as user: xxxx\xxxx DELETE 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.
le script fait seulement une insert après un delete en commençant par un disable du contraint clé étrangère

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
EXEC sp_msforeachtable "ALTER TABLE ? NOCHECK CONSTRAINT all"
 
 
--Link4PLnew.dbo.EdiFactSettingReferenc
SET IDENTITY_INSERT Linknew.dbo.EdiFactSetting   on
delete from Linknew.dbo.EdiFactSetting
insert into   Linknew.dbo.EdiFactSetting (Id,TransacCode,ReferenceCode,IsSend,IsEligible,EdiFactSettingCustomerId,CreationDate,CreationAuthor,LastModificationDate,LastModificationAuthor,EdiFactSettingGroupId)
select Id,TransacCode,ReferenceCode,IsSend,IsEligible,EdiFactSettingCustomerId,CreationDate,CreationAuthor,LastModificationDate,LastModificationAuthor,EdiFactSettingGroupId  
from dbo.EdiFactSetting
SET IDENTITY_INSERT Link4PLnew.dbo.EdiFactSetting  off
Merci