0% found this document useful (0 votes)
9 views

DW Practical No 1 & 2

The document outlines the steps to import legacy data from Excel and SQL Server into Power BI, including launching Power BI, importing data, transforming it, setting relationships, and publishing the report. Additionally, it describes the ETL process using SQL Server Integration Services (SSIS) in Visual Studio, detailing how to create an SSIS project, extract data from various sources, and load it into SQL Server. The document emphasizes the importance of these tools for efficient data management and reporting.

Uploaded by

Dr. Physics 2004
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views

DW Practical No 1 & 2

The document outlines the steps to import legacy data from Excel and SQL Server into Power BI, including launching Power BI, importing data, transforming it, setting relationships, and publishing the report. Additionally, it describes the ETL process using SQL Server Integration Services (SSIS) in Visual Studio, detailing how to create an SSIS project, extract data from various sources, and load it into SQL Server. The document emphasizes the importance of these tools for efficient data management and reporting.

Uploaded by

Dr. Physics 2004
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6

Practical No 1

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

1. Launch Power BI Desktop

 Open Power BI Desktop.


 Click on the Home tab in the ribbon.

2. Import Data from Excel

1. In the Home tab, click on Get Data.


2. Select Excel.
3. Browse to your Excel file location, select the file, and click Open.
4. A Navigator window will appear, showing all available sheets and tables in the Excel
file. You can choose one or more sheets to import.
5. Select the data you want to load, then click Load.
6. Alternatively, you can click Transform Data to clean and transform your data before
loading it.

3. Import Data from SQL Server

1. Click Home → Get Data → SQL Server.


2. Enter Server name and Database name, then click OK.
3. In the Navigator, select the table(s) you want.
4. Click Load (or Transform Data if needed).

4. Transform Data (Optional)

 If needed, click Transform Data to:


o Clean data (remove blanks, duplicates, etc.).
o Change data types.
o Merge queries (Excel + SQL Server).
 After transformation, click Close & Apply.

5. Set Relationships (Optional)

 Go to Model View to create relationships between tables if necessary.

7. Publish the Report

 Click Publish to upload the report to Power BI Service.


 You’ve successfully imported data from Excel and SQL Server into Power BI.
Expected Output :
Practical No 2

Aim : Perform the Extraction transformation and Loading (ETL) process to construct
database in the SqlServer.
Step 1: Install Required Tools

1. Install Visual Studio:

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.

Step 2: Create a New SSIS Project in Visual Studio

1. Open Visual Studio.


2. Create a New Project:

 Go to File → New → Project.


 In the Create a New Project dialog, type "Integration Services" in the search
box.
 Select SQL Server Integration Services Project.
 Click Next.

3. Set Project Name:

 Name your project (e.g., ETL_Sample), choose a location to save it, and click
Create.

Step 3: Create the ETL Package

In SSIS, an SSIS package is where you define your ETL process. You will have tasks to
Extract, Transform, and Load data.

1. Add a New SSIS Package:

 In the Solution Explorer, right-click on SSIS Packages and select New SSIS
Package.
 Name the package (e.g., ETL_Package).

2. Open Data Flow:

 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.

4. Extract Data from SQL Server

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:

 Right-click on the OLE DB Source and select Edit.


 In the OLE DB Connection Manager window, click New to create a new connection
to your SQL Server database.
 Choose the SQL Server, and select the database from which you want to extract
data.
 In the Data Access Mode, choose Table or View.
 Select the table or write a SQL query to extract data.
 Click OK.

5. Extract Data from Excel

1. Drag the Excel Source from the SSIS Toolbox onto the Data Flow pane.
2. Configure the Excel Source:

 Right-click on the Excel Source and select Edit.


 In the Excel Connection Manager, click New to create a new connection to
your Excel file.
 Select the Excel file and choose the Sheet or Range from which you want to
extract data.
 Click OK.

Step 5: Load Data into SQL Server

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:

 Right-click on the OLE DB Destination and select Edit.


 Create a new OLE DB Connection Manager to your SQL Server database.
 Select the Target Table where you want to load the data. If the table doesn't exist,
you can create it manually in SQL Server or let SSIS create it for you by selecting
New.
 Map the source columns to the target columns in the destination table.
 Click OK.
Step 7: Execute the Package

1. Run the ETL Package:

 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.

 Check SQL Server:

 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 :

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy