Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Column Identity Usage test inconsistencies #979

Open
1 task
gpollokoff opened this issue Jun 6, 2023 · 0 comments
Open
1 task

Column Identity Usage test inconsistencies #979

gpollokoff opened this issue Jun 6, 2023 · 0 comments

Comments

@gpollokoff
Copy link

Issue

This is a bug or unexpected behaviour

Bug Report

Test for "Column Identity Usage" has 2 inconsistencies.

  1. If version is less then 10, it executes Assert-DatabaseDuplicateIndex which has no bearing on Identity column usage.
  2. The test compares the policy.identity.usagepercent value which defaults to 90 but the Test-DbaIdentityUsage function returns PercentUsed in decimal (e.g. 0.87 for 87%). Without changing the config value, the test will always return true.

General Troubleshooting steps

  • Verified running the latest release of dbachecks?

[0.04 sec] > (Find-module dbachecks).Version -match (Get-Module dbachecks).Version.ToString()
True

Version Information

Code issue is version independent

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants