SQL server hangs when I try to run a simple Select Distinct query from a linked table. "Executing Query. Waiting for response from data source." Then returns an error: Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding.
SELECT DISTINCT UR_RISK_ID AS [Risk ID]
FROM FWLIVE..LMDATA.UDS_RISK
Without the "distinct" it is fine and runs very quickly.
Any thoughts why?