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
 General SQL Server Forums
 New to SQL Server Programming
 Index Row?

Author  Topic 

Thanh Minh
Starting Member

8 Posts

Posted - 2007-10-04 : 06:15:02
How do I return index of a row in table by statement SQL?

harsh_athalye
Master Smack Fu Yak Hacker

5581 Posts

Posted - 2007-10-04 : 06:23:43
What do you mean by "Turning over Index"?

Harsh Athalye
India.
"The IMPOSSIBLE is often UNTRIED"
Go to Top of Page

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2007-10-04 : 06:39:26
Do you mean if the column is indexed or not?



E 12°55'05.25"
N 56°04'39.16"
Go to Top of Page

elancaster
A very urgent SQL Yakette

1208 Posts

Posted - 2007-10-04 : 06:42:44
or do you actually mean you're trying to find out a 'row number'?

Em
Go to Top of Page

harsh_athalye
Master Smack Fu Yak Hacker

5581 Posts

Posted - 2007-10-04 : 06:53:20
[code]exec sp_helpindex 'tablename'[/code]

The index is created for entire table not for individual rows.

Harsh Athalye
India.
"The IMPOSSIBLE is often UNTRIED"
Go to Top of Page

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2007-10-04 : 07:09:47
Also see http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=90466



E 12°55'05.25"
N 56°04'39.16"
Go to Top of Page
   

- Advertisement -