18 Script Task in SSIS | Using script task in SSIS

  Рет қаралды 51,182

Learn SSIS

Learn SSIS

Күн бұрын

Пікірлер: 87
@thepriestofvaranasi
@thepriestofvaranasi Жыл бұрын
Bhai your channel and videos are a blessing. Thanks a lot.
@learnssis
@learnssis Жыл бұрын
Thank you so much for appreciating. You are most welcome.
@samama1975
@samama1975 5 жыл бұрын
Great tutorial. Would be better if the package could be run more than once. This can be done by adding a bit more logic to the script. Thank you
@learnssis
@learnssis 5 жыл бұрын
Yes you are right, we can have may be part 2 of Script Task.
@faheemiqbal3865
@faheemiqbal3865 10 ай бұрын
Good explaination to start using script task, thanks
@learnssis
@learnssis 10 ай бұрын
Thank you Faheem.
@sujithkumarjack
@sujithkumarjack 3 жыл бұрын
Excellent!!! domo..!!!
@learnssis
@learnssis 3 жыл бұрын
Thank you.
@LakshmiSivaKarthikPadala-y9h
@LakshmiSivaKarthikPadala-y9h Ай бұрын
Hi, I'm learning SSIS from your playlist, thank you so much for your effort. I have a doubt, this approach sees to be too tedious task. Why can't I create a txt file in folder and move the file using "File system task"?
@learnssis
@learnssis Ай бұрын
yes you are right, we can also move the files from one folder to another using File System task. Also there is a change in below video, you don't need to give the full file path to the destination path variable, just give the archive folder location and it should be sufficient kzbin.info/www/bejne/f5PMlnd3ltmZa68
@DeepamGhosh
@DeepamGhosh 5 ай бұрын
how to create dynamic connection string for connecting to different sql servers in Script task
@learnssis
@learnssis 5 ай бұрын
Take a look at this page stackoverflow.com/questions/7531581/ssis-c-sharp-script-task-how-to-change-a-sql-connection-string-based-on-server Create a new Script Task before your SQL Query tasks. Use a script task to update the ConnectionString like this (assuming your connection name is "SQLConnection": Dts.Connections("SQLConnection").ConnectionString = "Data Source =" + System.Environment.MachineName.ToString() + ";Initial Catalog =myDataBase; Integrated Security =SSPI;"; In above connection string for data source you can provide some other value as well instead of using System.Environment.MachineName.ToString(), you can provide your sql server instance name. You can use chatgpt to validate and correct the C# code.
@DeepamGhosh
@DeepamGhosh 5 ай бұрын
@@learnssis Thanks for the response. I am able to achieve this by creating a script task using the C# code inside it to dynamically built the connection string. Your videos are very simple and easy to understand, thanks!!
@learnssis
@learnssis 5 ай бұрын
@@DeepamGhosh Glad you were able to do that. Thank you.
@nivethamurugavel4972
@nivethamurugavel4972 3 жыл бұрын
Very useful
@learnssis
@learnssis 3 жыл бұрын
Thank you Nivetha that you found the video useful.
@anirudha_wellwisher
@anirudha_wellwisher 2 жыл бұрын
Hello Sir I am getting error in Edit Script Task can you help me on this sir. I am using SSDT 2012. My Edit Task Option is not working when i click on Edit Task Button No window is opening Please me on this sir
@learnssis
@learnssis 2 жыл бұрын
It means that proper components to work with Script task are not installed on your machine. you would need to repair the Integration services on your machine.
@anirudha_wellwisher
@anirudha_wellwisher 2 жыл бұрын
@@learnssis From Which option I do this sir.. Can you please explain stepwise flow to repair Sir
@learnssis
@learnssis 2 жыл бұрын
​@@anirudha_wellwisher When you will try to install it, then there will be an option to repair it, thus you can do a repair. Or Do uninstall and reinstall kzbin.info/www/bejne/Zn_Sq3yMpLOsj5Y
@anirudha_wellwisher
@anirudha_wellwisher 2 жыл бұрын
@@learnssisAqil Sir I go through with your suggestion but it isn't worked for my system. What should be the Alternate solution ?
@learnssis
@learnssis 2 жыл бұрын
@@anirudha_wellwisher Do you have admin rights on the machine ? Did you uninstalled and reinstalled SSIS ? Can you try to open visual studio in admin mode by right clicking on it and run as administrator ?
@eswaranche2262
@eswaranche2262 3 жыл бұрын
is this sql statement queries, which you using in the current vidieo
@learnssis
@learnssis 3 жыл бұрын
No, this is actually C# code.
@kichuchinnu3303
@kichuchinnu3303 2 жыл бұрын
Hii if file exist in a path(folder) then create a new csv file . Any video for this concept sir by using script task
@learnssis
@learnssis 2 жыл бұрын
Sorry I did not get this one. Can you please elaborate in detail ?
@kichuchinnu3303
@kichuchinnu3303 2 жыл бұрын
@@learnssis if csv file name exist in a folder then need to create a new file in the same folder
@kichuchinnu3303
@kichuchinnu3303 2 жыл бұрын
Hope you undustnd sir please help me
@learnssis
@learnssis 2 жыл бұрын
​@@kichuchinnu3303 Okay got it. but what contents you want in the new file ? And how you want the new file to be named ? For example if Customer.CSV file exists then in second run we can create a file with the name Customer_1.CSV and second time it should create a file Customer_2.CSV and so on.
@kichuchinnu3303
@kichuchinnu3303 2 жыл бұрын
@@learnssis yess exactly sir this what I want sir can you help me sir
@antoniolupen6138
@antoniolupen6138 Жыл бұрын
i don´t know C#. Is it possible to execute the same task without modifying the script manually ?
@learnssis
@learnssis Жыл бұрын
Yes you can execute the same task without modifying the script.
@priyankapothuraju2809
@priyankapothuraju2809 13 күн бұрын
like your playlist
@learnssis
@learnssis 13 күн бұрын
Thank you.
@kichuchinnu3303
@kichuchinnu3303 2 жыл бұрын
Hiiii how to change or update a file name in ssis package using script task
@kichuchinnu3303
@kichuchinnu3303 2 жыл бұрын
Please rly it will be more helpful for me
@learnssis
@learnssis 2 жыл бұрын
@@kichuchinnu3303 There is just one line of code to rename a file in C# using Script task System.IO.File.Move("oldfilename", "newfilename");
@kichuchinnu3303
@kichuchinnu3303 2 жыл бұрын
@@learnssis where should I add that please tell am new to this
@learnssis
@learnssis 2 жыл бұрын
@@kichuchinnu3303 Let me make a short video on this one.
@kichuchinnu3303
@kichuchinnu3303 2 жыл бұрын
@@learnssis thank you so much.. hope will get the video by today itself bro please please 🙏
@naveedzaman3533
@naveedzaman3533 2 жыл бұрын
too good right on target.
@learnssis
@learnssis 2 жыл бұрын
Glad you liked the video.
@pranavratnalikar
@pranavratnalikar 4 жыл бұрын
Sir the target is throwing an exception of an invocation with a huge error code
@learnssis
@learnssis 4 жыл бұрын
Did you tried to debug the code ? Put a breakpoint and try to debug. Only after debug we can know the exact reason for error as it does not give the very accurate error message. Thanks.
@sushmasushma5461
@sushmasushma5461 5 жыл бұрын
GETTING ERROR"Error: Exception has been thrown by the target of an invocation." PLS HELP
@learnssis
@learnssis 5 жыл бұрын
Hi Sushma, it seems there is some issue with the code. You need to open the script and after placing a breakpoint in the code you should debug it, only then you can identify the issue. Thanks.
@MrShaarkrat
@MrShaarkrat Жыл бұрын
Hi! I use a script task to log task errors (with the event handlers). I lave lots of tasks (like 50). Is it possible to write one script, save it somewhere and tell the script task to execute this particuler script? So the day I have a modification in my error script, I don't have to do it 50 times
@learnssis
@learnssis Жыл бұрын
You can use the OnError event of SSIS package, this way you won't need to place the Script task for each task in your ssis package instead the script task will be executed for an error on any task inside the ssis package.
@MrShaarkrat
@MrShaarkrat Жыл бұрын
@@learnssis thank you for your answer. unfortunately it doesn't seem to work: The "send mail" task logs its errors in the same file that is sent as an attachment. This results in an error at runtime
@asifshahzad5178
@asifshahzad5178 3 жыл бұрын
Great effort. I m using SSIS 2019. When I click script task, the libraries it is adding not as in your task. How I can add dts.task? I cannot find it.
@learnssis
@learnssis 3 жыл бұрын
Hi, thanks for your comment. I don't see any dts.task library in the code. Why you need that library ?
@saranyapratyusha6464
@saranyapratyusha6464 2 жыл бұрын
sir,is it mandetory to learn c# for ssis?
@learnssis
@learnssis 2 жыл бұрын
A basic C# is good but not mandatory.
@mahmoudhassanine9905
@mahmoudhassanine9905 2 жыл бұрын
I can't find script task component on my toolbox
@learnssis
@learnssis 2 жыл бұрын
Can you search for it ? You can search it by typing the name in search box.
@jaitiwari241
@jaitiwari241 Жыл бұрын
do we have to remember this code
@learnssis
@learnssis Жыл бұрын
No. Its good if you can just try to learn a little bit of C#.
@dilipkumar-ck1nc
@dilipkumar-ck1nc 2 жыл бұрын
Can u copy the code in the notepad
@learnssis
@learnssis 2 жыл бұрын
Okay, I have uploaded the code for it.
@sdang003
@sdang003 2 жыл бұрын
@@learnssis Where is it? thanks.
@learnssis
@learnssis 2 жыл бұрын
@@sdang003 drive.google.com/drive/folders/1znA8C7vLYMUTzPDg-MEYXwnkpCq4sEwG
19 Debugging Script Task in SSIS
12:18
Learn SSIS
Рет қаралды 28 М.
Beat Ronaldo, Win $1,000,000
22:45
MrBeast
Рет қаралды 158 МЛН
Script Task in SSIS, Using Variables in SSIS, Using Parameters in SSIS
12:26
134 Create 2 outputs from Script Component source in SSIS
16:10
Learn SSIS
Рет қаралды 2,4 М.
37 Script Component Transformation in SSIS
13:24
Learn SSIS
Рет қаралды 31 М.
76 What are variables and Parameters in SSIS
10:48
Learn SSIS
Рет қаралды 22 М.
SSIS Script Task Send Emails C# | Script Task Send HTML Emails
29:18
Connect to SQL Database from Script task in SSIS
9:53
All About BI !
Рет қаралды 10 М.
44 Execute Package Task in SSIS
9:52
Learn SSIS
Рет қаралды 23 М.
SSIS : Script Component
7:53
Mandar Gogate
Рет қаралды 22 М.
Introduction to C# Scripting in SSIS
58:36
Pragmatic Works
Рет қаралды 15 М.
Как выжить?
0:33
Илюха Хэлп
Рет қаралды 3,4 МЛН
Что такое дагестанский кирпичный завод!
0:53
АВТОБРОДЯГИ - ПУТЕШЕСТВИЯ НА МАШИНЕ
Рет қаралды 746 М.
НИКОГДА не иди на сделку с сестрой!
0:11
Даша Боровик
Рет қаралды 729 М.
Это лютый угар 🤣 | приколы Арсен Симонян
0:14
Арсен Симонян
Рет қаралды 294 М.
ПЛЮСЫ и МИНУСЫ 1 и 2 смены в школе 🔥
0:39
Никита Удановский
Рет қаралды 3,5 МЛН