Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 Transact-SQL (2005)
 HOW TO INDEX EXISTING VIEWS?

Author  Topic 

anabelle
Starting Member

19 Posts

Posted - 2009-01-30 : 03:52:33
Hello Everyone!!!!

I'lld like to seek for help, i'lld like to optimize my views, according to our programmer i have to index it or use tuning advisor, i'lld like to know if how wud i index the existing views created on my sql server database 2005, because the retrieval of records is very slow.

example i have created a views on dbo.VFruits, it has a column FruitName,FruitQty,FruitPrice and etc...do i need to create a code for that? so that everytime i run that code it will make a faster retrieval of my records, oris there any script needed to created inorder to automatcically index my views which is dbo.VFruits? so that i wont run the script everytime i will retrieve my records???

Please anyone cud help i am still confuse on this...i'lld like to see the effect after the script...Thank You so Much...Please help Me...

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2009-01-30 : 03:58:23
Creating an indexed view is not an easy matter. There are some 20 steps to follow.
See http://www.microsoft.com/technet/prodtechnol/sql/2005/impprfiv.mspx



E 12°55'05.63"
N 56°04'39.26"
Go to Top of Page
   

- Advertisement -