Indexing SQL Server views
I have a base table with customer data. I needed to create two columns of data that were derived from the base table. The only way I could do it was to create a view. I thought, what a great opportunity to use a new SQL Server 2000 view and indexes. So, I created the view, and started to create the indexs, but was immediatly given an error. The problem? I had a dateadd function in one of the new columns. That was a big NO NO! There are a lot of prohibitors when it comes to creating a view and trying to index it. In fact, I can't really see any way to index a view in SQL Server 2000 that isn't almost a mirror of the table.
I found an interesting article on indexing views. Take a look, it was an eye opener.
http://www.sqlteam.com/item.asp?ItemID=1015
--Thom