請參閱:
http://support.microsoft.com/default.aspx?kbid=305333
INSERT failed because the following SET options have incorrect settings: 'ARITHABORT'
這是因為要去 insert 資料至有 indexed view 內的資料表時, 會有這樣的問題, 所以必須設置 'ARITHABORT ON' 即可, 可利用以下方式實作:
MyConnection.Execute "SET ARITHABORT ON"
[MSSQL]使用indexed view發生'ARITHABORT'設置問題
[MSSQL]使用indexed view發生'ARITHABORT'設置問題
多多留言, 整理文章, 把經驗累積下來.....