If you want to increase application timeout, not query execution time. It'll be changed in the SSMS (because SQL has no concept of a timeout)
click Tools --> Options --> 'Query Execution' --> 'Execution time-out' ,0 indicates an unlimited wait (no time-out).
Also, you might try adding a meaningless while loop to increase the execute time of a whole query.
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our Documentation to enable e-mail notifications if you want to receive the related email notification for this thread.