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

2

u/alinroc SQL Server DBA Jun 26 '26

Punting to the massive energy consumption of AI for this seems unnecessary to me when there are options that work perfectly well on a low-powered laptop.

-6

u/asisoid Jun 26 '26

AI requests are not all created equal.

I doubt SQL formatting uses much more power energy then a Google search.

8

u/angryapathetic Jun 26 '26

If the SQL is a long script and you're bashing out thousands of tokens through AI just to get an indent, you're doing AI wrong

2

u/reditandfirgetit Jun 26 '26

At thus point every google search using AI in some fashion

1

u/alinroc SQL Server DBA Jun 26 '26

All Google searches run through AI now.

2

u/asisoid Jun 26 '26

So you're saying don't use Google either? Feel like this just strengthens my argument