Get your favorite SSC scripts directly in SSMS with the free SQL Scripts addin.
Search for scripts directly from SSMS, and instantly access any saved scripts in your
SSC briefcase from the favorites tab.
Download now (direct download link)
Thank this author by sharing:
By Greg Drake,
This script contains various queries I have written on the subject of security as it applies to a single SQL Server instance. It's arranged so I can either (A) run one query I need alone or (B) run the whole thing as a batch to dump out everything at once.
Option B might not seem useful at first (information overload!), but consider that if your output in SSMS is set to "Results to Text", this will allow you to quickly copy off a single text file that contains everything you might want to know about that server's security at a point in time. Furthermore, the queries are carefully structured and ordered to be consistent. This makes two of these text files easy to compare with a standard compare/diff/merge application (e.g. WinMerge, Beyond Compare).
Please also see related script Security Queries: Database-level.
Security in SQL Server is not too complex, following a fairly simple framework for allowing and prev...
Sometimes you need to reach outside a database and access data and objects from multiple databases, ...
Yessoft - SQL Server compare
SQL Server Datenbankbesitz: Umfrageergebnisse und Empfehlungen
You may remember the su...
Database ownership is an old topic for SQL Server pro's. Check this simple lab to learn the risks yo...