thank you for the last session team foundation server (tfs) microsoft business intelligence mit sql...

28
Thank you for the last session Team Foundation Server (TFS) Microsoft Business Intelligence mit SQL Server BI-Komponenten von Microsoft SQL Server zur Abbildung eines automatisierten Berichtswesens Datum: 05.06.2014 Referent: Thomas Groß

Upload: izaak-stohlman

Post on 06-Apr-2015

105 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: Thank you for the last session Team Foundation Server (TFS) Microsoft Business Intelligence mit SQL Server BI-Komponenten von Microsoft SQL Server zur

Thank you for the last sessionTeam Foundation Server

(TFS)

Microsoft Business Intelligence mit SQL Server

BI-Komponenten von Microsoft SQL Serverzur Abbildung eines automatisierten Berichtswesens

Datum: 05.06.2014Referent: Thomas Groß

Page 2: Thank you for the last session Team Foundation Server (TFS) Microsoft Business Intelligence mit SQL Server BI-Komponenten von Microsoft SQL Server zur

BI = Business Intelligence

Der Begriff Business Intelligence bezeichnet ein Verfahren und einen Prozess zur systematischen Analyse (Sammlung, Auswertung und Darstellung) von Daten in elektronischer Form.http://de.wikipedia.org/wiki/Business-Intelligence

Einführung – Begriffsbestimmung

Page 3: Thank you for the last session Team Foundation Server (TFS) Microsoft Business Intelligence mit SQL Server BI-Komponenten von Microsoft SQL Server zur

Der Vortrag zeigt Schritt für Schritt die Abbildung eines automatisierten Berichtswesens mit Hilfe der Microsoft BI-Tools.

1. Schritt: Data-Warehouse erstellen (SSIS)Aus einer relationalen OLTP(OnLine-Transaction-Processing)-Datenbank zur Datenerfassung wird mittels SSIS-Datentransfer ein Data-Warehouse gefüllt.Dies entspricht dem klassischen ETL(Extraction-Translation-Load)-Prozess.

2. Schritt: OLAP-Datenbank erstellen (SSAS)Die Daten der Data-Warehouse-Datenbank werden mit Analysis Services in mehrdimensionale Cubes einer OLAP-Datenbank (OnLine-Analytical-Prozessing) überführt.

3. Schritt: Berichte erstellen (SSRS)Mit Reporting Services werden sowohl die relationale Daten aus dem Data-Warehouse als auch mehrdimensionale Daten aus den Cubes der OLAP-Datenbank als Berichte gerendert.Die Auswertung der OLAP-Cubes ist auch mit Excel möglich.

4. Schritt: Berichte in SharePoint Portal veröffentlichenDie Berichte werden in einem SharePoint-Portal veröffentlicht.

Einführung – Schritt für Schritt

Page 4: Thank you for the last session Team Foundation Server (TFS) Microsoft Business Intelligence mit SQL Server BI-Komponenten von Microsoft SQL Server zur

SQL

Ora

SQL

mysql

DWHSQL

SQL

Cube

OLTP OLAP

ssas

ssis

ssrs

Einführung – ssis ssas ssrs - OLTP OLAP DWH Cube Report - sql mdx

sql

sql mdx

Page 5: Thank you for the last session Team Foundation Server (TFS) Microsoft Business Intelligence mit SQL Server BI-Komponenten von Microsoft SQL Server zur

BUSINESS INTELLIGENCE (BI) IS ONE BIG AREA!BIG DEFINITIONS, BIG NEW PHILOSOPHY, BIG DATA, BIG SERVERS, ..., BIG MANAGEMENT DECISIONS

Zu den BI-Komponenten von SQL Server zählen:

SSIS – SQL Server Integration Services zum Datentransfer (ETL Tool)

SSAS – SQL Server Analysis Services zum Erstellen von OLAP-Cubes (Mehrdimensionale Datenbank)

SSRS – SQL Server Reporting Services zur Berichterstellung (Reporting Server Tool)

+ SharePoint Server!!!

Einführung – BI Tools ala Microsoft

Page 6: Thank you for the last session Team Foundation Server (TFS) Microsoft Business Intelligence mit SQL Server BI-Komponenten von Microsoft SQL Server zur

join and share GmbH

Entwicklung kundenspezifischer Anwendungen Microsoft Silver Partner (Data Platform)

Technologien• SQL Server• .net / asp Programmierung• Business Intelligence• Share Point• Office Programmierung

