DW Practical No 1 & 2
DW Practical No 1 & 2
Aim : Import the legacy data from different sources such as ( Excel , SqlServer) and load
in the Power BI system .
Steps to Import Data from Excel and SQL Server into Power BI
Aim : Perform the Extraction transformation and Loading (ETL) process to construct
database in the SqlServer.
Step 1: Install Required Tools
o During installation, make sure to include SQL Server Data Tools (SSDT), which
provides the necessary tools to create SSIS projects.
2. SQL Server:
o Make sure you have SQL Server installed and running.
Name your project (e.g., ETL_Sample), choose a location to save it, and click
Create.
In SSIS, an SSIS package is where you define your ETL process. You will have tasks to
Extract, Transform, and Load data.
In the Solution Explorer, right-click on SSIS Packages and select New SSIS
Package.
Name the package (e.g., ETL_Package).
In the Control Flow tab, you’ll see the default Control Flow layout.
Drag the Data Flow Task from the SSIS Toolbox into the Control Flow pane.
Right-click the Data Flow Task and click Edit. This will open the Data Flow
tab, where you can configure the ETL steps.
Step 4: Extract Data
You can extract data from various sources such as Excel, SQL Server, or CSV. Let’s use
SQL Server and Excel as the sources.
1. In the Data Flow tab, drag the OLE DB Source from the SSIS Toolbox onto the
Data Flow pane.
2. Configure the OLE DB Source:
1. Drag the Excel Source from the SSIS Toolbox onto the Data Flow pane.
2. Configure the Excel Source:
To load the transformed data into SQL Server, you will use the OLE DB Destination.
1. Drag the OLE DB Destination from the SSIS Toolbox to the Data Flow pane.
2. Configure the OLE DB Destination:
To test the ETL process, click the Start Debugging button (green triangle) in
Visual Studio.
SSIS will execute the package, extracting data from the source, transforming
it, and loading it into SQL Server.
You can monitor the progress and check the Output tab for any errors or
warnings.
After the execution, go to SQL Server Management Studio (SSMS) and verify
that the data has been loaded into the target table
Conclusion :
Using Visual Studio and SQL Server Integration Services (SSIS) is a powerful way to automate the
ETL process.
Expected Output :