Policy Based management script?

  • Is there a tsql script that can give me details (name, condition, created by etc) of all the policies created on my sql server?

  • You should be able to knock one up quick using msdb.dbo.syspolicy_################ tables

  • but the condition is given in code, not the actual condition

    how do i get the actual condition?

  • You will need to shred the XML into its parts to rebuild the condition as it look in the GUI.

Viewing 4 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic. Login to reply