How to find out whether sql server login has any user mapped to using SMO.
- by Ybbest
I need to write a function to delete the login in the database if it does not have any users to map to using SQL Server Management Objects (SMO). How can I achieve this ?