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

Orphaned Database File #1066

Open
aachaemenes opened this issue Oct 10, 2024 · 3 comments
Open

Orphaned Database File #1066

aachaemenes opened this issue Oct 10, 2024 · 3 comments

Comments

@aachaemenes
Copy link

DBADASH does not track orphaned database files. When databases are detached sometimes DBAs forget to delete them later. This check should let DBA know that there are orphaned database files.

@DavidWiseman
Copy link
Collaborator

Thanks for the suggestion. I don't think there is an easy way to detect orphaned files from T-SQL. Scanning the file system for database files that are not attached is possible but quite expensive. Not sure if this would be possible remotely or not. I'm unlikely to add this feature.

@aachaemenes
Copy link
Author

aachaemenes commented Oct 10, 2024 via email

@DavidWiseman
Copy link
Collaborator

It looks like that is using Find-DbaOrphanedFile.

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

No branches or pull requests

2 participants