I am using SQL code activity to do insert into custom table . From the the below code i want the data from enrichment before sql code activity. Can some one give me sample query to fetch values from enrichment and insert into table.
If you are trying to view the data being inserted then you can either perform a preview, or you can execute the workflow to the point where the enrichment runs, then simply right click on the output transition from the enrichment. This will allow you to view the data and export it if desired.
When it comes to inserting the data, I would not recommend using the SQL Code activity but instead using the update data activity. The SQL activity doesn't actually execute SQL within the activity itself but calls upon templates (see documentation below):