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, 2015/05/08
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
Log to find all the 'FAILED LOGIN ATTEMPTS' in SQL Server 2005
Compare the logins and users on two instances and generate a TSQL script to make them the same.
Error with Create Login Script
This is a simple powershell script that will add a particular login to multiple SQL Server instances...