Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options answers only not deleted user 212347

A database structure that can improve the speed of queries at the cost of disk space and slower inserts/updates. It stores a copy of one or more columns sorted but structures the data differently to allow faster access.

1 vote

SQL Server 2014: Why is Clustered Index Rebuild MUCH faster than initial index creation?

The same is true for rebuilding of a clustered index. … So it looks like an index rebuild is actually doing less work than an index create. …
MattM's user avatar
  • 146
0 votes

How to index a table using column of another table having relation with it?

[CompanyName] = 'Boeing' ; I'd create one index on the Company table to optimise filtering on the CompanyName: CREATE NONCLUSTERED INDEX [IX_Company_CompanyName] ON dbo.Company ( [CompanyName] … one on the Pilot table to optimise joining on the CompanyID, with the Name column tagged on, in case Boeing has a lot of pilots and you want to slap an ORDER BY clause on the query: CREATE NONCLUSTERED INDEX
MattM's user avatar
  • 146
1 vote

Can I specify a name for the index which SQL Server creates for my unique constraint?

You can name your unique (or any other) constraint in-line when creating the table: CREATE TABLE [dbo].[Something] ( [IdentityId] UNIQUEIDENTIFIER NOT NULL CONSTRAINT [UQ_Something_Ident …
MattM's user avatar
  • 146