Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

execute sql task error

$
0
0

hi,

i am using merger in the execute sql task,

which is like

merge [dbo].[emp] a
using  [dbo].[emp1] b
on a.id=b.id
when matched and a.number =0   then
update set
a.emp=b.emp,

 a.[Address_1] = b.[Address_1] ,
 a.[Address_2] = b.[Address_2] ,
 a.[Address_3] = b.a.[Address_3] ,
 a.[Address_4]  = a.[Address_4] ,

when not matched then

insert 

            -------------------

go

getting error

Error: 0xC002F210 at Execute SQL Task, Execute SQL Task: Executing the query "merge [dbo].[emp] a

using   "Invalid column name 'a'.". Possible failure reasons: Problems with the query, "ResultSet" property not set correctly, parameters not set correctly, or connection not established correctly.

Task failed: Execute SQL Task

 



Viewing all articles
Browse latest Browse all 24688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>