Tag Archives: TSQL

Indexing Tool : Database Engine Tuning Advisor

Indexing Tool : Database Engine Tuning Advisor


Clustered vs non clustered index

from http://www.programmerinterview.com/index.php/database-sql/clustered-vs-non-clustered-index/ What is the difference between a Clustered and Non Clustered Index? A clustered index determines the order in which the rows of a table are stored on disk. If a table has a clustered index, then the rows of that table will be stored on disk in the same exact order as the […]
Read More »

Only one clustered index can be created on table

A clustered index sorts and stores the data rows in the table based on the index key values. Therefore only one clustered index can be created on each table because the data rows themselves can only be sorted in one order. To create a different clustered index on the same table, change the Create as […]
Read More »

Table Variables

http://odetocode.com/articles/365.aspx Microsoft introduced table variables with SQL Server 2000 as an alternative to using temporary tables. In many cases a table variable can outperform a solution using a temporary table, although we will need to review the strengths and weaknesses of each in this article.Table variables store a set of records, so naturally the declaration […]
Read More »