Hello...
I'm getting VERY odd behavior ever since I added an Indexed view to my system.
If I take the exact code from within a Stored Procedure and run it in Query Analyzer - all works fine.
Now, I take the code and put it into a Stored Procedure (no paratmers - nothing new except the line CREATE PROCEDURE X AS) and I get this error when running the SP:
Server: Msg 1934, Level 16, State 1, Procedure X, Line 11
UPDATE failed because the following SET options have incorrect settings: 'ANSI_NULLS.'.
Now, if I remove the Index from my view - the SP works fine AND the direct Query Analyzer work fine.
This is driving me INSANE !!!!
I don't think Microsoft did a very good job with Indexed Views. I cannot find good documentation and LOTS of quirks.
Anyone seen this behavior ???