Hi @Glasier
Welcome to Microsoft Q&A Platform. Thank you for posting your query.
As I understand you wants to transfer data from a CSV file in Blob storage to an Azure SQL Database table using the Copy activity in Azure Data Factory. However, you want to include the file name alongside each entry in the table. If this is not, please let me know.
In Mapping columns of copy activity you cannot add the dynamic content of Meta data.
First give the source csv dataset to the Get Metadata activity then join it with copy activity like below.
You can add the file name column by the Additional columns in the copy activity source itself by giving the dynamic content of the Get Meta data Actvity after giving same source csv dataset or else you can give directly as value $$FILENAME to get the filename similarly. @activity('Get Metadata1').output.itemName
Here I am copying the contents of source1_data_preview.csv file to SQL table named samp.
Output
Hope this helps. Do let us know if you any further queries.
If this answers your query, do click Accept Answer and Yes for was this answer helpful. And, if you have any further query do let us know.