Script Task SSIS Example C# | Read File Extensions using Script Task C#

  Рет қаралды 2,043

Gurunatha D

Gurunatha D

Күн бұрын

#SSISScriptTask #ScriptTask
In this video we have demonstrated multiple files in a folder having like "Text" and "Excel" and for ETL process we created to Data Flow Task, One for Excel and One for Text File with Flat file Connection and Excel Source Connection.
Now to get each file from a folder we implemented For-Each Loop Container and each file with Full Qualified Name is been passed to Script Task and by using variables and by using Microsoft C# Code System.IO namespace we read the particular file extension and by expression we redirected file to its respected Data Flow Task and further we did ETL process.

Пікірлер: 17
@akshayk_11
@akshayk_11 2 жыл бұрын
Thank you so much please upload such videos they are really helpful
@gurunathad13
@gurunathad13 6 ай бұрын
Sure Thanks and Happy Learning
@Ali-kh5dp
@Ali-kh5dp 3 жыл бұрын
Very nice video, i was struggling with same requirement in previous story i was working, thank you very much
@bhavikdaruwala5135
@bhavikdaruwala5135 3 жыл бұрын
Great example 👍
@gurunathad13
@gurunathad13 3 жыл бұрын
Thanks and happy learning!!!👍🙏
@thandasooruu181
@thandasooruu181 3 жыл бұрын
PERFECT
@gurunathad13
@gurunathad13 3 жыл бұрын
Thanks and Happy Learning!!!🙏
@thandasooruu181
@thandasooruu181 3 жыл бұрын
@@gurunathad13 bro can you share your number pls. I have huge dought in ssis
@gurunathad13
@gurunathad13 3 жыл бұрын
@@thandasooruu181 kindly mail me your doubt will help you ...Thanks
@thandasooruu181
@thandasooruu181 3 жыл бұрын
@@gurunathad13 mail I'd??
@gurunathad13
@gurunathad13 3 жыл бұрын
@@thandasooruu181 gurumatrix2004@gmail.com
@madhusudhanreddyt2838
@madhusudhanreddyt2838 6 ай бұрын
apart from using the c# code in script task to extract the file extension, we can also use the ssis expressions which are going to be the combination of ssis functions with literals symbols and operators that we can use to extract the file extension from filepath or filename using the below code.. REVERSE(SUBSTRING(REVERSE(@[User::FileName]), 1, FINDSTRING(REVERSE(@[User::FileName]), ".", 1) - 1)) we can use the precedence constraints and evaluate the expressions and based on the file extension we can move the files to different data flow loads
@gurunathad13
@gurunathad13 6 ай бұрын
Agree yes we can do that for these type of scenarios... but what if we want to do more customization ... then that time we require code support.. Thanks
@Kimaya-p7u
@Kimaya-p7u Жыл бұрын
Hello sir kindly share ur contact
For Loop Container in SSIS Example [Real Time Example]
20:50
Gurunatha D
Рет қаралды 7 М.
When Cucumbers Meet PVC Pipe The Results Are Wild! 🤭
00:44
Crafty Buddy
Рет қаралды 59 МЛН
How Much Tape To Stop A Lamborghini?
00:15
MrBeast
Рет қаралды 227 МЛН
The IMPOSSIBLE Puzzle..
00:55
Stokes Twins
Рет қаралды 177 МЛН
ETL Process in SSIS [Bulk CSV Files Example] Step By Step
24:56
Gurunatha D
Рет қаралды 3,5 М.
Simple File Watcher Task example using SSIS Script Task C#-4
19:31
Akhil Vangala
Рет қаралды 9 М.
05 Load only new files in SSIS
13:44
Learn SSIS
Рет қаралды 34 М.
SSIS - Script Task - Check for File Existence
21:35
Learn at Knowstar
Рет қаралды 4,2 М.
147 How to do PGP encryption and decryption using ssis
23:31
Learn SSIS
Рет қаралды 2,2 М.
23 Foreach loop ado enumerator in SSIS example
10:53
Learn SSIS
Рет қаралды 47 М.
When Cucumbers Meet PVC Pipe The Results Are Wild! 🤭
00:44
Crafty Buddy
Рет қаралды 59 МЛН