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

Find dba orphaned file recurse #6846

Closed
wants to merge 27 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
efba51b
Find-DbaOrphanedFile: Allow recursive search of directories
nmbell Sep 16, 2020
7aab43f
Find-DbaOrphanedFile: Refactor for performance and clarity
nmbell Sep 16, 2020
cd87701
Find-DbaOrphanedFile: Update tests
nmbell Sep 16, 2020
aedc595
Find-DbaOrphanedFile: Apply correct formatting
nmbell Sep 16, 2020
8f99d69
Find-DbaOrphanedFile: Apply correct formatting
nmbell Sep 16, 2020
9626c4b
Find-DbaOrphanedFile: Add missing SQL filters
nmbell Sep 16, 2020
70be999
Find-DbaOrphanedFile: Apply correct formatting
nmbell Sep 16, 2020
7adaf72
Find-DbaOrphanedFile: Match local and UNC paths for the same file.
nmbell Sep 18, 2020
ebece61
Find-DbaOrphanedFile: Replace tabs with spaces
nmbell Sep 18, 2020
46066eb
Find-DbaOrphanedFile: Add missing array initialization.
nmbell Sep 18, 2020
9a120df
Find-DbaOrphanedFile: Update value for userdir variable.
nmbell Sep 18, 2020
1f8d3e6
Find-DbaOrphanedFile: Ensure userdir value references the SQL machine.
nmbell Sep 19, 2020
f828c04
Find-DbaOrphanedFile: Add db files with both local and UNC paths.
nmbell Sep 19, 2020
d2acf42
Find-DbaOrphanedFile: Apply correct formatting
nmbell Sep 19, 2020
606ee05
Find-DbaOrphanedFile: Undo changes to CREATE DATABASE.
nmbell Sep 19, 2020
69b1bff
dbatools.Tests: Expose versions of modules imported by tests.
nmbell Sep 20, 2020
ac891fa
Find-DbaOrphanedFile: Revert integration test to check regression.
nmbell Sep 20, 2020
fbce7e3
dbatools.Tests: Expose versions of modules imported by tests.
nmbell Sep 20, 2020
44f0152
Find-DbaOrphanedFile: Apply correct formatting (PSScriptAnalyzer 1.18.2)
nmbell Sep 22, 2020
601430f
Split-AdminUnc: Allow -Filepath parameter to accept pipeline input.
nmbell Sep 24, 2020
8d60c23
Find-DbaOrphanedFile: Ensure local paths are passed to Get-SQLDirTree…
nmbell Sep 24, 2020
6be9c6a
Find-DbaOrphanedFile: Suppress recursion for SQL Server 2000 and earl…
nmbell Sep 24, 2020
a2e364f
Find-DbaOrphanedFile: Apply correct formatting (PSScriptAnalyzer 1.18.2)
nmbell Sep 24, 2020
9428955
Split-AdminUnc: Apply correct formatting (PSScriptAnalyzer 1.18.2)
nmbell Sep 24, 2020
562c277
Find-DbaOrphanedFile: Updated integration test logic.
nmbell Sep 24, 2020
f88175d
Find-DbaOrphanedFile: Apply correct formatting
nmbell Sep 24, 2020
9ea69b4
Find-DbaOrphanedFile: Revert test to original CREATE DATABASE logic.
nmbell Sep 24, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Find-DbaOrphanedFile: Add missing array initialization.
  • Loading branch information
nmbell committed Sep 18, 2020
commit 46066ebb7d33b683865df2f340d4f6c2d0535973
2 changes: 1 addition & 1 deletion functions/Find-DbaOrphanedFile.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ function Find-DbaOrphanedFile {
}

# Reset all the arrays
$sqlpaths = @(); $dirtreefiles = @{}
$sqlpaths = $userpaths = @(); $dirtreefiles = @{}

# Gather a list of files known to SQL Server
$sqlfiles = Get-SqlFileStructure $server
Expand Down