I am getting the following error on a very basic update query when it is executed as job in SQL Server 2008. It runs as expected when I run it manually in SSMS. Can somebody help me figure out what is going on to cause this? The database settings have Quoted Identifiers Enabled set to False. I have tried adding SET QUOTED_IDENTIFIERS TRUE to the job and that did not work either.
UPDATE 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.
The query is as follows (table and column names have been changed to protect the innocent)
UPDATE Table1
SET Column1 = 'C'
WHERE col_status = 'A' AND emp_number
IN (SELECT emp_number
FROM Table2
WHERE emp_status = 'T')