r/learnSQL • u/Bassiette03 • Oct 03 '26
Do I need to master Stored procedures, Triggers and Indexes or can I use the ui to make them
I'm learning on sql server but I don't like those 3 topics
I learned everything except those 3 topics??
What are the best books to read If I want to be acceptable in those 3 topics?
5
Upvotes
5
u/nboro94 Oct 03 '26
If you already learned SQL, then you already know stored procedures, it's just a small SQL program that runs in the database and can be run manually with EXEC or run on a schedule by an agent. It doesn't take long to learn this how to make and run these at all.
Triggers are just SQL code that fires when an event that you set happens like if a new record is added, again if you already know SQL you already know this and it's easy to learn how to set up.
Indexes are a more broad topic, but a lot of interviewers will ask questions about them and when you should use them. You should at least learn the high level concepts of it.
5
u/ChaosEngine-6502 Oct 03 '26
Personally, I would get familiar with writing the SQL to create all of these. The syntax for creating these isn't difficult, and you'll have to enter the SQL code to define what the stored procedures and triggers actually do to begin with. The GUI will slow you down, especially when it comes to creating foreign keys and indexes.
5
u/NecessaryIntrinsic Oct 03 '26
You are hamstringing yourself if you rely on the GUI to do these simple tasks.
It's not terribly challenging to learn and these skills carry over to every engine.
4
u/Top_Community7261 Oct 03 '26
When I took woodworking, we learned how to make things manually before we learned to use the power tools.
2
u/Main_Sense1406 Oct 03 '26
Gui is fine and some aspects are reccomended with the GUI because they are so awkward
2
u/IAmADev_NoReallyIAm Oct 03 '26
Of those three, I'd say that indexes are the most vital to learn as it's needed to learn how to use them to tweak the performance of your database. Stored procedures are easily done since it's jsut wrapped SQL in a Create Procedure block with some parameters. Triggers...
1
u/Better-Credit6701 Oct 03 '26
Many DBA hate with a passion triggers.