About the Other SQL Server Topics category

This is for any SQL Server related topic that doesn't fit into one of the other categories. For now, this includes database design, application architecture, any scripts you'd like to post, or the Express Edition of SQL Server.

And please use the tag field to identify the version of SQL Server!

SQL Agent / stored procedure mystery.
SQL Server 2016
I have a SQL Agent job that runs a stored procedure. Certain variables are set inside the stored procedure.
When the SQL Agent job is executed the via a schedule, the variables inside the stored procedure do not seem to be set. However, when I manually run the SQL Agent job the stored procedure executes fine.
What am I missing?

Totally! Your questions are excellent and demonstrate a genuine desire to learn. It's inspiring to see someone actively seeking information and engaging in lively discussions. It is a great opportunity to share your knowledge and show off your passion. Asking questions can help you gain a deeper understanding of yourself and your world. Curiosity will be a great asset on your journey. Never stop exploring or using your curiosity. Each question can lead to new insights and amazing discoveries.