Thomas Groß (MCDBA) entwickelt seit über 25 Jahren datenbankbasierte Anwendungen. Besonderen Wert legt er auf den Entwurf und das Design von Anwendungen, um eine optimale Abbildung der Prozesse und eine hohe Usability zu gewährleisten. Für die Implementierung der Software nutzt er MS SQL Server, das .NET-Framework, Office VBA, SharePoint und die BI-Komponenten von SQL Server.

Vor über 10 Jahren gründete er die join and share GmbH. Das Team von join and share pflegt langjährige und vertrauensvolle Beziehungen zu seinen Kunden.

Einführung – zur Person - join and share ... Let‘s start

Page 7: Thank you for the last session Team Foundation Server (TFS) Microsoft Business Intelligence mit SQL Server BI-Komponenten von Microsoft SQL Server zur

ETL-TOOL(FÜR DATA-WAREHOUSE)

SSISSql Server Integration Services

SSIS

Page 8: Thank you for the last session Team Foundation Server (TFS) Microsoft Business Intelligence mit SQL Server BI-Komponenten von Microsoft SQL Server zur

SSIS - Definition

http://technet.microsoft.com/de-de/library/ms169917.aspxSSIS-Lernprogramm: Erstellen eines einfachen ETL-Pakets

Microsoft SQL Server Integration Services(SSIS) ist eine Plattform zum Erstellen leistungsfähiger Datenintegrationslösungen, z.B. von ETL-Paketen (Extraction, Transformation und Load) für das Data Warehousing. SSIS enthält grafische Tools und Assistenten zum Erstellen und Debuggen von Paketen; Tasks zum Ausführen von Workflowfunktionen wie z. B. FTP-Vorgänge, Ausführen von SQL-Anweisungen und Senden von E-Mails; Datenquellen und Ziele zum Extrahieren und Laden von Daten; Transformationen zum Bereinigen, Aggregieren, Zusammenführen und Kopieren von Daten; einen Verwaltungsdienst, den Integration Services-Dienst zum Verwalten der Paketausführung und -speicherung; und Anwendungsprogrammierschnittstellen (APIs, Application Programming Interfaces) zum Programmieren des Integration Services-Objektmodells.

Page 9: Thank you for the last session Team Foundation Server (TFS) Microsoft Business Intelligence mit SQL Server BI-Komponenten von Microsoft SQL Server zur

+Data Flow Control contra SQL TaskNächtlicher SQL Agent Job zur Ausführung des SSIS Pakets um das Data-Warehouse zu füllen

SSIS - Demo

http://karthikeyananbarasan.files.wordpress.com/2011/10/free-ebook-sql-server-integration-services-ssis-step-by-step-version-2-0.pdf

SQL Server Integration Services (SSIS)

Demo

Page 10: Thank you for the last session Team Foundation Server (TFS) Microsoft Business Intelligence mit SQL Server BI-Komponenten von Microsoft SQL Server zur

Weitere Steuerelemente wie Schleifen, Filter, ftp + mail Tasks siehe

PDF Ebook (0 € aber super)SQL Server Integration Services (SSIS) – Step by Step Tutorial

http://karthikeyananbarasan.files.wordpress.com/2011/10/free-ebook-sql-server-integration-services-ssis-step-by-step-version-2-0.pdf

SSIS - Lernmaterial

Page 11: Thank you for the last session Team Foundation Server (TFS) Microsoft Business Intelligence mit SQL Server BI-Komponenten von Microsoft SQL Server zur

Wir brauchen noch ein Data-Warehouse

http://www.codeproject.com/Articles/652108/Create-First-Data-WareHouseCreate First Data WareHouse

X-Mart is having different malls in our city, where daily sales take place for various products. Higher management is facing an issue while decision making due to non availability of integrated data they can’t do study on their data as per their requirement. So they asked us to design a system which can help them quickly in decision making and provide Return on Investment (ROI).

SSIS – SSAS - DWH

DemoZ:\Offline\dotnetUserGroup_BIToolsDesSQLServers\DataWareHouseSQLScript.sql

BREAK: Exkurs Date-Warehouse

Page 12: Thank you for the last session Team Foundation Server (TFS) Microsoft Business Intelligence mit SQL Server BI-Komponenten von Microsoft SQL Server zur

Management Anforderung an BI Lösung

Let us first identify the requirement from management about their requirements.• Need to see daily, weekly, monthly, quarterly profit of each store. • Comparison of sales and profit on various time periods. • Comparison of sales in various time bands of the day. • Need to know which product has more demand on which location? • Need to study trend of sales by time period of the day over the week,

