小编use*_*384的帖子

由于目标表的架构更改,插入批量失败

select
   FiscalMonthID = (select FiscalMonthID from CurrentFiscalMonth (nolock)),
   T.OrgKey,
   DataSourceKey = 26,
   OrganizationTypeKey = 2,
   SourceSystemID = MAX(T.MbsId),
   WEGFlag = convert(bit,0),
   D.CreateDT,
   D.CreateBy,
   D.UpdateDT,
   D.UpdateBy

from WorkDB.dbo.TempMbsOrgMap (nolock) as T
join WorkDB.dbo.MBSOrganization_Denorm2 (nolock) as D
      on T.MbsId = D.OrganizationID
--where OrgKey not in (select OrgKey from OrgMap where FiscalMonthID=258 and DataSourceKey=26 and OrganizationTypeKey=2)
group by
   T.OrgKey,
   D.CreateDT,
   D.CreateBy,
   D.UpdateDT,
   D.UpdateBy
Run Code Online (Sandbox Code Playgroud)

ssis

2
推荐指数
1
解决办法
1万
查看次数

标签 统计

ssis ×1