The below code works fine and 47 records are returned in less than a second:declare @JobNumber intset @JobNumber = 6003047exec [VGIWPW03-SQL3\EQUENTIALPROD].goLabor30.dbo.sp_Vecellio_ProductionInquiry @JobNumber
I need to insert the result into temp table and when I do like this I get error:declare @JobNumber intset @JobNumber = 6003047If Object_ID('tempdb..#Equential_JobQtyTable') Is Not Null Drop Table #Equential_JobQtyTableCREATE TABLE #Equential_JobQtyTable ( eq_cost_code nvarchar(15) unique, eq_item_name char(15), eq_sum_qty decimal(10,2) )insert into #Equential_JobQtyTableexec [VGIWPW03-SQL3\EQUENTIALPROD].goLabor30.dbo.sp_Vecellio_ProductionInquiry @JobNumber select * from #Equential_JobQtyTableError:Msg -2, Level 11, State 0, Line 0Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding.