SQL 服务器 2008 迁移到 2019

SQL Server 2008 Migration to 2019

我正在尝试使用 Data Migration Assistant 将我的 2008 数据库迁移到 2019。 不幸的是,我在过程中有一个不合格的连接(行为更改),我不知道如何修复它。

代码如下:

FROM Codebar
INNER JOIN Codebar_IdentPag ON Codebar_IdentPag.Tipo = Codebar.Tipo,  
Account
INNER JOIN AccountName ON AccountId = Account.Id 
LEFT JOIN AccountType2 ON AccountType2.Codigo = AccountType2Cod  
LEFT JOIN AccountType ON AccountType.Codigo = AccountTypeCod  
LEFT JOIN AccountPlan ON AccountPlan .Codigo = AccountPlanCod 
LEFT JOIN Currency ON Currency.Codigo = CurrencyCod
LEFT JOIN Country Country1 ON Country1 .Codigo = CountryCod
WHERE Account.Id = @numAccount  
AND Codebar.Id = @idCodebar  

我认为问题出现在第一个INNER JOIN

我的问题可能是什么原因造成的?

您的 JOIN 语法有点过时,只需修正即可:

FROM Codebar cb INNER JOIN
     Codebar_IdentPagon IP 
     ON IP.Tipo = Tipo INNER JOIN
     Account A
     ON < whatever mapping you have > INNER JOIN
     AccountName AN
     ON AN.AccountId = A.ID