month, and year? • On what day sales is higher? • On every Sunday of this month, what is sales and what is profit? • What is trend of sales on weekday and weekend? • Need to compare weekly, monthly and yearly sales to know growth

and KPI?

SSIS – SSAS - DWH

Page 13: Thank you for the last session Team Foundation Server (TFS) Microsoft Business Intelligence mit SQL Server BI-Komponenten von Microsoft SQL Server zur

Das „Sternschema“

SSIS – SSAS - DWH

Page 14: Thank you for the last session Team Foundation Server (TFS) Microsoft Business Intelligence mit SQL Server BI-Komponenten von Microsoft SQL Server zur

CUBES

SSASSql Server Analysis Services

SSAS

Page 15: Thank you for the last session Team Foundation Server (TFS) Microsoft Business Intelligence mit SQL Server BI-Komponenten von Microsoft SQL Server zur

http://technet.microsoft.com/de-de/library/hh231701.aspxAnalysis Services-Lernprogramme (SSAS)

Dieses Lernprogramm vermittelt die wesentlichen Fähigkeiten und Konzepte hinter mehrdimensionaler Modellierung in SQL Server-Datentools (SSDT). Nach dem Abschluss verfügen Sie über eine Cubedatenbank auf Basis von Adventure Works-Daten, auf die Sie über Excel, Reporting Services oder eine andere Clientanwendung zugreifen können, die eine Verbindung mit Analysis Services herstellt.

SSAS - Definition

DWH Cube

OLAP

ssas

Page 16: Thank you for the last session Team Foundation Server (TFS) Microsoft Business Intelligence mit SQL Server BI-Komponenten von Microsoft SQL Server zur

SSAS – OLTP contra OLAP

Online Transaction Processing (OLTP) Online Analytical Processing (OLAP) Designed to support Daily DML Operations of your application

Designed to hold historical data for analyses and forecast business needs

Holds daily Latest Transactional Data related to your application

Data is consistent up to the last update that occurred in your Cube

Data stored in normalized format Data stored in denormalized formatDatabases size is usually around 100 MB to 100 GB

Databases size is usually around 100 GB to a few TB

Used by normal users Used by users who are associated with the decision making process, e.g., Managers, CEO.

CPU, RAM, HDD space requirement is less. CPU, RAM, HDD space requirement is higher. Query response may be slower if the amount of data is very large, it can impact the reporting performance.

Query Response is quicker, management can do Trend analysis on their data easily and generate quicker reports.

T-SQL language used for query MDX is used for querying on OLAP Cube

What is the difference between OLAP and OLTP? Ahttp://www.codeproject.com/Articles/658912/Create-First-OLAP-Cube-in-SQL-Server-Analysis-Serv

Page 17: Thank you for the last session Team Foundation Server (TFS) Microsoft Business Intelligence mit SQL Server BI-Komponenten von Microsoft SQL Server zur

Der Würfel

SSAS – Cubes

Page 18: Thank you for the last session Team Foundation Server (TFS) Microsoft Business Intelligence mit SQL Server BI-Komponenten von Microsoft SQL Server zur

http://www.codeproject.com/Articles/658912/Create-First-OLAP-Cube-in-SQL-Server-Analysis-Serv Create First OLAP Cube in SQL Server Analysis Service

DemoDatenquellen, Datenviews, Cube, Faktentabellen, Dimensionstabellen, Attribute, Hierarchien + Sortierung der Monate über KeyColums + natural hierarchy User-Defined Hierarchies = Performace über KeyColums und Attributrelations Performance! https://intelligentsql.wordpress.com/tag/natural-hierarchy/

+ Excelz:\Offline\dotnetUserGroup_BIToolsDesSQLServers\SalesDataAnalysis.xlsx

SSAS - Demo

Page 19: Thank you for the last session Team Foundation Server (TFS) Microsoft Business Intelligence mit SQL Server BI-Komponenten von Microsoft SQL Server zur

Youtube Videos

Serie: Analyis Services – 01 ... 11https://www.youtube.com/watch?v=pyUsp8qc7hg&list=PL7706561114B01D0D

SSAS - Lernmaterial

