128 How to load dimension table in sql using ssis

  Рет қаралды 7,450

Learn SSIS

Learn SSIS

2 жыл бұрын

How do you load data into a dimension table in sql using ssis ?
Download the file\script used in the Video from below link
drive.google.com/drive/folder...
SSIS Tutorials: • SSIS Tutorials
SSIS real time scenarios examples: • SSIS real time scenari...
SSIS Interview questions and answers: • SSIS Interview questio...
How to load dimension table in sql using ssis
How do you load data into a dimension table?
How do you load data into a dimension table in sql using ssis ?
How will you load an scd2 type table by using SSIS?
How do you populate dimension and fact tables?
If you have any questions or suggestions please comment on the video or write to me at “aqil33@gmail.com”

Пікірлер: 56
@JoseMorales-ws6ro
@JoseMorales-ws6ro 4 ай бұрын
I want to thank you how you nicely explained the dimension load, I just finished to use it in a project at work. You saved me a lot of time!
@learnssis
@learnssis 4 ай бұрын
Thank you Jose.
@catulopsae
@catulopsae 2 жыл бұрын
Well explained. It’s awesome how easy you make everything. Thank you
@learnssis
@learnssis 2 жыл бұрын
You are most welcome catusae, its good to know that you found the tutorial helpful.
@chandraprakashnaidu9009
@chandraprakashnaidu9009 2 жыл бұрын
Thank you aqil for making the video
@learnssis
@learnssis 2 жыл бұрын
You are most welcome Chandra Prakash Naidu.
@alimirazimzadeh544
@alimirazimzadeh544 Жыл бұрын
I learned a lot. Thanks
@learnssis
@learnssis Жыл бұрын
That's great to know.
@7to7media
@7to7media 2 жыл бұрын
please make video on unit test
@learnssis
@learnssis 2 жыл бұрын
I had created an initial video on the unit test here kzbin.info/www/bejne/aKrblIRja6-YbbM I will try to make another video on it.
@lakshmanachandana9099
@lakshmanachandana9099 2 жыл бұрын
Hi Aqil ... can u plz make videos on complete Data warehouse project..thank you
@learnssis
@learnssis 2 жыл бұрын
Yeah next video is coming on "how to load data to Fact table". So if you are able to insert data to Dimension table and Fact table then you should be good for the Data warehouse project because in Data Warehouse project we load the data to Dim and Fact tables.
@deepakj6717
@deepakj6717 2 жыл бұрын
Hi Aqil, Best implementation.. Have you implemented this in your project? How was the performance of this in project? Instead of this what if we use OLEDB command to update records and instead of staging table what if we use direct dimension-fact tables? Which will perform better between this two methods?
@learnssis
@learnssis 2 жыл бұрын
Yeah I used this approach in one of my project. Of course this method is the best method to load the data to Dim tables as compare to Slowly changing dimension method or OLE DB Command method or Merge Join transformation method.
@srinivasarao-gr8pv
@srinivasarao-gr8pv 2 жыл бұрын
Hi Aqil, Nice video and nice explanation 👍 Can you create a video on how to improve the performance of SSIS package
@learnssis
@learnssis 2 жыл бұрын
Thanks, sure will try to make a video on this one as well. I have created one video on performance tuning of SSIS packages, you can take a look if you have already not seen it kzbin.info/www/bejne/aaHElKuNmrmWm5Y
@srinivasarao-gr8pv
@srinivasarao-gr8pv 2 жыл бұрын
@@learnssis I seen already good, Even though discuss more techniques on performance tuning
@learnssis
@learnssis 2 жыл бұрын
@@srinivasarao-gr8pv Yeah will try to cover more topics in next performance tuning video.
@anandreddy9591
@anandreddy9591 Жыл бұрын
Sir could you please create a video what is inferred member how it will be helpful for dimension/factloading
@learnssis
@learnssis Жыл бұрын
Okay will try to cover it in future videos.
@NebroProg
@NebroProg Жыл бұрын
Hi Ahmed, I hope you are well, Very useful video. What is different if I use this method or use the SCD SSIS component? thank you.
@learnssis
@learnssis Жыл бұрын
Thanks Nebro for your comment. This method is faster than the SCD SSIS component because in SCD SSIS component to update the records we use OLE DB Command component which updates one record at a time. Thus to update 1000 records OLE DB Command needs to run 1000 queries one by one. While in this method we use single update query to update 1000 records and which updates all records together using the set based based which is a lot faster than OLE DB Command method.
@NebroProg
@NebroProg Жыл бұрын
@@learnssis A lot of thanks Ahmed, 🙌 I hope God will reward you with all the best
@learnssis
@learnssis Жыл бұрын
​@@NebroProg​Thank you Brother, God bless you too.
@prajaakeeyaparty6578
@prajaakeeyaparty6578 2 жыл бұрын
HI Aqil...Can you make video on bridge table, why and when to use bridge tables
@learnssis
@learnssis 2 жыл бұрын
Okay, will try to make a video on it, but it might be late as next video will be on Fact table and after that there are bunch of other videos as well.
@prajaakeeyaparty6578
@prajaakeeyaparty6578 2 жыл бұрын
@@learnssis ok, thanks Aqil
@user-ox5xu7op1r
@user-ox5xu7op1r 11 ай бұрын
Dear Ahmed, I hope you are fine, I implemented the same steps but every time all updated records were redirected to the new records component which is the ID even if I changed a column related to SCD Type1 or SCD Type2. can I share with you through email a screenshot of the flow data and how it's gone? Thanks
@learnssis
@learnssis 11 ай бұрын
Please watch the video again and carefully and you would need to select the Id from your destination table and select that column from Lookup component and later in Conditional Split transformation you would need to check if that Id is NULL or not, for the non exists records or new records it will be NULL and for existing records it should not be NULL, thus we will insert a record if this ID is NULL. You can try to put the data viewer between lookup and conditional split and check the value of that record. Try to test it for single record.
@user-ox5xu7op1r
@user-ox5xu7op1r 11 ай бұрын
@@learnssis Solved! Many thanks 🙏 But after the change Business Key "EmployeeID" in DimTable to be not a primary key, because on SCD Type2 new record will be inserted with the same EmployeeID, in this case, duplicated primary key error will occur
@mmusciano
@mmusciano 2 жыл бұрын
Hi Aqil, I got this error in the Conditional split [Conditional Split [2]] Error: The expression "LogonName != Dest_LogonName || Email != Dest_Email" on "Conditional Split.Outputs[SCD Type 1]" evaluated to NULL, but the "Conditional Split" requires a Boolean results. Modify the error row disposition on the output to treat this result as False (Ignore Failure) or to redirect this row to the error output (Redirect Row). The expression results must be Boolean for a Conditional Split. A NULL expression result is an error.. Can you tell me what corrections I can make please? Thank you
@learnssis
@learnssis 2 жыл бұрын
It means there is a NULL value in either LogonName or in Dest_LogonName or in Email or in Dest_Email field. Try to replace the NULL with a blank string before using the conditional split transformation. Either you can do that while selecting the data from the source and destination table or just replace the NULL value with a blank string in the sql server table itself.
@mmusciano
@mmusciano 2 жыл бұрын
@@learnssis Thank you Aqil
@learnssis
@learnssis 2 жыл бұрын
@@mmusciano You are most welcome.
@user-ox5xu7op1r
@user-ox5xu7op1r 11 ай бұрын
Hi Ahmed Thanks for great video. How can I load delimited comma file with more than one column, and each column contains more than one comma? Like address column in this video. Thanks.
@learnssis
@learnssis 11 ай бұрын
In the delimited file if column values are surrounded by double quotes then while configuring the flat file connection manager you can easily get the values by providing double quotes as text qualifier and it should work. But if in your csv file there are no double quotes then it will be really hard to get the proper column values, then you would need to write some kind of parser in C# to get the column values correctly and it won't be that easy. One of the very easy case is below. kzbin.info/www/bejne/lZTLcmawpbZlr5Y
@user-ox5xu7op1r
@user-ox5xu7op1r 11 ай бұрын
@@learnssis I wrote C# code to handle this case, and it works for me well, I will share it with you in your email.
@learnssis
@learnssis 11 ай бұрын
@@user-ox5xu7op1rPlease do.
@user-ox5xu7op1r
@user-ox5xu7op1r 11 ай бұрын
@@learnssis sent to you last two days
@haisimyasin5877
@haisimyasin5877 Жыл бұрын
Hey Aqil, I am getting error when i am using ur create dimension sql command . The error says ,"The specified schema name "Dimension" either does not exist or you do not have permission to use it".. Plz help me.
@learnssis
@learnssis Жыл бұрын
Can you check if you have the Dimension schema in the database ? OR try to run this on the database create schema Dimension
@haisimyasin5877
@haisimyasin5877 Жыл бұрын
@@learnssis thank u so much man . Problem solved.
@learnssis
@learnssis Жыл бұрын
@@haisimyasin5877 Glad you get it.
@user-ne9vc8jq9c
@user-ne9vc8jq9c 7 ай бұрын
Hi Aqil, Thanks for all the contents you share in your channel. I really like this scd load but it fails because of null . i tried it with d/t dataset (good) but still getting ([Conditional Split [2]] Error: The expression "LogonName != Dest_LogonName || Email != Dest_Email" on "Conditional Split.Outputs[scd1]" evaluated to NULL, but the "Conditional Split" requires a Boolean results. Modify the error row disposition on the output to treat this result as False (Ignore Failure) or to redirect this row to the error output (Redirect Row). The expression results must be Boolean for a Conditional Split. A NULL expression result is an error.
@learnssis
@learnssis 7 ай бұрын
It seems like there are NULL values in either of the fields, please replace the NULL values while fetching the data from source and from lookup transformation. You can use Isnull function in sql to replace NULL with a blank string.
@user-ne9vc8jq9c
@user-ne9vc8jq9c 7 ай бұрын
@@learnssis Thanks for the response. i don't have null value in my good dataset. validto field suppose to be null to show the active record.
@learnssis
@learnssis 7 ай бұрын
@@user-ne9vc8jq9cThen you don't need to compare on ValidTo field in the conditional split transformation.
@habrom1000
@habrom1000 2 жыл бұрын
Hi Mr. thank you for tutorial. I couldn't find the sample data for Order, Product,Supplier in the google drive you attached. I get only the sample Customer and Employee. Could u plz load the data. Thanks.
@learnssis
@learnssis 2 жыл бұрын
In this video I have only shown how to load data into Employee Dimension table thus I only uploaded the data for Employee table. I am going to make a video on "how to load Fact table" and for that video we would need to use the other Dimension tables as well because in Fact table we use the Surrogate keys from Dimension tables. I will upload the data for other tables in a separate folder tomorrow along with the requirements for loading the data into Fact table.
@habrom1000
@habrom1000 2 жыл бұрын
is it available in Adventureworks or other open database
@habrom1000
@habrom1000 2 жыл бұрын
@@learnssis onces again thank you for your quick reply.
@learnssis
@learnssis 2 жыл бұрын
@@habrom1000 No problem.
@arimbakammeghavardhan6424
@arimbakammeghavardhan6424 2 жыл бұрын
Hi bro, in ur total experience , u feel this is the package very complex one i developed. Pl share description we will try to develope that package pl......
@learnssis
@learnssis 2 жыл бұрын
The most complex packages those I developed those are at the company servers and I won't be able to show that but I can try to make a complex package in coming days and can explain it to you guys.
@arimbakammeghavardhan6424
@arimbakammeghavardhan6424 2 жыл бұрын
@@learnssis Thanks No need to show package, just give description we are develope that package to process test data
@learnssis
@learnssis 2 жыл бұрын
@@arimbakammeghavardhan6424 Sure will make a video on such package soon.
129 How do you load a fact table
32:14
Learn SSIS
Рет қаралды 10 М.
Survival skills: A great idea with duct tape #survival #lifehacks #camping
00:27
1 or 2?🐄
00:12
Kan Andrey
Рет қаралды 58 МЛН
Looks realistic #tiktok
00:22
Анастасия Тарасова
Рет қаралды 101 МЛН
تجربة أغرب توصيلة شحن ضد القطع تماما
00:56
صدام العزي
Рет қаралды 53 МЛН
30 How to do incremental load in SQL server
10:16
Learn SSIS
Рет қаралды 14 М.
Data Mart Design - ETL Process to Populate Staging Table
25:42
Clinton Daniel
Рет қаралды 39 М.
Avoid this SQL Programming Mistake!  (AND Vs WHERE)
7:57
Learn at Knowstar
Рет қаралды 3,1 М.
120 How do you implement SCD Type 2 in SSIS Using Lookup
24:49
Learn SSIS
Рет қаралды 15 М.
I've been using Redis wrong this whole time...
20:53
Dreams of Code
Рет қаралды 337 М.
63 Insert update differential data in SSIS
21:37
Learn SSIS
Рет қаралды 43 М.
Как правильно выключать звук на телефоне?
0:17
Люди.Идеи, общественная организация
Рет қаралды 1,4 МЛН
iPhone 15 Pro в реальной жизни
24:07
HUDAKOV
Рет қаралды 345 М.
Отдых для геймера? 😮‍💨 Hiper Engine B50
1:00
PART 52 || DIY Wireless Switch forElectronic Lights - Easy Guide!
1:01
HUBAB__OFFICIAL
Рет қаралды 51 МЛН
АЙФОН 20 С ФУНКЦИЕЙ ВИДЕНИЯ ОГНЯ
0:59
КиноХост
Рет қаралды 584 М.