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 2008 Forums
 Transact-SQL (2008)
 Temp Table Or View..

Author  Topic 

Sonu619
Posting Yak Master

202 Posts

Posted - 2013-02-21 : 00:10:58
Hi Guys,

I am having a problem with my SP, taking extra time to execute. I am using VIEW that has I believe 334k rows. I am wondering what do you guys think its a good idea if i create #temp table and Create Index On it and use this temp table all over Instead of View. I can't create index on View.

Do you guys think its improve the performance or worse.

Any advise?

Thanks in advance...

bandi
Master Smack Fu Yak Hacker

2242 Posts

Posted - 2013-02-21 : 01:04:07
It depends on your operations ...
http://social.msdn.microsoft.com/Forums/en-US/sqldatabaseengine/thread/2fd2dc91-3fce-481e-a82b-1f1e0048b1d2/

--
Chandu
Go to Top of Page
   

- Advertisement -