I have tried to schedule an sql query it failed,and the error that I got was,
Update failed because the following SET 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).
I have this solution
Add SET QUOTED_IDENTIFIER ON
before your UPDATE statements in SQL Job step.
But, what does SET QUOTED_IDENTIFIER ON
do ?
Could someone explain it to me?
Thanks
EDIT 1; I tried the above , the scheduled query executed , but did not change an of the fields anything?
The Query is use;
SET QUOTED_IDENTIFIER ON
update dbo.myTable
set name=[dbo].[functName](name);
If I run a normal UPDATE
query ,
update dbo.myTable
set name=[dbo].[functName](name);
It works, and fields are changed.
Why would it not work in the scheduled query?
Thanks