Solved

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

Posted on 2013-10-31
2
212 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction In my previous article (http://www.experts-exchange.com/Microsoft/Development/MS-SQL-Server/SSIS/A_9150-Loading-XML-Using-SSIS.html) I showed you how the XML Source component can be used to load XML files into a SQL Server database, us…
Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
Using examples as well as descriptions, and references to Books Online, show the documentation available for datatypes, explain the available data types and show how data can be passed into and out of variables.
Viewers will learn how to use the UPDATE and DELETE statements to change or remove existing data from their tables. Make a table: Update a specific column given a specific row using the UPDATE statement: Remove a set of values using the DELETE s…

707 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