In general, how do I recreate DB time out issue that are happening in production environment to my local development environment?
My front end C# application call the stored proc that get DB time out in production. These DB time out issues are very intermittent. I tried locking the table with Begin Transaction but it does not work because SQL statements have “nolock” next to table names.
Before you try to re-create the error in your dev environment, you will need to do a little investigation to determine where the performance problem is most likely occuring in prod.
When you become aware of the problem occuring in prod, you can utilise the Activity Monitor within SQL Server to get an idea of which process are blocked, and which process they are blocked by. I’ve used this in the past to track down a problematic query.