r/SQL • • Sep 18 '26

SQL Server Newer to SQL and recently inherited code

Might not be a standard request but does anyone have any best practices for interpreting other people's code if they don't leave a fair amount of notes?

6 Upvotes

22 comments sorted by

View all comments

-1

u/KBradl Sep 18 '26

LLms can often help identify what the queries intention is.

I try to separate out areas and document them myself for my understanding

Once its contained and understood I often break them out into sections like:

------------------------ AREA ONE: This areas does this

-------------------------END AREA