Hi, I've developed a simple scheduled task that executes a Stored procedure. When I run the task in debug mode the application writes out the following error message: "17/01/2011 10:11:36,modFunctions,GetData,5,INSERT failed because the following SET options have incorrect settings: 'ARITHABORT'. Verify that SET options are correct for use with indexed views and/or indexes on computed columns and/or query notifications and/or xml data type methods." BUT if i execute the Sp from within SQL itself it runs no problems. Here's the SQL code:SET ANSI_NULLS ONGOSET QUOTED_IDENTIFIER ONGO/*EXEC mp_whsStockWatch_viewsWTableMTS2BKUP# Updated: 22/12/2010 - Because mp_whsStockWatchMTS2BKUP has a computed coulmn added I've had to add SET ARITHABORT ON*/ALTER PROCEDURE [dbo].[mp_whsStockWatch_viewsWTableMTS2BKUP]ASSET ARITHABORT ONBEGININSERT INTO mp_whsStockWatchMTS2BKUPSELECT MAX(Category1) AS Category1, Region, Site, Area, MAX(Category2) AS Category2, MAX(COALESCE(Category3, 'NULL')) AS Category3, MAX(COALESCE(Category7, 'NULL')) AS Category7, Resource, MAX(COALESCE(Description, 'NULL')) AS Description, SUM(Quantity) AS Quantity, MAX(UM) AS UM, SUM(EURValue) AS EURValue, SUM(GBPValue) AS GBPValue, MAX(Price) AS Price, MAX(Currency) AS Currency, QAStatus, Days, CAST(CONVERT(DATETIME,GETDATE(),105) AS VARCHAR(35)) AS CurrDate, AgeFROM mp_whsStockWatchVw1GROUP BY Region, Site, Area, Resource, UM, QAStatus, Days, AgeORDER BY Category1ENDGOSET ANSI_NULLS OFFGOSET QUOTED_IDENTIFIER OFFGO
Any ideas why the app can't execute the SP?