Youtube ContentAnalysis Services – 01 Prerequisite Guide Analysis Services – 02 Data Source Creation Analysis Services – 03 Data Source ViewsAnalysis Services – 04 Cube Creation Analysis Services – 05 Dimension FundamentalsAnalysis Services – 06 Dimension Hierarchies Analysis Services – 07 Dimension Attribute RelationshipsAnalysis Services – 08 Dimension Storage Analysis Services – 09 Dimension Discretization Analysis Services – 10 Parent/Child Dimension HierachiesAnalysis Services – 11 Star and Snowflake Schemas

Page 20: Thank you for the last session Team Foundation Server (TFS) Microsoft Business Intelligence mit SQL Server BI-Komponenten von Microsoft SQL Server zur

REPORTING

SSRSSql Server Reporting Services

SSRS

Page 21: Thank you for the last session Team Foundation Server (TFS) Microsoft Business Intelligence mit SQL Server BI-Komponenten von Microsoft SQL Server zur

http://technet.microsoft.com/de-de/library/ms167305.aspxErstellen eines einfachen Tabellenberichts (SSRS-Lernprogramm)

Dieses Lernprogramm hilft Ihnen, mit dem Berichts-Designer einen einfachen Tabellenbericht zu erstellen, der auf der AdventureWorks2012 -Datenbank basiert. Sie können die Berichte auch mithilfe des Berichts-Generators oder des Berichts-Assistenten erstellen. In diesem Lernprogramm erstellen Sie ein Berichtsprojekt, richten Verbindungsinformationen ein, definieren eine Abfrage, fügen einen Tabellendatenbereich hinzu und zeigen den Bericht in der Vorschau an.

+ Features over Features

+ OLAP Cube als data source

+ deployment

SSRS - Definition

Page 22: Thank you for the last session Team Foundation Server (TFS) Microsoft Business Intelligence mit SQL Server BI-Komponenten von Microsoft SQL Server zur

SSRS - Demo

ssrs tutorials lesson 1

In this tutorial I use Northwind database to create an SSRS report. The report displays suppliers and for each one all the products they supply. We will see how to create a data source, data set, table, expressions, parameters and indicators.

OLTP Northwind Einführung data sorce, data set, table

ssrs tutorials lesson 2

This demo gives a brief description of how to make your first SSRS report using the Report wizard.

AdventureWorks Erstellen mit Wizard

ssrs tutorials lesson 4

This tutorial shows you how to create a basic SSRS report using the toolbox and without using the wizard.

AdventureWorks Erstellen ohne Wizard

ssrs tutorials lesson 5

This demo shows you how to create a parameterized SSRS report.

Parameter

ssrs tutorials lesson 6

This demo shows you how to create a cascading parameters ssrs 2008 report

Cascading Parameter

ssrs tutorials lesson 7

This demo gives you a brief overview of using SSRS 2008 R2 expressions.

Expressions

ssrs tutorials lesson 8

This demo gives you an overview of how to create SSRS Matrix reports. We use the Adventure works Database in our demo.

Matrix (OLTP, AdventureWorks)

CUBE db Creating Basic Reports from an SQL Server Analysis Services

SQL Server Report Builder (User Tool) OLAP Cube

Adventure Works DW (Cube) Tool Report Builder

+ ssrs with mdx part 1 ... 11

Demosql

mdx

Page 23: Thank you for the last session Team Foundation Server (TFS) Microsoft Business Intelligence mit SQL Server BI-Komponenten von Microsoft SQL Server zur

Youtube Videos

Serie: OLTP Reports; Keywords: ssrs tutorials lesson 1 .. 11

SSRS - Lernmaterial

SQL db Content Remarkssrs tutorials lesson 1 In this tutorial I use Northwind database to create an SSRS report. The report displays

suppliers and for each one all the products they supply. We will see how to create a data source, data set, table, expressions, parameters and indicators.

OLTPNorthwind Einführung data sorce, data set, table

ssrs tutorials lesson 2 This demo gives a brief description of how to make your first SSRS report using the Report wizard.

AdventureWorksErstellen mit Wizard

ssrs tutorials lesson 4 This tutorial shows you how to create a basic SSRS report using the toolbox and without using the wizard.

Erstellen ohne Wizard

ssrs tutorials lesson 5 This demo shows you how to create a parameterized SSRS report. Parameter

ssrs tutorials lesson 6 This demo shows you how to create a cascading parameters ssrs 2008 report Cascading Parameter

ssrs tutorials lesson 7 This demo gives you a brief overview of using SSRS 2008 R2 expressions. Expressions

ssrs tutorials lesson 8 This demo gives you an overview of how to create SSRS Matrix reports. We use the Adventure works Database in our demo.

Matrix(OLTP, AdventureWorks)

