Jacob Wilkins - Monday, July 24, 2017 3:29 PM
I agree with Jacob here. I've seen times where this happens and it turns out the application isn't handling the response from SQL properly. When I ran profiler on SQL (I know, I should use EE, but profiler is just so easy...), I saw the SQL returned in less than 1 second. The application just didn't consume the data and said there was a timeout. If memory serves, it was actually LINQ that was causing our problem. Our developer changed the way his code worked, and the problem went away. Although for us, it was that it worked fine in DEV, but when it went to our test system (which was identical from what I could tell), it failed.
The above is all just my opinion on what you should do.
As with all advice you find on a random internet forum - you shouldn't blindly follow it. Always test on a test server to see if there is negative side effects before making changes to live!
I recommend you NEVER run "random code" you found online on any system you care about UNLESS you understand and can verify the code OR you don't care if the code trashes your system.