Skip to content

Commit 491488b

Browse files
Update sp_IndexCleanup.sql
1 parent 8fa9d7e commit 491488b

1 file changed

Lines changed: 6 additions & 20 deletions

File tree

sp_IndexCleanup/sp_IndexCleanup.sql

Lines changed: 6 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -281,21 +281,6 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
281281
) >= 15
282282
THEN 1
283283
ELSE 0
284-
END,
285-
integer,
286-
SUBSTRING
287-
(
288-
CONVERT
289-
(
290-
varchar(20),
291-
SERVERPROPERTY('ProductVersion')
292-
),
293-
1,
294-
2
295-
)
296-
) >= 15
297-
THEN 1
298-
ELSE 0
299284
END,
300285
@uptime_days nvarchar(10) =
301286
(
@@ -1867,13 +1852,13 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
18671852
THEN 1
18681853
ELSE 0
18691854
END,' +
1870-
CASE
1871-
WHEN @supports_optimize_for_sequential_key = 1
1872-
THEN N'
1855+
CASE
1856+
WHEN @supports_optimize_for_sequential_key = 1
1857+
THEN N'
18731858
optimize_for_sequential_key = ISNULL(i.optimize_for_sequential_key, 0),'
1874-
ELSE N'
1859+
ELSE N'
18751860
optimize_for_sequential_key = 0,'
1876-
END + N'
1861+
END + N'
18771862
user_seeks = ISNULL(us.user_seeks, 0),
18781863
user_scans = ISNULL(us.user_scans, 0),
18791864
user_lookups = ISNULL(us.user_lookups, 0),
@@ -2002,6 +1987,7 @@ END + N'
20021987
is_included_column,
20031988
filter_definition,
20041989
is_max_length,
1990+
optimize_for_sequential_key,
20051991
user_seeks,
20061992
user_scans,
20071993
user_lookups,

0 commit comments

Comments
 (0)