This only fails in a subquery on the new server. Alone as a single query it runs fine.
Original code is commented out just a compound set of columns. Now need to string the first three spaces and then the second group of 9 spaces.
FROM PHOENIX.RingDWStaging.dbo.cSalesBudgetInfo AS cSalesBudgetInfo_1
INNER JOIN
PHOENIX.RingDWStaging.dbo.DimBusinessPartners AS DimBusinessPartners_1
ON cSalesBudgetInfo_1.BusinessPartnerID = DimBusinessPartners_1.BusinessPartnerID
INNER JOIN dbo.Accounts
--ON DimBusinessPartners_1.Division + DimBusinessPartners_1.BusinessPartner = dbo.Accounts.BusinessPartner
ON DimBusinessPartners_1.Division = LEFT(dbo.Accounts.BusinessPartner, 3)
AND DimBusinessPartners_1.BusinessPartner = RIGHT(dbo.Accounts.BusinessPartner, 9)
This is part of a larger view that is used nightly in data warehouse reporting.
Any idea why? This accounts table is identical in both servers.