How to create Text or CSV File Dynamically from a Stored Procedure in SSIS Package-P180

How to create Text or CSV File Dynamically from a Stored Procedure in SSIS Package-P180

TechBrothersIT

8 лет назад

24,635 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@ARC_Indian
@ARC_Indian - 13.10.2022 12:19

thanks

Ответить
@TOBY001
@TOBY001 - 27.09.2022 17:28

Ot dushi brat raxxmat

Ответить
@jasonfreed7563
@jasonfreed7563 - 11.05.2022 19:13

Thank you for the video - but can you help answer a question. I am getting this error "System.InvalidOperationException: ExecuteReader requires an open and available Connection. The connection's current state is closed." on the second enumeration. First run through the loop is fine and the file outputs properly. On the second, all of the preceding SQL tasks are running but then it fails on the script task.

Ответить
@alandotchin1829
@alandotchin1829 - 08.02.2022 02:18

Great video, looking forward to working through your other tutorials. It's great that you also have a website with all your resources on. Keep up the good work!

Ответить
@lmanbahadur
@lmanbahadur - 08.06.2021 18:23

Superb man! Great video. Awesome!!!

Ответить
@jerrysullivan5529
@jerrysullivan5529 - 30.03.2021 15:37

Great video! Very well done!

Ответить
@marcdeguise5194
@marcdeguise5194 - 05.10.2020 20:43

What can i change in the script to make the CSV file without column headers.

Ответить
@PratibhaAdake
@PratibhaAdake - 30.09.2020 07:27

Thank you so much..I was going through n number of articles for this..but this worked like miracle for me..but just one question..I have NULL values inside the table which sp is returning and the CSV file to which I am writing data using script task it shows empty rows for null values..but I want to show NULL

Ответить
@marioncrutchfield3427
@marioncrutchfield3427 - 18.08.2020 20:22

I was able to satisfactory create my file...thank you so much!

Ответить
@dz-zs2vj
@dz-zs2vj - 09.04.2020 14:06

hi I have export an excel csv file and I want to add a column using conditional fractionation transformer in ssis how i do that ?

Ответить
@aliazad1118
@aliazad1118 - 11.12.2019 21:26

Perfect as usual. Thanks a lot.

Ответить
@motheranddaughters1176
@motheranddaughters1176 - 01.10.2019 00:05

Question: I have tried to do this using SSIS 2008 I keep having the error message below. Can someone advise me how to fix this? Thanks
oft.SqlServer.Dts.Runtime.DtsRuntimeException: The element cannot be found in a collection. This error happens when you try to retrieve an element from a collection on a container during execution of the package and the element is not there.
---> System.Runtime.InteropServices.COMException (0xC0010009): The element cannot be found in a collection. This error happens when you try to retrieve an element from a collection on a container during execution of the package and the element is not there.

Ответить
@SuperPeterpan79
@SuperPeterpan79 - 20.08.2019 15:46

Great Video, Indeed. "JazakAllah O Khairun Aamir." With due respect, its going to invoke Stored procedure for every region. Is it possible to execute the stored procedure only once and then slice and dice.. But anyway Many Thanks

Ответить
@brendab7526
@brendab7526 - 17.07.2019 02:47

Great video! I have never used Visual Studio before and was able to follow along and tweak it for my needs. Thanks for posting!

Ответить
@gopalupadhyay9774
@gopalupadhyay9774 - 06.05.2019 12:20

Great Video

Ответить
@naknaktozz8120
@naknaktozz8120 - 04.03.2019 18:08

Worked perfectly thank you and is easily reconfigurable

Ответить
@hariharan815
@hariharan815 - 28.08.2018 23:25

Thank Amir. Everything works fine except comma delimiter. I've tried everything same as u did but columns are not separated for me with commas. Please help

Ответить
@jccorreafund
@jccorreafund - 10.04.2018 20:58

This is really good. I have looked for several tutorials and this one is the closest to reality--configurable, flexible etc. Other videos are too oriented to demo scenarios with hardcoded values and of little usefulness to a real world case. Thanks for such a good intro it was really helpful

Ответить
@KalugampitiyaJayakody
@KalugampitiyaJayakody - 10.02.2018 12:31

extremely very good video to learn

Ответить
@gayathrimanikandan9857
@gayathrimanikandan9857 - 12.09.2017 19:02

Hi amir, How do you pass my destination folder located in different server to the variable?

Ответить
@srikanthreddy9362
@srikanthreddy9362 - 30.08.2017 09:23

Thank you so much Aamir!! You are a life saver :-)

Ответить
@RC-nn1ld
@RC-nn1ld - 11.08.2017 12:58

Change line to: sw = new StreamWriter(FileFullPath, false, System.Text.Encoding.UTF8);

Ответить
@RC-nn1ld
@RC-nn1ld - 10.08.2017 17:39

Fantastic coding! Any one know how to amend it so the file is not Encoding as ANSI but writes to a file Encoding as UTF-8?

Ответить
@konwaryujujitsukai2238
@konwaryujujitsukai2238 - 07.07.2017 23:17

Excellent video! Exactly what I needed!

Ответить
@curtisashley7037
@curtisashley7037 - 08.06.2017 08:47

Great job! Works like a charm. Thank you for sharing.

Ответить
@felix567ify
@felix567ify - 20.01.2017 10:11

thank you so much

Ответить
@irynapasechnik8372
@irynapasechnik8372 - 06.08.2016 20:58

Good stuff, just needed to pass two parameters to my procedure Works great.

Ответить