1
0
mirror of https://github.com/alex-bochkov/ssms-addin.git synced 2025-11-23 22:04:53 +02:00

Update list-all-orphan-users.sql

This commit is contained in:
Alexey Bochkov
2019-03-07 11:31:53 -08:00
committed by GitHub
parent f98e80b9ee
commit 82ba9043d5

View File

@@ -46,5 +46,5 @@ CLOSE cur_users;
DEALLOCATE cur_users;
DROP TABLE #ADinfo;
SELECT 'DROP USER ' + username, * FROM #OrphanUsers;
SELECT 'USE [' + DB_NAME() + ']; DROP USER [' + username + '];', * FROM #OrphanUsers;
DROP TABLE #OrphanUsers;