SQL Server Integration Services (SSIS) Part 12 - Other Foreach Loops

  Рет қаралды 84,905

WiseOwlTutorials

WiseOwlTutorials

Күн бұрын

Пікірлер: 29
@yasarkocyigit1314
@yasarkocyigit1314 3 жыл бұрын
create table mentornumbers ( firstname varchar(30), lastname varchar(30), proteges int ) insert into mentornumbers values ('Cheryl','Cole',10), ('Dani','Minogue',13), ('Gary','Barlow',6), ('Kelly','Rowland',4), ('Louis','Walsh',30), ('Nicole','Scherzinger',3), ('Sharon','Osbourne',13), ('Simon','Cowell',24), ('Tulisa','Contostavlos',5)
@asingb
@asingb 4 жыл бұрын
This is published 6 years ago 🤔. Just came across this tutorial. It's really awesome, explained very well. Thanks.
@uncle_eddies_adventures
@uncle_eddies_adventures 4 жыл бұрын
This man has single-handedly convinced me that I belong in the UK. Thank you sir.
@blrm4681
@blrm4681 6 жыл бұрын
Thank you , your videos are excellent!!!! In my last job they did not use ssis (or have it installed - have no idea why) and now that I am looking for a new job,many of the jobs do mention it . Your tutorial with me trying to do the same myself should give me some basic starting knowledge.. Will make a donation (if I remember) once I land a job. Thank you.
@franciso4650
@franciso4650 3 жыл бұрын
Can you please provide the sample data files for these tutorials, it will be greatly appreciated. Excellent job so far.
@MrIrrepressible
@MrIrrepressible 6 жыл бұрын
This is great, thanks for this I'm sure it will come in handy for me at some point in time, I'm think of something like outputting the rows that have been affected by an update.
@parrisgjerde9212
@parrisgjerde9212 5 жыл бұрын
And of course, instead of looping through the records in the table we could have just run a select statement to get the name and max protégés from the database... but where’s the fun in that😀 Nice video.
@WiseOwlTutorials
@WiseOwlTutorials 5 жыл бұрын
Indeed! Thanks for the comment and for watching!
@judedcosta5178
@judedcosta5178 9 жыл бұрын
Thanks Andy for these tutorials. Really good quality. You should get your content over to plural sight if possible!
@barnaberodrigues3341
@barnaberodrigues3341 9 жыл бұрын
Barnabe
@mohsenhs
@mohsenhs 8 жыл бұрын
Awesome video, nice and clear explanation. Thanks a lot
@-Harambe
@-Harambe 10 жыл бұрын
Andy, thank you so much for these great tutorial videos. Andy, towards 11:46 minutes of this video, you are converting data type to string before you populate the local variable "Highest Name". Why is this necessary? Data type you assigned to "Highest Name" is already data type from the time of declaration. Also, can you run *.dtsx file from SQL Server job(task) for automation purpose?
@-Harambe
@-Harambe 10 жыл бұрын
***** Thank you so much for your help Andy! I really appreciate it.
@MiaMia-tb9cl
@MiaMia-tb9cl 6 жыл бұрын
Thank you for All God Bless You
@ryanblythe7735
@ryanblythe7735 10 жыл бұрын
Is there any advantage of having used a Script task to determine the largest value? Couldn't a ternary operator (?:) have been used in an expression task instead?
@akncaliskan8162
@akncaliskan8162 8 жыл бұрын
"Error: The type of the value (Int32) being assigned to variable "User::ServerName" differs from the current variable type (String). Variables may not change type during execution. Variable types are strict, except for variables of type Object."
@hemadriboddu6388
@hemadriboddu6388 7 жыл бұрын
super ,thank you so much
@akncaliskan8162
@akncaliskan8162 8 жыл бұрын
There is no mistake like error message what could be problem?
@yasarkocyigit1314
@yasarkocyigit1314 3 жыл бұрын
part 2 script task public void Main() { // read in value ow two variables passed in string highestname = Convert.ToString(Dts.Variables["highestname"].Value); int highestnumber = Convert.ToInt32(Dts.Variables["highestnumber"].Value); //display name of busiest mentor MessageBox.Show("Busiest mentor is " + highestname + "with" + highestnumber.ToString() + "proteges"); Dts.TaskResult = (int)ScriptResults.Success; }
@yasarkocyigit1314
@yasarkocyigit1314 3 жыл бұрын
public void Main() { // TODO: Add your code here User::firstname,User::lastname,User::proteges User::highestname,User::highestnumber string firstname = Convert.ToString(Dts.Variables["firstname"].Value); string lastname = Convert.ToString(Dts.Variables["lastname"].Value); int proteges = Convert.ToInt32(Dts.Variables["proteges"].Value); int highestnumber = Convert.ToInt32(Dts.Variables["highestnumber"].Value); if (proteges > highestnumber) { //set new highest number Dts.Variables["highestnumber"].Value = proteges; Dts.Variables["highestname"].Value = firstname + " " + lastname; }
@Anatoli8888
@Anatoli8888 7 жыл бұрын
string FirstName = Convert.ToString(Dts.Variables["FirstName"].Value); string LastName = Convert.ToString(Dts.Variables["LastName"].Value); int Proteges = Convert.ToInt32(Dts.Variables["Proteges"].Value); int HighestNumber = Convert.ToInt32(Dts.Variables["HighestNumber"].Value); string HighestName = FirstName + " " + LastName; if (Proteges > HighestNumber) { //set new highest number Dts.Variables["HighestNumber"].Value = Proteges; Dts.Variables["HighestName"].Value = FirstName + " " + LastName; HighestNumber = Convert.ToInt32(Dts.Variables["HighestNumber"].Value); HighestName = FirstName + " " + LastName;
@Anatoli8888
@Anatoli8888 7 жыл бұрын
string HighestName = Convert.ToString(Dts.Variables["HighestName"].Value); int HighestNumber = Convert.ToInt32(Dts.Variables["HighestNumber"].Value); MessageBox.Show("Busiest mentor is " + HighestName + " with " + HighestNumber.ToString() + " proteges");
@kohavsheifa1212
@kohavsheifa1212 7 жыл бұрын
Большое человеческое спасибо!
@kohavsheifa1212
@kohavsheifa1212 7 жыл бұрын
string tName = Convert.ToString(Dts.Variables["User::TableName"].Value); System.IO.StreamWriter sw = new System.IO.StreamWriter( "C:\\ajb files\\tables.txt", true); sw.WriteLine(tName); sw.Close(); ...для полноты картины
@dharmenderdevrath5961
@dharmenderdevrath5961 3 жыл бұрын
public void Main() { string tName = Convert.ToString(Dts.Variables["TableName"].Value); System.IO.StreamWriter sw = new System.IO.StreamWriter("C:\\Users\\dharmender.devrath\\Downloads\\Training\\SSIS Training\\Tutorial SSIS owl" + "\\tables.txt", true); sw.WriteLine(tName); sw.Close(); Dts.TaskResult = (int)ScriptResults.Success; }
SQL Server Integration Services (SSIS) Part 13 - Script Tasks using C#
16:36
SQL Server Integration Services (SSIS) Part 11 - Looping Over Files
21:44
They Chose Kindness Over Abuse in Their Team #shorts
00:20
I migliori trucchetti di Fabiosa
Рет қаралды 7 МЛН
Yay, My Dad Is a Vending Machine! 🛍️😆 #funny #prank #comedy
00:17
Wait for the last one 🤣🤣 #shorts #minecraft
00:28
Cosmo Guy
Рет қаралды 24 МЛН
23 Foreach loop ado enumerator in SSIS example
10:53
Learn SSIS
Рет қаралды 46 М.
SQL Server Integration Services (SSIS) Part 19 - Parameters and deployment
19:35
SSIS - Foreach Loop Container - Variable Enumerator
14:40
Learn at Knowstar
Рет қаралды 11 М.
SSIS - Reading multiple source files using Foreach Loop Container
20:38
Learn at Knowstar
Рет қаралды 7 М.
Reporting Services (SSRS) Part 16 - Lists
20:03
WiseOwlTutorials
Рет қаралды 111 М.
SQL Server Integration Services (SSIS) Part 15 - Script Components
19:06
WiseOwlTutorials
Рет қаралды 64 М.
SSIS Parameters and Environments
20:27
Tim Mitchell
Рет қаралды 89 М.
They Chose Kindness Over Abuse in Their Team #shorts
00:20
I migliori trucchetti di Fabiosa
Рет қаралды 7 МЛН