SQL Query to find Server Tag mapping from Idera

Was trying to extract data from our Idera environment, following SQL Query can be used to find SQL Serer tags. In my scenario these are the applications 🙂

-- Server Tag information 
	SELECT MSS.SQLServerID, t.Name as TagName,  MSS.InstanceName, MSS.Active, MSS.ServerVersion, MSS.ServerEdition, MSS.MaintenanceModeEnabled
	FROM MonitoredSQLServers MSS WITH (NOLOCK) 
	LEFT JOIN [ServerTags] st WITH (NOLOCK) ON MSS.SQLServerID = st.SQLServerId
	LEFT JOIN [Tags] t WITH (NOLOCK) ON st.TagId = t.Id 
	ORDER BY MSS.SQLServerID
-- 
-- 
Advertisements
This entry was posted in Uncategorized and tagged , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s