I am just trying to understand why the below query is taking long time.
SELECT 
   t.dp_id
  ,d.hide_flag
  ,d.metadata_release_date
  ,d.run_code
  ,d.instrument_code
  ,r.s_region 
FROM sampledb1.dbo.xshooter t 
INNER JOIN sampledb2.dbo.dp_access d 
ON t.dp_id = d.file_id 
INNER JOIN sampledb3.dbo.raw r 
ON t.dp_id = r.dp_id 
WHERE t.dp_id = 'TEST'
All the tables have indexes on the columns they are joining in (actually they are the primary keys)
 
    