How to Load Multiple CSV Files to Multiple Tables According to File Name in Azure Data Factory

  Рет қаралды 35,271

TechBrothersIT

TechBrothersIT

3 жыл бұрын

How to Load Multiple .csv files (each file with a different schema) from blob to their respective tables in azure SQL server in ADF. In this video, we are going to learn how to create a new table in ADF deepening upon a list of columns in CSV files. Each file will be loaded to a separate table according to FileName. If the table already exists, then it will be loaded without dropping and recreating. IF a table does not exist then it will create a new table and then load the data from CSV File.
How to Load Multiple CSV Files to Multiple Tables According to FileName in Azure Data Factory,
How to Load Multiple .csv files (each file with different schema) from blob to their respective tables in azure SQL server in ADF,
How to load multiple CSV files from Azure Blob to Azure SQL Database,
Load files dynamically in Azure Data Factory,
How to map CSV files dynamically to Tables in Azure Data Factory,
Azure Data Factory Tutorial 2021,TechbrothersIT,ADF Tutorial for beginners
#AzureDataFactoryTutorial

Пікірлер: 41
@mairaacevedo8960
@mairaacevedo8960 Жыл бұрын
Fantastic content. I combined some of your videos to do a bit of a complex task and I'm so happy it worked!. Thanks heaps!
@jayong2370
@jayong2370 Жыл бұрын
Thank you! This is exactly what I was trying to configure.
@maartencastsbroad
@maartencastsbroad 2 жыл бұрын
Great video, exactly what I needed!
@harshanakularatna
@harshanakularatna 2 жыл бұрын
you are awsome. keep it up!
@marcuslawson-composer2892
@marcuslawson-composer2892 2 жыл бұрын
Very helpful video. Thank you!
@TechBrothersIT
@TechBrothersIT 2 жыл бұрын
You are welcome
@neftalimich
@neftalimich 2 жыл бұрын
Thank you very much, was really helpful.
@TechBrothersIT
@TechBrothersIT 2 жыл бұрын
Glad to hear that!
@gebakjes1099
@gebakjes1099 2 жыл бұрын
Thanks! Really helpful!
@TechBrothersIT
@TechBrothersIT 2 жыл бұрын
Glad it helped!
@bitips
@bitips Жыл бұрын
Thanks for share this knowledge. It is fantastic !
@TechBrothersIT
@TechBrothersIT Жыл бұрын
Glad you liked it!
@SRINIVASP-fx5kz
@SRINIVASP-fx5kz Жыл бұрын
excellent video super
@vishal-xf6ev
@vishal-xf6ev 2 жыл бұрын
Hi Brother , Great Video & thanks for sharing :-)
@TechBrothersIT
@TechBrothersIT 2 жыл бұрын
My pleasure
@niteshsoni2282
@niteshsoni2282 Жыл бұрын
THANKS SIR
@Deezubwun
@Deezubwun 2 жыл бұрын
Hi. This was a great help to me. One issue I am having is the data is failing to load due to multiple data type errors (such as String to DATETIME). As the data in the CSV is exported as string, do you have a way of mapping the formatting of each field which is a problem, bearing in mind the columns may be named something different?
@Priming-AI
@Priming-AI 8 ай бұрын
What if I have files a12.csv , b12.csv ? wanting to select only the a*.csv files. how would it be ?
@tomasoon
@tomasoon Жыл бұрын
very great tutorial, i have a question, if I run a pipeline, and there's a new csv file in the bucket with the same schema as other, this method will apend the data to the table with same schema or will create another one?
@piraviperumal2544
@piraviperumal2544 2 жыл бұрын
Hi Brother, Not sure whether Azure team fixed it or not but @replace(item().name,'.txt','') is working fine. I guess you have missed @ sign before replace function in your attempt.
@devops840
@devops840 2 жыл бұрын
Hi Sir, I am able to insert the data using dynamic CSV files, Could you please help me in upserting the data ?
@uditbhargava8762
@uditbhargava8762 Жыл бұрын
Sir can we use split() function to remove .txt ?
@purushothamnaidu5544
@purushothamnaidu5544 2 жыл бұрын
Sir...Can you show once how to load the files available in blob container and load into multiple existing tables in azure sql database, that would be really helpful to me
@ambatiprasanth4292
@ambatiprasanth4292 11 ай бұрын
Brother i was looking for the same... Now did you know how to do it.?
@TheMadPiggy
@TheMadPiggy 3 жыл бұрын
works like a charm, however the auto created tables all are nvarchar(MAX). Not the best for database size, not for useability. Any way around this.
@TechBrothersIT
@TechBrothersIT 3 жыл бұрын
I noticed that too, the data type is nvarchar max. You might want to create final tables once data is loaded and have final tables with correct data types, create stored procedure to load data from these staging tables to your destination tables. if you have already created the tables with correct data type, then you will be fine too.
@williamtenhoven8405
@williamtenhoven8405 7 ай бұрын
Hi, thanks for this ! 1 question. suppose I wanted to convert the csv files to parquet files the how would I proceed ? I used the concat replace, but looking at the target parquet files they seem to be corrupted : The file 'Emp1' may not render correctly as it contains an unrecognized extension. @concat(replace(item().name,'csv','parquet')) does not work either..... Any suggestions ? Thanks
@viswaanand4578
@viswaanand4578 2 жыл бұрын
Hi I can see my csv files in SSMS but cannot see in table format in SSMS also it is in CSV format did i miss anything?
@Eraldi2323
@Eraldi2323 Жыл бұрын
Hi TechBrothers, thanks for this very useful video. I had a question, I am trying to truncate the tables with the following @{concat('truncate table',item().name)} but is not working for me, giving an error Please advise. Thank You
@niranjanchinnu8295
@niranjanchinnu8295 Жыл бұрын
i tried this today as well. My implementation idea is to truncate and insert into tables. For that I truncated the table with TRUNCATE TABLE [SCHEMA_NAME].@{item.name} . After this step if the table exists already then it would truncate. Orelse try pointing a fail output line to the same block that you are pointing the sucess block. So by doing this if table doesnt exists then it will go in the fail block and execute it and if it is present then it will truncate and give you the appropriate results
@boatengappiah2116
@boatengappiah2116 2 жыл бұрын
Great videos. I however don't see any video on SharePoint with ADF. Do you have a video or can you make one? Thank you
@TechBrothersIT
@TechBrothersIT 2 жыл бұрын
Hoping to have one soon. working in many videos and scenarios. thanks for feedback
@insane2093
@insane2093 3 ай бұрын
Small query sir , once created the table, again if new data or new files come with suffix changes like date change then again it create new table or insert the data into the already created table coz you are using auto created option . Thank you in advance
@ayushikankane530
@ayushikankane530 20 күн бұрын
If csv file is hqving some columna as json structure than how to proceed?
@thyagaraj1124
@thyagaraj1124 2 жыл бұрын
Is it possible to load the different source files into existing tables in the SQL server? Means the source file names do not match with the existing table names?
@TechBrothersIT
@TechBrothersIT 2 жыл бұрын
Hi, yes that is possible, but you have to provide some type of source and destination, if file names are different , you can group them in source and then destination table can stay same.
@rohitsethi5696
@rohitsethi5696 Жыл бұрын
hi im rohit can we use copy data activity from CSV files if not why ?
@vijaysagar5984
@vijaysagar5984 2 жыл бұрын
Hi Bro, Any workaround for CSV files which has multiple headers and we can merge them as one Header ? Source is FTP and some files are good and some files has multiple headers.
@TechBrothersIT
@TechBrothersIT 2 жыл бұрын
One of the way could be load the data without header information into staging table and then remove the bad header data and only use clean data.
@kirubababu7127
@kirubababu7127 2 жыл бұрын
How to do this in HTTP server?
@kiranreddy9103
@kiranreddy9103 Жыл бұрын
HI, if file names are like emp1 ,emp2, emp3 etc. in this case how we can write a expression to remove numb ers in REPLACE. could you help us.
Azure Data Factory | Copy multiple tables in Bulk with Lookup & ForEach
23:16
Adam Marczak - Azure for Everyone
Рет қаралды 185 М.
When You Get Ran Over By A Car...
00:15
Jojo Sim
Рет қаралды 28 МЛН
I CAN’T BELIEVE I LOST 😱
00:46
Topper Guild
Рет қаралды 117 МЛН
Who has won ?? 😀 #shortvideo #lizzyisaeva
00:24
Lizzy Isaeva
Рет қаралды 62 МЛН
18. Copy multiple tables in bulk by using Azure Data Factory
18:27
Scenario-10: Copy multiple files from blob storage to azure Sql database
14:20
47. Migrate multiple tables from local SQL DB to Azure SQL DB
23:39
CloudAndDataUniverse
Рет қаралды 6 М.
Azure Data Factory - Incremental Data Copy with Parameters
23:15
Azure Bits and Bytes
Рет қаралды 18 М.
I've been using Redis wrong this whole time...
20:53
Dreams of Code
Рет қаралды 337 М.
PART 52 || DIY Wireless Switch forElectronic Lights - Easy Guide!
1:01
HUBAB__OFFICIAL
Рет қаралды 48 МЛН
Choose a phone for your mom
0:20
ChooseGift
Рет қаралды 7 МЛН
Игровой Комп с Авито за 4500р
1:00
ЖЕЛЕЗНЫЙ КОРОЛЬ
Рет қаралды 2,2 МЛН