Has anyone seen anything like this at all? I'm running the following query:INSERT CMC_CLST_STATUS(CLCL_ID,CLST_SEQ_NO,MEME_CK,CLST_STS,USUS_ID,CLST_STS_DT,CLST_MCTR_REAS,CLST_USID_ROUTE,CLST_LOCK_TOKEN )SELECT TOP 10 CLCL_ID,CLST_SEQ_NO = 1,MEME_CK,CLST_STS = CASE CL_STATUS WHEN '12' THEN '16' WHEN '16' THEN '11' ELSE CL_STATUS END,USUS_ID = 'batchuser',CLST_STS_DT = '1/1/1753',CLST_MCTR_REAS = ' ',CLST_USID_ROUTE = ' ',CLST_LOCK_TOKEN = 1FROM fadbnfimport.dbo.IMX_CLHD_CLAIMWHERE MEME_CK IS NOT NULL
which should insert 10 records in the CMC_CLST_STATUS table. I normally run it without the top 10 as there are 200,000+ records in the source table. But I'm trying to duplicate the problem. The result I get is:(0 row(s) affected)(0 row(s) affected)(0 row(s) affected)(0 row(s) affected)(0 row(s) affected)(0 row(s) affected)(0 row(s) affected)(0 row(s) affected)(0 row(s) affected)(0 row(s) affected)(0 row(s) affected)(0 row(s) affected)(0 row(s) affected)(0 row(s) affected)(0 row(s) affected)(0 row(s) affected)(0 row(s) affected)(0 row(s) affected)(0 row(s) affected)(0 row(s) affected)(10 row(s) affected)
It should finish in seconds. It's slow -- up to a minute. With the full 200,000 records it ran overnight and didn't finish. The 200,000 record insert right above it ran in just a few minutes. I can't figure out why it's returning what appear to be multiple record sets. The target table is empty when the query runs. It's a SQL7 SP3 case-sensitive server on NT4 SP(?). Anyone have any thoughts?===============================================Creating tomorrow's legacy systems today.One crisis at a time.