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

  Рет қаралды 85,171

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)
@uncle_eddies_adventures
@uncle_eddies_adventures 4 жыл бұрын
This man has single-handedly convinced me that I belong in the UK. Thank you sir.
@asingb
@asingb 4 жыл бұрын
This is published 6 years ago 🤔. Just came across this tutorial. It's really awesome, explained very well. Thanks.
@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.
@mohsenhs
@mohsenhs 8 жыл бұрын
Awesome video, nice and clear explanation. Thanks a lot
@MrIrrepressible
@MrIrrepressible 7 жыл бұрын
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.
@franciso4650
@franciso4650 4 жыл бұрын
Can you please provide the sample data files for these tutorials, it will be greatly appreciated. Excellent job so far.
@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
@MiaMia-tb9cl
@MiaMia-tb9cl 7 жыл бұрын
Thank you for All God Bless You
@-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.
@hemadriboddu6388
@hemadriboddu6388 8 жыл бұрын
super ,thank you so much
@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 жыл бұрын
There is no mistake like error message what could be problem?
@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."
@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 4 жыл бұрын
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
23 Foreach loop ado enumerator in SSIS example
10:53
Learn SSIS
Рет қаралды 48 М.
SLIDE #shortssprintbrasil
0:31
Natan por Aí
Рет қаралды 49 МЛН
УЛИЧНЫЕ МУЗЫКАНТЫ В СОЧИ 🤘🏻
0:33
РОК ЗАВОД
Рет қаралды 7 МЛН
Хаги Ваги говорит разными голосами
0:22
Фани Хани
Рет қаралды 2,2 МЛН
SQL Server Integration Services (SSIS) Part 11 - Looping Over Files
21:44
SSIS - Reading multiple source files using Foreach Loop Container
20:38
Learn at Knowstar
Рет қаралды 7 М.
Reporting Services (SSRS) Part 12 - Drop Down List Parameters
17:36
WiseOwlTutorials
Рет қаралды 171 М.
SQL Server Integration Services (SSIS) Part 9 - Lookup Transforms
25:42
WiseOwlTutorials
Рет қаралды 145 М.
SSIS Parameters and Environments
20:27
Tim Mitchell
Рет қаралды 89 М.
SQL Server Integration Services (SSIS) Part 19 - Parameters and deployment
19:35
133 Explaining Foreach loop container options in detail in ssis
15:15
SLIDE #shortssprintbrasil
0:31
Natan por Aí
Рет қаралды 49 МЛН