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 create index on particular variable in sql?

Author  Topic 

tamancha.1
Starting Member

37 Posts

Posted - 2010-04-19 : 14:55:05
How to create index on particular variable in sql?

GilaMonster
Master Smack Fu Yak Hacker

4507 Posts

Posted - 2010-04-19 : 15:15:52
Don't fully understand the question.

If you mean a table variable, then you can't create indexes on it, other than via primary key or unique constraint defined within the initial definition of the table.

--
Gail Shaw
SQL Server MVP
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2010-04-20 : 01:06:46
or do you mean creating index on table field? if yes, look for CREATE INDEX statement in books online

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page
   

- Advertisement -