What is Poor SQL and why is it used?

Poor SQL is a T-SQL formatter that improves code readability across platforms and editors.

Sign up for the latest in SQL knowledge from the Galaxy Team!
Welcome to the Galaxy, Guardian!
Oops! Something went wrong while submitting the form.

Description

Table of Contents

Poor SQL, also known as Poor Man’s T-SQL Formatter, is a code formatting tool designed to improve the readability of T-SQL. It supports multiple integration options including:

  • SSMS Add-In
  • Command-line usage
  • Browser-based formatting
  • Editor plugins (e.g., Notepad++)

It’s open source, cross-platform (C#/.NET and JavaScript versions), and widely used by developers working with SQL Server.

You can try it online at poorsql.com.

Why Poor SQL is important

Readable SQL is easier to debug, share, and maintain. Poor SQL helps enforce consistent formatting and improves collaboration.

Poor SQL Example Usage



Poor SQL Syntax



Common Mistakes

Frequently Asked Questions (FAQs)

Q: Is Poor SQL free to use?


A: Yes, it is open source and free for personal and commercial use.

Q: Does it support MySQL or PostgreSQL?


A: No, it is designed specifically for formatting T-SQL (SQL Server).

Q: Can it be used in CI/CD pipelines?


A: Yes, with the CLI version you can automate formatting in your workflow.

Want to learn about other SQL terms?

Trusted by top engineers on high-velocity teams
Aryeo Logo
Assort Health
Curri
Rubie Logo
Bauhealth Logo
Truvideo Logo
Welcome to the Galaxy, Guardian!
Oops! Something went wrong while submitting the form.