I have three databases, starting with "MD_" that I have added in SQL Server 2012. Each of them has an extended property NAME = "DESCRIPTION"
What I like to have returned is a result set of the database names and the "DESCRIPTION" value.
Selecting the database names are easy enough but I could use some help with joining in the extended property.
BEGIN
SELECT A.NAME
FROM sys.databases A
Where LEFT(A.NAME, 3) = 'MD_'
END
Results:
NAME DESCRIPTION
MD_1 Initial
MD_2 Secondary
MD_3 Final
Any help would be greatly appreciated! Kind regards