Solved

choose between clustered,nonclustered,etc... index in 2012

Posted on 2013-10-31
2
202 Views
Last Modified: 2013-11-01
I am trying to setup indexing in my huge table in 2012 sql server.  How do I decide which type of indexing I use?
0
Comment
Question by:al4629740
2 Comments
 
LVL 10

Assisted Solution

by:Asim Nazir
Asim Nazir earned 150 total points
ID: 39616119
Create a clustered index on table's Identity column i.e. by setting it a Primary key column. It should boost performance of fetching data from table.
0
 
LVL 11

Accepted Solution

by:
Louis01 earned 350 total points
ID: 39616125
Some notes on Clustered and Non-clustered Indexes:
Only one Clustered index allowed per table because data rows can be sorted in one order only.
The only time the data rows in a table are stored in sorted order is when the table contains a clustered index and is called a clustered table.
If a table has no clustered index, its data rows are stored in an unordered structure called a heap.
Nonclustered indexes are in a seperate structure and contains pointers to data rows
Both types of index can be unique.

Regarding which to use, there's no simple recipe. Best is to use the Database Engine Tuning Advisor
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Join & Write a Comment

Performance is the key factor for any successful data integration project, knowing the type of transformation that you’re using is the first step on optimizing the SSIS flow performance, by utilizing the correct transformation or the design alternat…
Nowadays, some of developer are too much worried about data. Who is using data, who is updating it etc. etc. Because, data is more costlier in term of money and information. So security of data is focusing concern in days. Lets' understand the Au…
Via a live example, show how to set up a backup for SQL Server using a Maintenance Plan and how to schedule the job into SQL Server Agent.
Viewers will learn how the fundamental information of how to create a table.

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now