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
 Other SQL Server 2008 Topics
 Two Issues Needs to be answered

Author  Topic 

fasihakbar590
Starting Member

4 Posts

Posted - 2010-12-15 : 11:11:04
Hi,

Issue 1:-
If I have 2 millions records in a database table in SQL Server and I want to search some specific record from that table.
My question is that how I should go for search so that Server should not be hanged up. And performance wise what is the best way to search that record?

Issue 2:-
Can anyone please send me the Link of some article which will explain completely the "Clustered and Non-Clustered indexes". And how we can implement these two practically? It will be highly appreciated if that article explain with Snap Shots/Images.

Thanks & Regards in advance,
M.Fasih

fasihakbar590

russell
Pyro-ma-ni-yak

5072 Posts

Posted - 2010-12-15 : 11:33:02
Proper indexes and SARGable queries are the answer to your first question.

If you Google the term "Clustered Index" you'll get thousands of results.

Have a look at these 2 articles

http://www.sql-server-performance.com/articles/per/index_data_structures_p1.aspx

http://www.sql-server-performance.com/tips/t_sql_where_p2.aspx
Go to Top of Page

fasihakbar590
Starting Member

4 Posts

Posted - 2010-12-15 : 11:40:52
quote:
Originally posted by russell

Proper indexes and SARGable queries are the answer to your first question.

If you Google the term "Clustered Index" you'll get thousands of results.

Have a look at these 2 articles

http://www.sql-server-performance.com/articles/per/index_data_structures_p1.aspx

http://www.sql-server-performance.com/tips/t_sql_where_p2.aspx



I could not found good article among Thousands of google results.
So that's why asking for easy and more understandable article if someone knows about it.

Thanks,
Fasih

fasihakbar590
Go to Top of Page

russell
Pyro-ma-ni-yak

5072 Posts

Posted - 2010-12-15 : 11:44:01
Ok, please review the 2 I posted. Hope this helps.
Go to Top of Page

GilaMonster
Master Smack Fu Yak Hacker

4507 Posts

Posted - 2010-12-15 : 16:24:21
Try this three-part series
http://www.sqlservercentral.com/articles/Indexing/68439/

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

- Advertisement -