Error Index Compression

Open
#260 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
sql
Domain
databases

Research direction

Start with the AdaptiveIndexDefrag debug output and the rebuild-command construction at line 1941 mentioned in the report. Reproduce on the stated SQL Server 2005 version, then trace both the empty DATA_COMPRESSION value and the sysdatabases row-modification error; done means the reported commands execute without these errors.

Written by the indexing model from the issue text.

Description

Hi!

Some issue running on SQL Server, follow inormation:
Executing AdaptiveIndexDefrag v1.6.7 on Microsoft SQL Server 2005 - 9.00.5324.00 (X64)
Aug 24 2012 18:28:47
Copyright (c) 1988-2005 Microsoft Corporation
Enterprise Edition (64-bit) on Windows NT 5.2 (Build 3790: Service Pack 2)

Tryed Debug mode and found those two messages:
Message 1:
ALTER INDEX [ix_xxxxxxxxxxxxxxxxxx] ON [xxxxxxxxxxxxxxxxxx].[dbo].[xxxxxxxxx] REBUILD WITH (DATA_COMPRESSION = , FILLFACTOR = 90, SORT_IN_TEMPDB = OFF);
Error 102 has occurred executing this command. Message: Incorrect syntax near ','. (Line Number: 1)

Message 2:
Error 911 has occurred while determining row modification counter. Message: Could not locate entry in sysdatabases for database '[xxxxxxxxxxxxxx]'. No entry found with that name. Make sure that the name is entered correctly. (Line Number: 1)

For workaround on Message 1, I replaced line number 1941 / SET @rebuildcommand = @rebuildcommand + N'DATA_COMPRESSION = ' + @currCompression + ', ') with: SET @rebuildcommand = @rebuildcommand

Dominant language
Jupyter Notebook
Stars
1.6k
Forks
749
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from microsoft/tigertoolbox

All issues in microsoft/tigertoolbox

Similar issues

More Databases issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.