Skip to content

Instantly share code, notes, and snippets.

@JosiahSiegel
Created November 1, 2016 15:32
Show Gist options
  • Save JosiahSiegel/74ce8d065eee63fb248bec3d89e5057b to your computer and use it in GitHub Desktop.
Save JosiahSiegel/74ce8d065eee63fb248bec3d89e5057b to your computer and use it in GitHub Desktop.
#MSSQL #Research List database file locations
SELECT DB_NAME(database_id), name, physical_name AS CurrentLocation, state_desc
FROM sys.master_files
GO
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment