error msg:
Incorrect syntax near 'partition'
With CTE
as (
select *, row_number() over (partiton by HdrID , TabName order by HdrID) as RN
from xlshdr_EC
)
select * INTO dbo.xlshdr_EC_deduped from cte
where RN = 1
Look at the code, partition is spelled partiton.
Doesn't everyone spell it that way.... ? lol duh...
thanks!