21 For loop Container in SSIS

แชร์
ฝัง
  • เผยแพร่เมื่อ 9 ก.ย. 2024
  • For loop Container in SSIS | For loop in SSIS
    Download the file\script used in the Video from below link
    drive.google.c...
    SSIS Tutorials: • SSIS Tutorials
    SSIS real time scenarios examples: • SSIS real time scenari...
    SSIS Interview questions and answers: • SSIS Interview questio...
    For loop Container in SSIS
    What is for loop container in SSIS?
    What is the difference between for loop container and foreach loop container in SSIS?
    How do you use a loop container?
    How many types of loop containers are there in SSIS?
    If you have any questions or suggestions please comment on the video or write to me at “aqil33@gmail.com”

ความคิดเห็น • 141

  • @mmusciano
    @mmusciano 2 ปีที่แล้ว +2

    You are an amazing teacher thank you so much for all the hard work you put in into your work.

    • @learnssis
      @learnssis  2 ปีที่แล้ว

      Thank you so much for your kind words.

  • @kapildev2527
    @kapildev2527 5 ปีที่แล้ว +3

    You created a variable named "FilePath" but you didn't used it anywhere.Why?

    • @learnssis
      @learnssis  5 ปีที่แล้ว +1

      ha ha, good point. You caught it. I just watched the video again and yes you are right FilePath was declared but never used. Thanks for pointing it out.

  • @andrewwolfenberger4888
    @andrewwolfenberger4888 10 หลายเดือนก่อน

    Amazingly helpful! Well thought out.. Thank you so much Aqil!

    • @learnssis
      @learnssis  10 หลายเดือนก่อน

      Thank you so much Andrew for appreciating.

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

    Really Worthfull Tutorial. Thanks for the Video.

  • @tariqawan5279
    @tariqawan5279 ปีที่แล้ว

    beautiful. Excellent work and best presentation.

    • @learnssis
      @learnssis  ปีที่แล้ว

      You are most welcome Sir.

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

    such a nice example you gave to for loop container. Thanks for sharing.

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

      Its nice to know that you liked the video Krishna.

  • @NavSalsa
    @NavSalsa ปีที่แล้ว

    Excellent tutorial! thank you!

    • @learnssis
      @learnssis  ปีที่แล้ว

      Thank you Naveed Anwar.

  • @mohanpinagadi7870
    @mohanpinagadi7870 5 ปีที่แล้ว

    Hi it's very good explanation . In this video you have explained looping multiple files from customer 1 to 10 . I want to see you explain all the 10 files to be placed in 1 excel file with different sheets. Customer 1 sheet,2 sheet etc..waiting for that video

    • @learnssis
      @learnssis  5 ปีที่แล้ว

      Hi Mohan, good to know that you liked this video. I have already created a Video to loop through all files in a folder and then loop through all excel sheet in a file and load the data from different sheet, each sheet will contain different columns.
      th-cam.com/video/YWqO9KFTQCo/w-d-xo.html

  • @shahidullahallmahmod5497
    @shahidullahallmahmod5497 4 ปีที่แล้ว

    Just amazingly awesome easy tutorial.

    • @learnssis
      @learnssis  4 ปีที่แล้ว

      Thanks for your comment. Glad you liked the video.

  • @gauravyadavalumni9068
    @gauravyadavalumni9068 4 ปีที่แล้ว

    Excellent demonstration

    • @learnssis
      @learnssis  4 ปีที่แล้ว

      Thanks for your comment, its good to know that you liked the video.

  • @kiranvepa549
    @kiranvepa549 5 ปีที่แล้ว +2

    hi simple and easy explanation! Thank you! I tried loading an xml file with about 10 rows but I only see 1 row loading into the SQL db. Can you please help explain why this happens? I did use a data conversion transform and included unicode/str conversion.

    • @learnssis
      @learnssis  5 ปีที่แล้ว

      It will be very hard to tell without looking at the actual code. Sorry for it.

  • @elmiraxudiyeva6274
    @elmiraxudiyeva6274 5 หลายเดือนก่อน +1

    Hello teacher, thank you very much for the lesson. I have a question. Is it possible to export to a different SQL tables instead of exporting to a different csv files?

    • @learnssis
      @learnssis  5 หลายเดือนก่อน

      Thank you. Yes you can export to a different sql tables. You can use the OLE DB destination to insert into a sql table.

    • @elmiraxudiyeva6274
      @elmiraxudiyeva6274 5 หลายเดือนก่อน

      @@learnssis I dont have table, I want a new table to be created in each loop and data to be inserted there

    • @learnssis
      @learnssis  5 หลายเดือนก่อน +1

      @@elmiraxudiyeva6274 You can use sql queries to create a new table. And you can put the queries inside the execute sql task.

  • @marshalljackson1385
    @marshalljackson1385 5 ปีที่แล้ว

    Nice video. Very helpful. Thank you.

    • @learnssis
      @learnssis  5 ปีที่แล้ว

      Good to know that you liked it.

  • @madhubabug5945
    @madhubabug5945 ปีที่แล้ว

    Hi Aqil, I have an error at 'OLEDBSource' Parameter configuration
    "Parameters cannot be extracted from the SQL command. The provider might not help to parse parameter information from the command. In that case, use the "SQL command from variable" access mode, in which the entire SQL command is stored in a variable." Plz help to overcome it

    • @learnssis
      @learnssis  ปีที่แล้ว

      From OLEDB Source, use SQL Command from Variable. If you want to know how to use it, then take a look at this video
      th-cam.com/video/Ra9jzy80nqQ/w-d-xo.html

  • @pvksmaheeth8816
    @pvksmaheeth8816 2 ปีที่แล้ว

    My destination giving cannot convert unicode and non unicode string data types how to deal

    • @learnssis
      @learnssis  2 ปีที่แล้ว

      Use data conversion transformation to convert unicode to non-unicode or vice versa
      th-cam.com/video/aQJCky2qfCs/w-d-xo.html

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

    If i want ot save the file as a territory name like territory1.csv, territory2.csv..and so on...then how will I manage it?

    • @learnssis
      @learnssis  2 ปีที่แล้ว

      Hi, then in the Flat File Connection Manager, under connection string you would need to put the FileName whatever you would like.

  • @amanahmed6057
    @amanahmed6057 ปีที่แล้ว

    Hi Aqil
    10:30
    There is no connection string in 2019 visual studio,
    Suggest me a solution.

    • @learnssis
      @learnssis  ปีที่แล้ว

      You would need to make a flat file connection manager and then right click on that connection manager, go to properties, then go to expressions, and click on 3 dots next to expression.

    • @amanahmed6057
      @amanahmed6057 ปีที่แล้ว

      @@learnssis 🙌🙌🙌🙌🙌🙌🙌👌👌👌👌

  • @kiransohal3474
    @kiransohal3474 5 ปีที่แล้ว

    helped alot thank u

  • @vinnu236
    @vinnu236 11 หลายเดือนก่อน

    Hello sir, I have one doubt why loop counter is changed from int to string? Can u please clarify me in this sir.

    • @learnssis
      @learnssis  11 หลายเดือนก่อน +1

      Because we are trying to make a file name using the Counter variable and counter variable is of type Int thus even in sql server you can not concatenate a string value with a int value you need to convert int to string only then you can concatenate the 2 values together, same thing we are doing in ssis expression that we are converting int value to string only then we will be able to concatenate "Customer" string with Counter variable.

    • @vinnu236
      @vinnu236 11 หลายเดือนก่อน

      @@learnssis yeah now I got it sir... Didn't realise that one.. Thanks for explanation sir 👍

  • @paradesinarasimha5271
    @paradesinarasimha5271 2 ปีที่แล้ว

    Thank you so much

    • @learnssis
      @learnssis  2 ปีที่แล้ว

      You are most welcome.

  • @Liveyourlifethismoment
    @Liveyourlifethismoment 6 ปีที่แล้ว

    Well explained.Thank you for the video

    • @learnssis
      @learnssis  6 ปีที่แล้ว

      Thank you Pravallika.

    • @Liveyourlifethismoment
      @Liveyourlifethismoment 6 ปีที่แล้ว

      I should Thank you ,as you 've explained it very well and made me understand clearly

    • @learnssis
      @learnssis  6 ปีที่แล้ว

      Very glad to know that you understood it.

  • @lazygamer8760
    @lazygamer8760 2 ปีที่แล้ว

    Thank you so much sir

    • @learnssis
      @learnssis  2 ปีที่แล้ว

      You are most welcome Sir.

  • @ManishVaity-ns1sj
    @ManishVaity-ns1sj ปีที่แล้ว

    11:08 Hi, can you please provide what "Expression" you used there? Please comment.

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

      Here you go, you can also download the expressions from the link in the description of video.
      ""+ @[User::FolderPath] +"\\Customer"+(DT_WSTR,12 ) @[User::LoopCounter] +".CSV"

    • @ManishVaity-ns1sj
      @ManishVaity-ns1sj ปีที่แล้ว

      @@learnssis thanks a lot!

  • @priyanshidangi6968
    @priyanshidangi6968 ปีที่แล้ว

    only getting one file Customer1.csv? how can i fix it

    • @learnssis
      @learnssis  ปีที่แล้ว

      In the flat file connection manager, you need to set the connection string through expression as shown in the video. Setting the connection string of flat file connection manager will allow the ssis package to create a new csv file for each value got from sql server table.

    • @priyanshidangi6968
      @priyanshidangi6968 ปีที่แล้ว

      @@learnssis setting everything still not getting only one file customer1.CSV

    • @learnssis
      @learnssis  ปีที่แล้ว

      @@priyanshidangi6968 Can you share the screenshot of connection string property from expression of flat file connection manager to aqil33@gmail.com ?

  • @thejeshudaya5620
    @thejeshudaya5620 6 ปีที่แล้ว

    Very nice work mr.ahmed....helping a lot...thank you..... can you please do some complex tasks that are faced in reatime

    • @learnssis
      @learnssis  6 ปีที่แล้ว +2

      Its good to know THEJESH that you liked it. Sure, in coming days I will post more real time scenarios in SSIS.

  • @MVinodKumar-tt1tu
    @MVinodKumar-tt1tu 10 หลายเดือนก่อน

    Hello Sir,
    In Flat File Destination I gave File name as "Customer_data1.txt" and in the expression ""+ @[User::FolderPath] +"\\Customer_Data"+ (DT_WSTR,12)@[User::LoopCounter] +".txt" I used like this.
    After Execution of Package I got 10 text files other than the file which i used in the Flat File Destination. And the file used in Flat FIle Destination doesnt have data. Other 10 Files which got generated has Data.

    • @learnssis
      @learnssis  10 หลายเดือนก่อน +1

      This is the expected behavior of SSIS package. Because you set the ConnectionManager property of flat file connection dynamically to assigned from Expression thus those 10 files got generated accordingly.

    • @MVinodKumar-tt1tu
      @MVinodKumar-tt1tu 10 หลายเดือนก่อน

      @@learnssis Yes Sir got it. But in the video there was only 10 files. So, I got 11 totally sir

    • @learnssis
      @learnssis  10 หลายเดือนก่อน +1

      @@MVinodKumar-tt1tuDelete that extra file, it was because you created it during design time it won't be created in future.

    • @MVinodKumar-tt1tu
      @MVinodKumar-tt1tu 10 หลายเดือนก่อน

      @@learnssisYeah Got it Sir. It is just to give a CSV/Text file and its path for reference to create the files in that location.

    • @learnssis
      @learnssis  10 หลายเดือนก่อน

      @@MVinodKumar-tt1tu Correct.

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

    Hi Aqil...If i didnt set dynamic names i will get TerritoryId=10 values right? not all the values will be placed inside my .csv file?

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

      Correct.

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

      @@learnssis Thanks for your answer !!!I have one more question sorry for disturbing you im new to SSIS ...my source is a flat file having Material ID 's like
      0000001234KNA1
      0000002345KNC
      0000006547KNV
      In the destination i have tables like
      tbKNA1
      tbKNC
      tbKNV
      which transformation i should choose to print my material id's correctly to the respective tables? will Script task work this case?

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

      @@nivethamurugavel4972 no problem.
      For this case you can use conditional split transformation and in the conditional split transformation, you can extract right 4 characters from the material id and then it will be written to the respective destination table accordingly.

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

      @@learnssis Thank you Aqil for your answer

  • @sriniwaaskorampalli8145
    @sriniwaaskorampalli8145 2 ปีที่แล้ว

    hi sir...why the text qualifier has been mentioned here? whats the diff?

    • @learnssis
      @learnssis  2 ปีที่แล้ว +1

      Text qualifier is used to surround the column data by some specific character. For example when we export data from a sql server table to a CSV file and if data in csv file is separated by comma like below
      id,name,address
      1,srini,c10 new delhi
      2,aqil,a20, noida
      Thus if you look at the address of second record we have comma in the address, thus now it won't be exported correctly to csv file as SSIS will think that address is completed till first comma in the address, thus we use text qualifier and we surround the column by a text qualifier like double quotes, using the text qualifier the data will look like below
      "id","name","address"
      "1","srini","c10 new delhi"
      "2","aqil","a20, noida"
      Now SSIS will treat all data from beginning of a double quote till end of the double quote.

    • @sriniwaaskorampalli8145
      @sriniwaaskorampalli8145 2 ปีที่แล้ว

      @@learnssis thank you sir...blessed to have visited your channel to learn ssis.

    • @learnssis
      @learnssis  2 ปีที่แล้ว

      @@sriniwaaskorampalli8145 you are most welcome Srini.

  • @shwetadalal1549
    @shwetadalal1549 2 ปีที่แล้ว

    The same can also be done using ADO enumerator of Foreach loop container. Right?

    • @learnssis
      @learnssis  2 ปีที่แล้ว +1

      Correct. I should have given the better example of For loop.

  • @mahmoudhassanine9905
    @mahmoudhassanine9905 ปีที่แล้ว

    Great vedio
    but please I cannot find this connection string on the dropdown list

    • @learnssis
      @learnssis  ปีที่แล้ว

      Can you tell me at which location you are unable to find the connection string ?

  • @sumanthbalaji5157
    @sumanthbalaji5157 2 ปีที่แล้ว

    nice tutorial

    • @learnssis
      @learnssis  2 ปีที่แล้ว

      Thank you Sumanth.

  • @Shankar-zi3yk
    @Shankar-zi3yk 9 หลายเดือนก่อน

    Can we do the same task using for each loop container

    • @learnssis
      @learnssis  9 หลายเดือนก่อน

      Yes we can do that.

  • @saibabac7431
    @saibabac7431 4 ปีที่แล้ว

    Hii sir simple and very good explanation . And i have a doubt that why we need to create variables here , Can u explain briefly.

    • @learnssis
      @learnssis  4 ปีที่แล้ว

      For loop will run an iteration, so there should be an SSIS variable which can hold the current value of iteration. For example we are running for loop from 1 to 10. So there should be a way to know at which iteration the process is running at a particular time. So to hold the iteration value we need to have an SSIS variable. Thanks.

  • @harinath2483
    @harinath2483 7 ปีที่แล้ว +1

    Hi, thanks for the video and its very good example. In this control flow how can we make the for loop to take the minimum territory id also from the database similar to max(territoryid)?

    • @learnssis
      @learnssis  7 ปีที่แล้ว

      Hi thanks for your comment. To take the min territoryid from database write the query like below
      SELECT MAX(TERRITORYID) MAXT, MIN(TERRITORYID) MINT FROM [Sales].[Customer]
      ibb.co/h8Njfk
      It should return max and min territoryid, then put this select query into the Execute SQL Task - Get MaxTerritoryId
      Declare a new SSIS variable MinTerritoryId of type Int32.
      Navigate to Execute SQL Task, right click on it, go to result set.
      Click Add button to Add a new row and provide Result Name as 1 and choose the MinTerritoryId under Variable Name.
      This way SSIS Variable MinTerritoryId will contain the value of MinTerritoryId from Database.
      ibb.co/msHvmQ
      Then if you want to start the loop from MinTerritoryId instead of value 1 then you can do that, by replacing the Loop Starting with MinTerritoryId instead of 1.
      ibb.co/dUEamQ
      I have tested the package after making above changes and changes seems fine to me, I debugged the package and it is running fine
      ibb.co/mx4x0k

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

      @@learnssis Hello Aqil, is there a way to define max. and min. for a name(text). For example, I have a sales data for cities Bangalore, Delhi, Hyderabad and Mumbai. How to extract data for each city to separate csv files similar to numerical territory id's?
      Thanks in advance.

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

      @@khbeyonce You will need to use the conditional split for such scenario and in the Conditional split you can define a conditional for each City and then use that defined output to get the data for a particular city.

  • @darbardarbar9460
    @darbardarbar9460 2 ปีที่แล้ว

    what is differences between ssis tester and ssis developer please explain me

    • @learnssis
      @learnssis  2 ปีที่แล้ว

      May be I can make a detailed video on this one, but in short, ssis developer is responsible for creating the SSIS packages, while ssis tester is responsible for making sure that the SSIS packages are doing exactly the same thing for what they were create for.

    • @darbardarbar9460
      @darbardarbar9460 2 ปีที่แล้ว

      Thank you sir Eid Mubarak you and your family members

    • @learnssis
      @learnssis  2 ปีที่แล้ว

      @@darbardarbar9460 Thank you Parveen.

  • @suruchigohel5555
    @suruchigohel5555 2 ปีที่แล้ว

    ye visual studio code he na ?

  • @sriniwaaskorampalli8145
    @sriniwaaskorampalli8145 2 ปีที่แล้ว

    Sir what is the use of "Connection String" can you define this....

    • @learnssis
      @learnssis  2 ปีที่แล้ว

      Connection string is a property in flat file connection manager which is used to connect to a particular file. You can think of connection string as full file path.

  • @armaankadiwala6049
    @armaankadiwala6049 4 ปีที่แล้ว

    Hi sir, when I am using Excel destination instead of CSV I am facing an issue. Can you send me the steps that would be easy for me.

    • @learnssis
      @learnssis  4 ปีที่แล้ว

      Hi, Can you take a look at below video
      th-cam.com/video/88XH96gSA0U/w-d-xo.html

    • @mahamuthashameem3250
      @mahamuthashameem3250 2 ปีที่แล้ว

      @@learnssis hi its showing video is private. not able to see. Could you please help on this.

    • @learnssis
      @learnssis  2 ปีที่แล้ว

      @@mahamuthashameem3250 I have updated the link of the video
      th-cam.com/video/88XH96gSA0U/w-d-xo.html

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

    Hey great video
    But can I get txt file to add these data into the database , it will help me a lot
    Thanks

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

      First you can create the package as shown in the video, it will generate the files from adventureworks database and then you can create another package to import those files back to the database. Right now I don't have those files.

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

    Good day Aqil, I suggest you to provide the sample files you use in your tutorial videos for us to follow along and practice.
    It becomes difficult to get such sample files for beginners.

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

      Sure, will try to get those files and will provide them may be on google drive. Thanks.

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

      Hi, I have created below link and will share it in the description of each video to download the files used in a video.
      drive.google.com/drive/folders/1PZF0bC7UitqEGEoUDx8QAW0f5WIsIZ7h?usp=sharing

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

    Text qualifier " what that means can you explain

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

      Hi Krishna, in CSV files, most of the times, each column will be separated by a comma delimiter or sometimes it will be separated by a Pipe delimiter. Now Suppose you are storing Addresses in a CSV files and there are chances that Address can have comma in the Address itself, thus it will be hard to know if comma is in Address or it is a delimiter so separate 2 columns. Like below, Address has comma in it
      Id, Name, Address,Phone
      1,Krishna,C-12,Chandni Chowk,Delhi,8377125452
      To handle this, we enclose each column most of the time with double quote ", this " is called as text qualifier. Above data with text qualifier will look like below
      "Id","Name","Address","Phone"
      "1","Krishna","C-12,Chandni Chowk,Delhi","8377125452"
      Thus everything from starting a " and until ending the " is a column value.

  • @parulgupta2535
    @parulgupta2535 2 ปีที่แล้ว

    As a beginner I am not able to understand why we are doing any particular step

    • @learnssis
      @learnssis  2 ปีที่แล้ว

      You should try to watch the videos in a sequence starting from video no 1 in increasing order. You should be able to understand the concepts
      SSIS Tutorials: th-cam.com/play/PL_YF--8vjjEVEXMf2hEFn0D5tEJV9kRqi.html

  • @lakshayarora3935
    @lakshayarora3935 4 ปีที่แล้ว

    Hi Thanks for the video. Could you also provide the sql script from where I can create the table(which you created in the video in SSIS) for practice.
    Thanks!! :):)

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

      Hi Lakshay, in the description of this video, I have provided the link to google drive from there you can download the create table script for this video. Thanks.

  • @dilipkumar-ck1nc
    @dilipkumar-ck1nc 2 ปีที่แล้ว

    Expression builder not properly zoomed and the code is not in notepad

    • @learnssis
      @learnssis  2 ปีที่แล้ว

      Okay, I will put the code inside notepad today.

    • @learnssis
      @learnssis  2 ปีที่แล้ว

      I have uploaded the expression file.

    • @dilipkumar-ck1nc
      @dilipkumar-ck1nc 2 ปีที่แล้ว

      @@learnssis can u provide link

    • @learnssis
      @learnssis  2 ปีที่แล้ว

      @@dilipkumar-ck1nc The link is in the description of each video. You will find a folder for each video and you can download the files from there.

    • @dilipkumar-ck1nc
      @dilipkumar-ck1nc 2 ปีที่แล้ว

      @@learnssis I have downloaded google drive folder in zip format I also unzip it there is no code updated

  • @Teja0709
    @Teja0709 ปีที่แล้ว

    Thats very great explanation!!Have you done any video where it fetches data from multiple tables and output to a single text file. I mean like for example my database have 3 tables and each table have a column common called rownum and all those 3 tables are joined using this rownum. So i need to get content in output file like this
    Rownum1 firsttabledata
    Rownum1 secondtabledata
    Rownum1 thirdtabledata
    And the go to next row num
    Rownum2 firsttabledata
    Rownum2 secondtabledata
    Rownum2 thirdtabledata
    So basically it has to loop through each row in 3 tables with the rownum1 and oitput to the single file and then again loop through each row in all 3 tables with rownum2. How to achieve this???
    It would be great if you could give any suggestion that would help in implementing the above wat
    Rownum2

    • @learnssis
      @learnssis  ปีที่แล้ว

      You can use Union to combine the data from multiple tables into a single result set and then put this in a cte and do an order by RowNumber.
      You can use this query inside OLE DB Source which will select data from all 3 tables and then you can use flat file destination to export the data to a flat file.
      create table t1(Id int, val varchar(50))
      create table t2(Id int, val varchar(50))
      create table t3(Id int, val varchar(50))
      insert into t1 values
      (1,'t1 data 1'),(2,'t1 data 2')
      insert into t2 values
      (1,'t2 data 1'),(2,'t2 data 2')
      insert into t3 values
      (1,'t3 data 1'),(2,'t3 data 2')
      with cte
      as
      (
      select * from t1
      union
      select * from t2
      union
      select * from t3
      )
      select * from cte order by id

    • @Teja0709
      @Teja0709 ปีที่แล้ว

      Thank you so much it worked!!@@learnssis

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

      @@Teja0709 Glad it worked for you.

    • @Teja0709
      @Teja0709 ปีที่แล้ว

      @@learnssis can i ask you one more question
      I have a dataflow task and many execute sql tasks. So my data flow task that contains oledbsource, row count transformation and a flat file destination. I need to generate the flat file only when i when the variable in row count transformation returns rows greater than 0. If it returns 0, I should not generate a flat file. Where should i set this condition and how to do and many thanks for your help

    • @learnssis
      @learnssis  ปีที่แล้ว

      @@Teja0709 If the row count transformation is inside the data flow task then the flat file will always be generated either the rowcount is 0 or more. One of the method to achieve this will be, use an execute sql task before data flow task and in the execute sql task write the select query that will return the count of number of records to export and assign it an SSIS variable.
      Now use a precedence constraints between execute sql task and data flow task and write a condition in expression and constraints
      if ssisvariable>0
      this way it will only execute the data flow task if the count of ssisvariable will be greater than zero.

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

    your tutorials are helpful but not so explanatory. please try to elaborate more about things man.

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

      Thanks for your comment. Sure, will take care.

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

    your explanation good but y should we use that options not explain briefly

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

      Hey, thanks for your comment, which option you are talking about ?

  • @flogzer0
    @flogzer0 8 หลายเดือนก่อน

    I wonder if your kid still screams at you

    • @learnssis
      @learnssis  8 หลายเดือนก่อน

      ha ha. Yeah there are a lot noises in my old videos 😀