Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/kubernetes/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/video/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Sql server 2012 SSIS SSQL任务错误_Sql Server 2012 - Fatal编程技术网

Sql server 2012 SSIS SSQL任务错误

Sql server 2012 SSIS SSQL任务错误,sql-server-2012,Sql Server 2012,我试图在SSIS中使用SQL任务更新表,但遇到错误:无法绑定多部分标识符“a.SourceSystemKey” Update BMR_STAGE.dbo.STG_AL_VSAccountStatuses set a.SourceSystemKey = b.SourceSystemKey ,a.SourceSystem = b.SourceSystem ,a.NLCompany = b.NLCompany ,a.AccountStatus = b.AccountStatus ,a.Descript

我试图在SSIS中使用SQL任务更新表,但遇到错误:无法绑定多部分标识符“a.SourceSystemKey”

Update BMR_STAGE.dbo.STG_AL_VSAccountStatuses
set a.SourceSystemKey = b.SourceSystemKey
,a.SourceSystem = b.SourceSystem
,a.NLCompany = b.NLCompany
,a.AccountStatus = b.AccountStatus
,a.Description = b.Description
,a.InsertAuditKey = b.InsertAuditKey
,a.UpdateAuditKey = b.UpdateAuditKey
,a.ChangeDate = b.ChangeDate
from  BMR_STAGE.dbo.STG_AL_VSAccountStatuses a, BMR_STAGE.dbo.TMP_STG_AL_VSAccountStatuses b
where a.ID =b.ID

该错误表示没有名为a.SourceSystemKey的字段,或者在该范围内无法识别别名a。尝试使用显式联接语法

Update a 
set  
a.SourceSystemKey = b.SourceSystemKey
,a.SourceSystem = b.SourceSystem
,a.NLCompany = b.NLCompany
,a.AccountStatus = b.AccountStatus
,a.Description = b.Description
,a.InsertAuditKey = b.InsertAuditKey
,a.UpdateAuditKey = b.UpdateAuditKey
,a.ChangeDate = b.ChangeDate
from BMR_STAGE.dbo.STG_AL_VSAccountStatuses a inner join 
BMR_STAGE.dbo.TMP_STG_AL_VSAccountStatuses b on a.ID = b.ID