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 Daniel Brink,
This scripts looks for possible malicious attempts to hack your SQL Server instance. This is done by reading the current error log and searching for multiple failed login attempts from the same IP address. Please note that this requires that “Login auditing for failed logins” is enabled in the properties of your SQL Server instance.
To run this script, simply copy and paste the script into a connected query tab in Microsoft SQL Management Studio and then execute it. It will output a summary list of all failed attempts to guess passwords within the last 24 hours on your SQL Server instance.
Generate Script from Logins of Sql Server to recreate in another instance
Compare the logins and users on two instances and generate a TSQL script to make them the same.
Log to find all the 'FAILED LOGIN ATTEMPTS' in SQL Server 2005
Error with Create Login Script
Script out Logins and Users for Every Database in a SQL instance