ssrs tutorials lesson 9 This demo gives you a brief overview on how to create child groups and drilldowns. We also look at how to control and toggle the ...

Drillup and -down

ssrs tutorials lesson 10 This tutorilas gives you an overview of how to create an SSRS subreport. We look at passing parameters from a main report to a ..

Subreports

ssrs tutorials lesson 11 This demo gives you an overview on how to create basic graphs and charts using SSRS 2008 R2. This demo shows you ways to ...

Graphs

sql

Page 24: Thank you for the last session Team Foundation Server (TFS) Microsoft Business Intelligence mit SQL Server BI-Komponenten von Microsoft SQL Server zur

Youtube Videos

Serie: OLTP Reports; Keywords: Services (SSRS) Part 1 .. 23

SSRS - Lernmaterial

Reporting Services (SSRS) Part 1 Getting Started with a New ProjectReporting Services (SSRS) Part 2 Data Sources and DatasetsReporting Services (SSRS) Part 3 Keeping Header Rows Visible Reporting Services (SSRS) Part 4 Working with TablesReporting Services (SSRS) Part 5 Controlling the number of rows per pageReporting Services (SSRS) Part 6 Grouping in TablesReporting Services (SSRS) Part 7 Calculated Fields Reporting Services (SSRS) Part 8 Conditional Formatting in Tables Reporting Services (SSRS) Part 9 Indicators Reporting Services (SSRS) Part 10 Gauges Reporting Services (SSRS) Part 11 Basic Parameters Reporting Services (SSRS) Part 12 Drop Down List Param Reporting Services (SSRS) Part 13 Null Values in Parameters Reporting Services (SSRS) Part 14 Cascading Parameters Reporting Services (SSRS) Part 15 Matrix Reporting Services (SSRS) Part 16 ListsReporting Services (SSRS) Part 17 Linked Reports Reporting Services (SSRS) Part 18 ChartsReporting Services (SSRS) Part 19 SubreportsReporting Services (SSRS) Part 20 Basic MapsReporting Services (SSRS) Part 21 Pivot Table (Dynamic Matrix)Reporting Services (SSRS) Part 22 Document MapsReporting Services (SSRS) Part 23 Report Variables and Group Variables

sql

Page 25: Thank you for the last session Team Foundation Server (TFS) Microsoft Business Intelligence mit SQL Server BI-Komponenten von Microsoft SQL Server zur

Youtube Videos

Video: OLAP Reports (Einführung)

Creating Basic Reports from an SQL Server Analysis Services

https://www.youtube.com/watch?v=pQxkoTsT19w

Inhalt

SQL Server Report Builder (User Tool)

OLAP Cube

SSRS - Lernmaterial

mdx

Page 26: Thank you for the last session Team Foundation Server (TFS) Microsoft Business Intelligence mit SQL Server BI-Komponenten von Microsoft SQL Server zur

Youtube Videos

Serie: OLAP Reports; Keywords: ssrs with mdx part 1 .. 11

SSRS - Lernmaterial

ssrs with mdx part 1 Sonstige Datenbank (CUBE): Cube 4 ReportsSimple Report with Query WizardWith mdx Query Builder

ssrs with mdx part 2 With mdx Query BuilderDrillup and –downSimple Parameter

ssrs with mdx part 3 Writing own mdx QueryCalculated fieldsgroups

ssrs with mdx part 4 MatrixParameter

ssrs with mdx part 5 Multiple Parameter Values in mdxssrs with mdx part 6 Multiple Parameter in mdxssrs with mdx part 7 Cascading Parametersssrs with mdx part 8 Null Values in Parameters Mdx IsEmptyssrs with mdx part 9 Gouping

Drillup and –downssrs with mdx part 10 Drill throw

Pass Parameter to formssrs with mdx part 11 Subreports

mdx

Page 27: Thank you for the last session Team Foundation Server (TFS) Microsoft Business Intelligence mit SQL Server BI-Komponenten von Microsoft SQL Server zur

PORTAL

SHAREPOINT

SharePoint

Page 28: Thank you for the last session Team Foundation Server (TFS) Microsoft Business Intelligence mit SQL Server BI-Komponenten von Microsoft SQL Server zur

Deployment to SharePoint

SharePoint ist das Unternehmensportal

SharePoint ist das Management Cockpit

SharePoint ist die BI-Plattform

und mehr? TFS ist das Tool für Entwickler / thanks for the last TFS session

Business Intelligence in 100 Sekunden

SharePoint