ARITHABORT Error

  • Hi,

    I Am getting following error:

    Error Message: Error Message 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. : System.Data.SqlClient.SqlException: 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.

    I tried adding these SET, but still getting the error. Any solutions please.

    SET ARITHABORT ON

    GO

    SET CONCAT_NULL_YIELDS_NULL ON

    GO

    SET QUOTED_IDENTIFIER ON

    GO

    SET ANSI_NULLS ON

    GO

    SET ANSI_PADDING ON

    GO

    SET ANSI_WARNINGS ON

    GO

    SET NUMERIC_ROUNDABORT OFF

    go

  • How is the insert being accomplished, actual T-SQL command or inside a stored procedure?

  • Insert in done through a stored procedure. Stored procedure does use this view, it just references the table.

    But, the table is referenced in a view, which has a indexed on it.

    Thanks,

    VG

  • VG-619426 (10/7/2009)


    Insert in done through a stored procedure. Stored procedure does use this view, it just references the table.

    But, the table is referenced in a view, which has a indexed on it.

    Thanks,

    VG

    The stored proc may not have been created with the SET options set as needed for updating an indexed view.

  • You mean, I should use these SET statements in the stored proc, where the table references are made.

    SET ARITHABORT ON

    GO

    SET CONCAT_NULL_YIELDS_NULL ON

    GO

    SET QUOTED_IDENTIFIER ON

    GO

    SET ANSI_NULLS ON

    GO

    SET ANSI_PADDING ON

    GO

    SET ANSI_WARNINGS ON

    GO

    SET NUMERIC_ROUNDABORT OFF

    Thanks,

    VG

  • That (without the GO's) or ensure the stored procedure is created with those options set appropriately.

  • Thanks Lynn. Let me try this.

    -VG

  • Nope, I added those set statements before create stored proc statement ,but still getting the same error...

Viewing 8 posts - 1 through 7 (of 7 total)

You must be logged in to reply to this topic. Login to reply