I have a simple select query running over a linked server. It normally takes 7 or 8 minutes, but sometimes goes over 10, in which cases it appears to time out:
Execution terminated by the provider because a resource limit was reached. [SQLSTATE 42000] (Error 7399) OLE DB provider "SQLNCLI11" for linked server "DB007" returned message "Query timeout expired". [SQLSTATE 01000] (Error 7412). The step failed.
I've searched for the reason for this, and the popular answer seems to be that it's down to the "Remote Query Timeout" setting on the server being linked (DB007), which I have set to zero, but the issue still occurs.
Connection timeout and Query Timeout on the actual linked server are also set to zero.