microsoft / microsoft/CSS_SQL_Networking_Tools

SQLTrace isn't deleting files appropriately

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

Nobody has claimed this yet.

Dominant language
C#
Stars
209
Forks
59
PR merge metrics
No merged PRs in 30d

Description

SQL Trace has settings to delete old files in the INI file.

DeleteOldFiles = Yes # This triggers the switch to delete old files depending on configuration of MinFiles and MinMinutes
MinFiles = 5 # Only delete files beyond this limit that are more than MinMinutes old
MinMinutes = 1 # Only delete files older than this number of minutes (LastWriteTime) has elapsed

When testing the above on my local machine, I let it run for an hour and produced 5 files. The SQLTrace didn't delete them. I only used the ".\SQLTrace.ps1 -start " with no extra parameters.

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 SQLTrace.ps1 and the INI settings for DeleteOldFiles, MinFiles, and MinMinutes. Run .\SQLTrace.ps1 -start with the reported configuration and observe file creation and cleanup over time. Done means files beyond the MinFiles limit are removed once their LastWriteTime exceeds MinMinutes.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.