Have a sp that does not return records (timeout) when I use temp table, if I run without temp table (insert into...) records are returned fine, happens on 2005 and 2008. I am am using linked server and rpc = True. This used to work all along but cannot figure out what has changed. Thank you.declare @JobNumber intdeclare @DateFrom datetimedeclare @DateTo datetime set @JobNumber = 6107416set @DateFrom = '2014-9-1 00:00:00'set @DateTo = '2014-9-15 23:59:59'SET NOCOUNT ONIf Object_ID('tempdb..#Table') Is Not Null Drop Table #TableCREATE TABLE #Table ( eq_cost_code nvarchar(15) unique, eq_item_name char(15), eq_sum_hrs decimal(10,2) )begininsert into #Table (eq_cost_code, eq_item_name, eq_sum_hrs )exec [SQL2].Labor.dbo.sp_EquipmentInquiry @JobNumber, @DateFrom, @DateToend select * from #Table