r/SQL • • Jun 26 '26

SQL Server SQL Indentation

I am working on MS SQL. I have got few scripts of 1000+ line with poor indentaion.

Any tool which i cna use to properly format it.
Please suggest

26 Upvotes

44 comments sorted by

View all comments

Show parent comment

1

u/cappurnikus Jun 26 '26

This is against company policy. It's also inefficient.

0

u/asisoid Jun 26 '26

Not against my companies policy.

We have an internal only setup for Gemini

1

u/cappurnikus Jun 26 '26

Gotcha. Still crazy inefficient. I prefer a formatter because it instantly formats my query within my preferred IDE and is processed locally. I typically use it numerous times while writing longer queries and it would get annoying moving my query back and forth or only formatting at the end.