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
 Sql Indexing

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2006-11-10 : 08:15:43
D.Harinath writes "Hi!
What is exact purpose of indexing.How it will increase the performance of the quey.

Can u give me example

*******with code********[not an theory]

For 1)Cluster and Non-Cluster indexing.

when Should use cluster and should not user cluster .What is major diffrence b/w them."

harsh_athalye
Master Smack Fu Yak Hacker

5581 Posts

Posted - 2006-11-10 : 08:21:45
Read about Indexes in BOL. It's such a big topic in itself that can not be answered in just single reply.

Harsh Athalye
India.
"Nothing is Impossible"
Go to Top of Page

snSQL
Master Smack Fu Yak Hacker

1837 Posts

Posted - 2006-11-10 : 14:01:05
If I gave you a name and asked you for that person's phone number - you'd open the phone book and find the number in seconds. If I gave you an address and asked you for that person's phone number, you'd throw the phone book at me.

That's because phone books are indexed by name but not by address.
Go to Top of Page

chiragkhabaria
Master Smack Fu Yak Hacker

1907 Posts

Posted - 2006-11-11 : 02:41:31
Index is somthing similar to the index which we have in the book.

The index at the starting of the page can be linked to the Clustered Indexing, since its extactly state, on which page what material belongs and will only point to the single page.

The Non-Clustered Index can be compared with the References which we have at the end of books, where alphabetically the words are sorted out and if you want to find out somthing you have to scroll through many pages, since its point to many things.

Here are some other links, which may guide you to understand this vast topic's

http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=70451
http://www.sqlskills.com/blogs/kimberly/PermaLink.aspx?guid=bdaee3f7-1e15-414b-b75f-a290db645159
http://blogs.conchango.com/davidportas/archive/2006/05/30/4007.aspx
http://www.sql-server-performance.com/forum/topic.asp?TOPIC_ID=16282&whichpage=2

Chirag

http://chirikworld.blogspot.com/
Go to Top of Page

Kristen
Test

22859 Posts

Posted - 2006-11-11 : 03:32:25
I smell homework ...
Go to Top of Page

Michael Valentine Jones
Yak DBA Kernel (pronounced Colonel)

7020 Posts

Posted - 2006-11-11 : 14:49:01
Classic job interview question.




CODO ERGO SUM
Go to Top of Page
   

- Advertisement -