SQL Server 2012 Create index with Sort In TempDb On - Gains False?
-
16-10-2019 - |
문제
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
해결책
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
제휴하지 않습니다 dba.stackexchange