Hi, I am working with SQL Server 2005 and have th efollowing problem; When I run the query below it works fine; SELECT t1.o_pat_id, t2.prac_no, t2.GoldPracIDFROM gprdsql.TblPracDetails AS t2 INNER JOIN ODSData5.dbo.o_pat AS t1 ON t2.prac_eid = t1.o_prac_uid
However, when I add a DISTINCT as SELECT DISTINCT t1.o_pat_id, t2.prac_no, t2.GoldPracIDFROM gprdsql.TblPracDetails AS t2 INNER JOIN ODSData5.dbo.o_pat AS t1 ON t2.prac_eid = t1.o_prac_uid
I receive the SQL Execution error - Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding.. Any help please!! I thought when I added the Distinct the query should produce the results instantly.. Thnak you