December 21, 2006 at 11:11 pm
Hi.
SQL's answer to the "Oracle Materialised view" is the "SQL Indexed View"
See:
http://www.microsoft.com/technet/prodtechnol/sql/2005/ipsql05iv.mspx
December 21, 2006 at 11:22 pm
Rajesh,
What feeds the proc you just posted? A GUI, a batch job, another proc? or ???
--Jeff Moden
Change is inevitable... Change for the better is not.
December 21, 2006 at 11:38 pm
Yes I ran the Index Tuning Wizard which recommended a clustered Index on ATTRIBUTE_ID
December 21, 2006 at 11:39 pm
I use GUI to run the wizard...
December 21, 2006 at 11:40 pm
Sorry I use a GUI to feed the Proc.
December 22, 2006 at 1:48 am
Raj
I think you said earlier that you'd tried with an index on that column and there was no improvement. Please will you post an execution plan for when you have no index on the column, then create an index (I would recommend non-clustered unless (a) you don't already have a clustered index and (b) the table rarely or never gets updated - unlikely as you said it's increasing expontentially). Post the code that you used to create the index. Then run dbcc freeeproccache and post the execution plan for the query again.
By the way, is auto update statistics enabled for your database?
I don't recommend doing the above on a production server during business hours since it may have an adverse effect on your application or other applications using the same server.
John
Viewing 6 posts - 16 through 20 (of 20 total)
You must be logged in to reply to this topic. Login to reply