SSMS Query History is an AddIn for Microsoft SQL Server Management Studio that logs executed queries for further review.