Last active
March 15, 2018 23:58
-
-
Save shaneis/a53453f0ae58ce899cda1a872e48f3b4 to your computer and use it in GitHub Desktop.
We have a match!
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$DatabaseParam = @{ | |
SqlInstance = 'localhost\SQLDEV2K14' | |
Database = 'DMODisabled' | |
} | |
Get-DbaDatabase @DatabaseParam | | |
Select-Object -ExpandProperty Tables | | |
Where-Object { $_.Name -notmatch "\d{4,6}$" } | | |
ForEach-Object -Process { | |
[PSCustomObject]@{ | |
Name = $_.Name | |
RowCount = $_.RowCount | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment