microsoft / microsoft/sql-server-samples

Probe IndexStatistics failed to obtain data: Execution Timeout

Open
#1,196 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
PowerShell
Stars
11.2k
Forks
9.1k
Avg merge
2d 7h
Merged PRs (30d)
14

Description

We are encountering following error while running SQL Assessment. Can you please suggest how to fix it.

Invoke-SqlAssessment : Check IndexFragmentation: Probe IndexStatistics failed to obtain data: Execution Timeout
Expired. The timeout period elapsed prior to completion of the operation or the server is not responding. Check ID:
IndexFragmentation. Target: Server[@Name='XXXXXXXX-DB01']/Database[@Name='XXXXXXXXX']. IndexStatistics:
Execution Timeout Expired. The timeout period elapsed prior to completion of the operation or the server is not
responding.

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.

Research direction

Start with the Invoke-SqlAssessment command and the IndexFragmentation check named in the report. Reproduce or investigate the IndexStatistics execution timeout against the affected database, then document a confirmed fix or the conditions that cause the check to fail.

Written by the indexing model from the issue text.

Assessment

Tech stack
powershell, sql
Domain
databases
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.