Hi,
I have a peculiar problem for which I can't seem to find any info. In a DW scenario I have a fact table which is partitioned. To insert/update the table we switch partitions out, then in per day. It all works very well when done with no indexed views on top of the table.
Now, when I have indexed view defined only on the main and switch-in tables things also work just fine. However, if I have indexed views for two different aggregations defined on the main and switch-in tables, I get a message telling me that the target table has 2 indexed views while the source table has 0 matching views.
I have indexed views on the fact table and the switch-in table matching exactly - everything is precisely the same, minus the table name. The clustered indexes are defined on the same partition scheme, etc.
It is weird that they work separately, but not in combination. Is there a reason why this could be happening??
Thanks!
Boyan Penev --- http://www.bp-msbi.com
Give us some candy - please upvote helpful posts and mark your answers!