SQL Server 2012 Create index with Sort In TempDb On - Gains False?
-
16-10-2019 - |
Question
If I create an index e.g
Create nonclustered index(Path, Value, Id) with(sort_in_tempdb=on);
It doesn't fail but when looking at the index in SMMS, it says False
. Any ideas why?
EDIT: Can not find any schema to query for the value of this setting. Tried sys.Indexes
but with no luck.
//Daniel
Solution
Option 'Sort in tempdb' valid only while creating an index. And after index has been created it (an option, not index) becomes senseless. Any other operations like inserts, updates and deletes does not apply sorting in tempdb, or even apply, but this has no any relevance to this option value used while creating index
Licensed under: CC-BY-SA with attribution
Not affiliated with dba.stackexchange