|
peddi_praveen
Starting Member
48 Posts |
Posted - 2004-06-10 : 06:27:40
|
| Hi,We are facing performance issues in a new environment...Background:we are extracting the data from remote database using link server thru remote Proc call. In our SP, we call the remote SP insert into #tableexec link.db.owner.SP p1, p2, p3which returns the recordset. this recordset is captured in #table. SP execution used to take 5- 10 minCurrent Scenario: remote database is moved to new server and we changed the underlying link to point to the new server, and al other link server config properties remain same.Problem:Test case 1: testing the connectivityExec linkserver.db.owner.SP P1, P2, P3This works fine on old link server and new link serverTest case 2: testing the connectivity by putting into # table INSERT #TABLEExec linkserver.db.owner.SP P1, P2, P3This works fine on old link server, BUT IT IS BEEN LONG RUNNING QUERY IN NEW ENVIRONMENT , IT IS BEEN RUNNING FOR HOURS.Changes in Environments:On calling side:No change in any code except point to new server for underlying link server.No changes in tempdb configuration.On Remote side: Old server was single instance server , where as nw server has multiple instances nw oldprocessors : 4 4speed: 2Ghzs 500megano of instances 4 1 any light on this?regards,Praveentest script follows:declare @mmid varchar(10)declare @from datetimedeclare @to datetimeset @mmid ='844923'set @from = '2004-05-20'set @to = '2004-05-26'/*Create Table #Ship ( SN NVarChar(60) Not Null, Dlv_Doc_Id NvarChar(10) Null, fcst_prd_Nm NvarChar(15) Null, mat_id NVarChar(8) Null , lineitem NVarChar(10) Null , shipsite NVarChar(5) Null , shipdate DateTime Null , cst_id NVarChar(22) Null , cst_nm NVarChar(35) Null , cst_srch_nm NVarChar(11) Null , st_hse_nbr NVarChar(35) Null , addr_2_nm NVarChar(35) Null , addr_cty NVarChar(35) Null , rgn_cd NVarChar(6) Null , post_cd NVarChar(10) Null , sls_ord_id NvarChar(10) Null, sls_ord_itm_nbr NVarChar(10) Null)Insert Into #Ship (sn,dlv_doc_id,fcst_prd_nm,mat_id,lineitem,shipsite,shipdate,cst_id,cst_nm,cst_srch_nm,st_hse_nbr,addr_2_nm,addr_cty,rgn_cd,post_cd,sls_ord_id,sls_ord_itm_nbr)*/Execute SNTrax.SNTrax_Public.dbo.SP_Rufus_Ship @from,--@Last_Run_Date,@to,--@Now,@mmid |
|