r/learnSQL • • May 20 '26

Taking notes on SQL

Hi,

I'm a sql dev with dba ambitions. I work daily with SQL, and fiddle a lot with SSMS. Trying to figure out query store, query plans, indexes and the whole shabang. Meaning, I watch a lot of youtube like Brent and Baraa, follow some Udemy-courses and even pick up a book every now and then.

But, I find it hard to keep track. Just followed some tutorials on Query tuning. And looking at it, it kinda makes sense. But how to remember it all?

I'm thinking of getting an old school note pad, and write along with the lot. But then again.. there is SOO much to keep track of.
Will I be able to find the things i've written down when I need it? Surely, it will help getting things crammed in my brain, but perhaps other ways?

I've also thought of a .MD file, so it's searchable, links and things. Might be an option as well.

Just curious how you guys keep track of the things you learn.

5 Upvotes

10 comments sorted by

View all comments

Show parent comment

1

u/Blomminator May 22 '26

Sure, doing is knowing and making it your own. But some things I rarely use in my job, on the DBA end. So, it's nice to have a 'table of contents' and look things up that you've seen, rings a bell, and then check how it was done. Not querying, but more like How to restore, verify backups, check log size... (and what it all means).

1

u/Better-Credit6701 May 22 '26

We have issues with too many virtual log files so I keep this on hand:

CREATE TABLE #loginfo (

RecoveryUnitId int NULL,

FileId tinyint,

FileSize bigint,

StartOffset bigint,

FSeqNo int,

[Status] tinyint,

Parity tinyint,

CreateLSN numeric(25,0)

);

INSERT INTO #loginfo

EXEC('DBCC LOGINFO WITH NO_INFOMSGS');

SELECT COUNT(*) AS VLF_Count FROM #loginfo;

DROP TABLE #loginfo;

1

u/Better-Credit6701 May 22 '26

I keep track of all of my special scripts in an old application that has long since been abandoned