How to find out whether sql server login has any user mapped to using SMO.

Posted by Ybbest on Stack Overflow See other posts from Stack Overflow or by Ybbest
Published on 2010-05-10T04:52:35Z Indexed on 2010/05/10 4:58 UTC
Read the original article Hit count: 245

Filed under:

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 ?

© Stack Overflow or respective owner

Related posts about sql-server