Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
I have a scheduled job which runs nightly. I want it to stop itself at 07:00AM in the morning whether or not it is completed.
I have seen some duplicates in the site but they don't exactly address the problem.
Personally I would create another job and schedule it to run each morning at 7am.
A job step within that job could execute something like
USE msdb ;
N'<Your job name>' ;
Required, but never shown