I need to create a report showing all SQL Authenticated users on a given server, and the settings of 'Password Policy Enabled' and 'Password Expiration Enforced'.
I know that I can visually see these if I right-click on each login; but I'm looking for a query so that I will be able to do this programmatically.
I've looked in syslogins, and this does not seem to be stored there...
Any help would be appreciated!
thanks
Win