Hi, is there a script that allows me to lock (prevent from logging in) all database users (both NT and SQL Server), and then enable them back? I can do ALTER LOGIN USERNAME DISABLED, but I have about 200 users, so I'd like to have a script...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.