About QueryBench
QueryBench is a small collection of free tools for people who work with Microsoft SQL Server. Each tool does one job: formatting T-SQL, turning CSV data into INSERT statements, or building an IN list from pasted values.
How the tools work
Every tool is plain JavaScript that runs in your browser. When you paste data or SQL, it is processed on your own computer and is never sent to a server. You can disconnect from the internet after the page loads and the tools keep working.
Accuracy
The tools are tested against SQL Server, but they are provided as is, with no warranty. Always review generated SQL before you run it, especially against a production database.
Credits
The T-SQL formatter uses the open-source sql-formatter library (MIT license), served from this site. View its license.
Learn more T-SQL
If you'd like structured practice, the Bramble Cycles SQL Workbook has 120 SQL Server exercises with answer keys, and there's a free sample covering the first three chapters.