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

แชร์
ฝัง
  • เผยแพร่เมื่อ 21 เม.ย. 2021
  • #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 ปีที่แล้ว +2

    Thank you so much please upload such videos they are really helpful

    • @gurunathad13
      @gurunathad13  2 หลายเดือนก่อน

      Sure Thanks and Happy Learning

  • @Ali-kh5dp
    @Ali-kh5dp 2 ปีที่แล้ว +1

    Very nice video, i was struggling with same requirement in previous story i was working, thank you very much

  • @bhavikdaruwala5135
    @bhavikdaruwala5135 3 ปีที่แล้ว +1

    Great example 👍

    • @gurunathad13
      @gurunathad13  3 ปีที่แล้ว

      Thanks and happy learning!!!👍🙏

  • @thandasooruu181
    @thandasooruu181 3 ปีที่แล้ว +1

    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 2 หลายเดือนก่อน +1

    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  2 หลายเดือนก่อน

      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

  • @user-lm7of6nj3g
    @user-lm7of6nj3g ปีที่แล้ว

    Hello sir kindly share ur contact