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)
 Help on creating index

Author  Topic 

pmotewar
Yak Posting Veteran

62 Posts

Posted - 2009-04-29 : 06:24:59
Hi,
I am New to sql server. i want to create index on Local temporary and global temporary table ?
how can i create.
any halp appriciated.

Pankaj

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2009-04-29 : 06:51:07
Same as with other tables (except table variabled).

CREATE INDEX MyIndexNameHere ON MyTableNameHere (MyColumnNamesHere)
INCLUDE (OtherColumnNamesHere)



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

pmotewar
Yak Posting Veteran

62 Posts

Posted - 2009-04-29 : 08:22:51
Thanx dear

Pankaj
Go to Top of Page
   

- Advertisement -