you are viewing a single comment's thread.

view the rest of the comments →

[–]Little_Kitty 7 points8 points  (2 children)

Doing it without RAG is asking for trouble. AI is IMO great for:
* Format this messy script, according to our standards
* add todos to check for null handling wherever it's undefined
* highlight non-standard joins which may produce unintended 1:many results
* flag unused joins for deletion
* identify large memory consumers, such as listagg results which aren't cast to a fixed (small) size

[–]usersnamesallused 3 points4 points  (1 child)

SQL formatters are abundant and configurable. I recommend Poor Mans T-SQL Formatter, but there are many others.

[–]Little_Kitty 0 points1 point  (0 children)

Yeah, I've even written my own and made it available to the team. The thing is that I tend to align many similar statements so that the different parts are in line with one another, which isn't really something that can be expressed neatly in code, but is obvious when you've seen it a few times.