Monday, August 6, 2018

How to get the list of all database users

SELECT * FROM sys.database_principals where (type='S' or type = 'U')

No comments:

Post a Comment