I want query to Identify and report on any logins within Production databases that include "test" , "QA" , "UAT".
I want query to Identify and report on any logins within Production databases that include "test" , "QA" , "UAT".
Not much to go on there I'm afraid.
Do you want a list of users inside the PROD database which contain the phrase TEST, QA, UAT?
SELECT name FROM sys.database_principals where name like '%test%' or name like '%QA%' or name like '%UAT%'
18 People are following this question.