Showing posts with label MSBI. Show all posts
Showing posts with label MSBI. Show all posts

New SSIS Project 2012 and 2008 Integration Services

SSIS 2012 or 2008 creating a new SQL Server Integration Project 

  1. In this SSIS 2012 demo i will explain how to create an SSIS integration project in SQL Server Integration services project in BIDS 2012 or 2008
  2. SSIS 2012 or SSIS 2008 is a powerful tool that is used for Data Migration and Data Integration and is an important part of Microsoft Business Intelligence (MSBI)
  3. The tools that we have used are SQL Server 2008 or 2012 ,Business intelligence development studio 2008 or 2012
Step 1:click start then open Business intelligence development studio(BIDS)
Step 2:Once the Business intelligence development studio(BIDS) is opened click on file-new project-a new project window will open
Step 3: From the project window select Integration services project .Then give the project name , solution name,project location and then click on ok

Step 4: The new SSIS 2008 or 2012 project will have Solution explorer Properties and the package in design mode

Solution explorer will contain Data Sources,Data source views,SSIS Packages with Default Package.dtsx package as shown in the below

Step 5: when we click on the SSIS Package.dtsx it gets opened in design mode
The design mode is divided into tabs such as
Control flow ,data flow,event handlers,package explorer





when we right click the control flow area we can find that there are many options available such as variables ,logging ,properties ,select all and many more

Step 6:At the bottom we have connection managers section. In this sections we can add the connections that are needed by our ssis packages to move data from source to destinations
Some of the connection managers types are Flat File connection,ADO.NET Connection ,OLE DB Connection and many more

Conclusion:
This SSIS demo will be helpful in making a empty project in SQL Server Integration Services Project


SSIS 2012 2008 Data Analysis Pivot Unpivot Data Mining Query transformation



Data Analysis Transformations in SSIS 2012 2008 

In this article i will explain SSIS data transformations  that enables you to analyse data, 
The SSIS Data transformations are as follows
  1. Pivot Transformation
  2. Unpivot Transformation
  3. Data Query Transformation
Pivot transformation
  1. The Pivot transformation takes data from a normalised result set and presents the data in a cross tabulated or denormalised structure. 
  2. For example, a normalised Orders data set that lists customer name, product and quantity purchased typically has multiple rows for any customer who purchased multiple products, with each row for that customer showing order details for a different product. 
  3. By pivoting the data set on the product column, the Pivot transformation can output a data set with a single row per customer. 
  4. That single row lists all the purchases by the customer, with the product names shown as column names, and the quantity shown as a value in the product column.
  5.  Because not every customer purchases every product, many columns may contain null values.
The Advanced Editor for Pivot dialog box contains three tabs to configure the properties:
  • Component Properties tab. The Component Properties tab allows you to specify a Name and Description for the OLE DB Command Task. You can also specify a locale with the LocaleID property and whether the data flow is validated at run time or design time by using the ValidateExternalMetadata property.
  • Input Columns tab. The Input Columns tab consists of the Available Input Columns property that enables you to select the columns that the Pivot transformation operation will affect. When a column is selected, it appears in the Input Columns list. The Output alias allows you to define the name of the output column. The Usage Type property defines if the data imported is READONLY data or READWRITE data.
  • Input and Output Properties tab. The Input and Output Properties tab allows you to set the properties of the input and the output columns. The most important property here is the PivotUsage property. This determines what role the input column will play in creating the pivot table and can be configured with the following values:
    • 0. The column is not pivoted, and the values are passed through to the transformation output.
    • 1. The column is part of the set key that identifies one or more rows as part of one set.
    • 2. The column is a pivot column. At least one column is created from each column value. This data must be sorted input column.
    • 3. The values from this column are placed in columns that are created because of the pivot.

Unpivot transformation

  1. The Unpivot transformation takes data from a denormalised or cross-tabulated result set and presents the data in a normalised structure. 
  2. The Unpivot transformation can be configured with the following properties.
  3. At the bottom of the Unpivot Transformation Editor dialog box is the Pivot key value column name. 
  4. Here, you define a column heading for the column that will hold the pivoted data that is converted into normalised data such as Products or Fruits.
  5. The Available Input Columns property enables you to select the input columns that the Unpivot transformation operation turns into rows. 
  6. When a column is selected, it appears in the Input Columns list. Any columns that are not selected are passed through to the data flow output. The Destination Column allows you to define the name of the destination column in the normalised output.
  7. In the Unpivot scenario, multiple input columns are usually mapped to one destination column. 
  8. For example, the Available Input Columns may consist of column headings such as Apples, Pears and Peaches.
  9.  All of these input columns are mapped to a destination column named Fruits that may be defined by the Pivot key value column name property.
  10. The Pivot Key value property specifies the value that is used in the rows in the normalised result set and, by default, uses the same name as the input column but can be changed.
Data Mining Query transformation
  1. The Data Mining Query transformation enables you to run Data Mining Expression (DMX) statements that use prediction statements against a mining model.
  2.  Prediction queries enable you to use data mining to make predictions about sales or inventory figures as an example. 
  3. You can then create a data flow output of the results. One transformation can execute multiple prediction queries if the models are built on the same data mining structure.
  • Mining Model tab. The Mining Model tab is used to provide an existing Connection to the Analysis Services database. You can specify a new connection by clicking the New button. The Mining Structure allows you to specify the Data Mining Structure that is to be used as a basis for analysis. A list of mining models is then presented.
  • Query tab. The Query tab allows you to write the DMX prediction query. A Build New Query button is provided to build the DMX prediction query through a builder.

BI 2012 Fact Tables and Dimension Tables in Microsoft BI Datawarehouse



Fact Tables and Dimension Tables in Microsoft BI Datawarehouse

  1. A data warehouse is a relational database that centrally stores a consistent view of the data from transactional systems in a denormalised format. 
  2. This makes the retrieval of the data more efficient than it would be from a transactional system.
  3. A data warehouse will consist of one or more data marts. 
  4. A data mart typically represents an area of the business such as sales or finance departments. Within each data mart, there are two types of tables created
  5. fact tables and dimension tables

Dimension Tables

  1. Dimension tables contain columns that hold information that represents a business entity. 
  2. Examples of dimension tables can include time, region and customers. The columns will contain information that is specific to the entity. In the case of the customers dimension table, columns can include Firstname and Lastname. 
  3. You can define as many columns as you want to precisely define the customer entity. However, placing unnecessary columns increases the volume and time it would take to populate the dimension table with data by using SSIS.
  4. Dimension tables should consist of two columns that are important in loading the data warehouse. The first column is typically a dimension key known as a surrogate key. 
  5. This is usually a primary key column that uses an identity constraint to automatically populate the column value. It is also used to provide a relationship to the fact table. The second column is referred to as an application key column. This column is used to hold the value of the record in the original transactional system.
  6. You may also wish to add columns to the dimension table that can be used to track changes to the records within the dimension table. As information within the table changes, you can add a ModifiedDate column that can be used to track the date when changes occurred to a record. To keep historical records of changed data, you could include StartDate and EndDate columns that help you to determine the duration that a record was in a particular state.
  7. Dimension tables contain columns that hold information that represents a business entity. You can define many dimension tables. 
  8. An example of a business entity that is represented as a dimension table could be customers. The columns will contain information that is specific to that entity. In the case of the customers dimension table, columns can include Firstname and Lastname. Dimension tables will also contain a primary key column that uniquely identifies the records in the dimension table. The primary key also defines a one-to-many relationship with an associated column or columns within a fact table.
  9. Also note that dimension tables can be shared between different data marts. A common example of this is a Time dimension table. This could be used by different data marts to provide consistent information about time across multiple data marts. These types of dimension tables are known as conformed dimensions. In order to manage the movement of data from source systems to the data warehouse, staging tables may also be created in the data warehouse. This allows tables to act as intermediary tables for cleansing data before loading the cleansed data into the respective dimension tables.

Fact Tables

  1. The fact table contains information about historical transactions and typically represents this information as integer data. 
  2. For example, you can have three dimension tables named Customers, Region and Time. Each has a primary key column that relates to the fact table. In this example, Customer 6231 in the fact table is equal to Francois Ajenstat in the dimension table. Region 4 is equal to the value of West and the Time value of 3423 is equal to the 18th of August, 1975 in the Time dimension table. The additional columns will contain measures about the transaction such as order quantity and sales amount. Using integer data to represent historical transactions allow SQL Server Analysis Services to process the data much more efficiently
  3. The fact table is at the heart of the data mart and typically consists of three groups of columns. The first is a primary key column to maintain the integrity of the fact table itself. The second group of columns are known as foreign keys.
  4. Each of these columns relate to a dimension table primary key to provide a relationship between the fact table and the contextual information provided by the dimension table. Imagine that the image represents a Sales data mart, and that the three smaller tables represent dimension tables called CustomerDim, TimeDim and RegionDim. 
  5. The fact table, which would be the big table in the image, would contain three foreign key columns that would relate directly to each dimension table.
  6. The fact table also contains a third group of columns known as measures. This group of columns hold business metrics such as sales units, sales amounts and cost amounts. As a result, the fact table ideally consists of business information represented by integer values.
  7. On occasions, a fourth group of columns may be seen within the fact table. This may be one or more columns that are referred to as degenerative dimensions. A degenerative dimension is information about a business entity that is stored within the fact table itself rather than held within a separate dimension table. Using the example of the CustomerDim, TimeDim and RegionDim, these three dimension tables provide context information about customers, time and regions. A central fact table holds foreign key references to the dimension tables and includes measures such as SalesUnits and OrderQuantity. We can include a SalesOrderNumber for each record of a sale. However, rather than creating a separate dimension table that would require a join to the dimension table just to return one piece of contextual information, it is more efficient to store this piece of information within the fact table itself.
  8. Fact tables are created like any table that is created in SQL Server. You also define the primary and foreign key relationships within the database engine. Therefore, you are limited to the 8-KB limit on the amount of information that is stored in a row within a table

SSIS 2012 SQL Server Integration Services Packages and Variables


SQL Server Integration Services Components in SSIS 2012 and 2008

  1. There are core components of SSIS that enables you to create an ETL solution that can be used to facilitate a part of a BI solution. 
  2. In this article i will be explaining package ,variables and package configurations 

Package in SSIS 2012 or 2008

  1. A package is the highest object in SSIS and represents a single unit of work.
  2. A package can host multiple packages within it to control the flow of multiple packages. 
  3. Typically, it contains control flow and data flow elements to manage data movement and transformations.
  4. You can create packages by using Business Intelligence Development Studio or the Import and Export wizard
Variables in SSIS 2012 or 2008
  1. Variables can be used to provide additional functionality to SSIS packages. 
  2. SSIS provides a host of system variables. These system variables can be used for customisation of a package. 
  3. An example could include using the system variables to populate package information to a table using custom logging.
  4. SSIS also allows you to create user-defined variables.
  5. The names of user-defined and system variables are case-sensitive. These variables can be used to hold a value that may be used elsewhere in a package. 
  6. For example you may use a GETNOW() function to populate a variable. This variable may then be used in the WHERE clause of an Execute SQL Task to return results back where the ModifiedDate column of a table is equal to the value in the variable.
  7. In this respect, variables can prove valuable in providing package logic.
Package configurations in SSIS 2012 or 2008
  1. Package configurations are a useful tool to use to set package properties as the package executes.
  2. In scenarios where it is difficult to anticipate package properties before it is deployed, package configurations can help.
  3. For example, you may have a data source destination within a Data Flow task, but you do not know the name of the server. 
  4. You can use a package configuration to populate the data source destination's ServerName property with the environmental variable, ComputerName. 
  5. When the package executes, it will use the environmental variable ComputerName to populate the ServerName property at run time.
  6. Package configurations can be provided from one of five sources:
  • Environmental variables
  • Registry
  • SQL Server
  • XML configuration file
  • Parent package variable

SSIS 2012 Data flow in Integration Services


Data flow in SSIS 2012 or 2008 Integration Services

  1. In this article i will be explaining the data flow components in ssis 2008 or 2012 
  2. Data flow is the component of SSIS that focuses specifically on the movement and transformation of data within the package. 
  3. There are three core components that can be used within the data flow:
Sources
Sources extract data from data stores such as tables and views in relational databases, files and Analysis Services databases.
Destination
Destinations load data into data stores or create in-memory datasets.
Transformations
Transformations make modifications to the data as it is moved between a data source and a data destination. 
The types of transformations that are available include:
  • Data Formatting transformations to change the format of the data.
  • Column transformations to copy, export or import columns.
  • Multiple Data Flow transformations to merge, split or join data together.
  • Custom transformations using .NET and ActiveX to perform custom transformations.
  • Slowly Changing Dimension to manage dimension tables in a data warehouse.
  • Data Analysis transformations such as data mining and Pivot for data analysis.
  • Data Sampling transformations to perform row counts and sampling.
  • Audit transformations to audit data changes.
  • Fuzzy transformations to apply fuzzy logic to data within a transform to standardise data.
  • Term transformations to extract specific data from text.
  1. Additionally, Integration Services provides paths that connect the output of one component to the input of another component. 
  2. Paths define the sequence of components and let you add annotations to the data flow or view the source of the column.

SSIS 2012 Control Flow Tasks Precedence constraint Precedence constraint


Control flow Componets  in SSIS 2012 or 2008   Integration services 
  1. In this article i will be explaining you the control flow components in ssis 2012 
  2. Control flow is responsible for managing how the entire package operates
  3. There are three core components that can be used in the control flow to manage a package execution:
Tasks. 
  1. Tasks are commonly used to add functionality to a package. 
  2. This functionality is wide and varied and provides the ability to perform the work in the package. 
  3. The categories of tasks that are performed are as follows:
  • Data tasks work with data.
  • File and network tasks interact with the file system and FTP sites.
  • Scripting tasks add custom transformations and logic to SSIS packages.
  • Database object transfer tasks manage the movement of SQL Server objects.
  • Package execution task control the execution of SSIS and Data Transformation Services (DTS) packages.
  • Analysis Services tasks interact with Analysis Services.
  • Maintenance tasks perform common SQL administrative functions.
  • Windows Management Instrumentation (WMI) tasks interact with WMI.
Precedence constraint
Precedence constraints are used to control the workflow between the tasks within a package that will dictate what will proceed a task based on a failure, completion or successful execution of a previous task. You can also use expressions to control the workflow.
Containers.
Containers are used to group tasks together as one unit so that you can further refine the structure of the workflow within a package.

SSIS 2012 and 2008 Event Handlers with examples



Event handlers in SSIS 2012 or 2008 Integration Services


  1. In this article i will explain the event handlers in SSIS 2012 
  2. Event handlers are a component that execute tasks based on an event that occurs at the package, container or task level at run time. 
  3. The tasks that can be performed within an event handler are the same tasks that are available within the control flow. 
  4. The events that can be defined include:

  • OnError. This event is raised by an executable when an error occurs.
  • OnExecStatusChangedThis event is raised by an executable when its execution status changes.
  • OnInformation. This event is raised during the validation and execution of an executable to report information. This event conveys information only, no errors or warnings.
  • OnPostExecuteThis event is raised by an executable immediately after it has finished running.
  • OnPostValidateThis event is raised by an executable when its validation is finished.
  • OnPreExecute. This event is raised by an executable immediately before it runs.
  • OnPreValidate. This event is raised by an executable when its validation starts.
  • OnProgress. This event is raised by an executable when measurable progress is made by the executable.
  • OnQueryCancel. This event is raised by an executable to determine whether it should stop running.
  • OnTaskFailed. This event is raised by a task when it fails.
  • OnVariableValueChangedThis event is raised by an executable when the value of a variable changes. The event is raised by the executable on which the variable is defined.
  • OnWarning. This event is raised by an executable when a warning occurs.
Event handlers can perform the following tasks:
  • Clean up temporary data storage when a package or task finishes running.
  • Retrieve system information to assess resource availability before a package runs.
  • Refresh data in a table when a lookup in a reference table fails.
  • Send an e-mail message when an error or a warning occurs or when a task fails.
For example
An OnError event is raised when an error occurs. You can create custom event handlers for these events to extend package functionality and make packages easier to manage at run time.

SSAS 2012 Introduction to SQL Server Analysis Services



SSAS 2012 2008 Introduction to SQL Server Analysis Services for beginners and scenarios to use SSAS 

  1. SSAS 2012 is the technology that is provided by SQL Server to create cubes. 
  2. Organizations use cubes to manage large volumes of data so that complex queries can be retrieved in a more efficient manner than if the queries were to be executed against a relational database. 
  3. With cubes, there is also the ability to preaggregate data and store them in the cube for faster retrieval of summary information.
  4. The most underused aspect of SSAS is data mining that enables a business to perform trend analysis and identify relationships between data that may not be immediately apparent to end users when looking at the data. 
  5. Analysis Services is a fantastic tool that can host the data in a central point as information
  6. SQL Server Analysis Services provides the ability to efficiently query multidimensional data. It also provides the capability to use data mining to extrapolate trends and patterns within data. 
  7. There are core components that you should be aware of to create a cube.
  8. At its core, data sources must be defined to provide connection information to the source data for the cube. You can then define data source views to define the specific tables on which the cube is based. This will typically involve dimension tables and fact tables from a data warehouse.
  9. You can then define dimensions within the cube against dimension tables within the data warehouse. The dimensions will provide contextual information and act as the axis for the cube. For improved readability, you can also define hierarchies to allow the user to drill down into the dimension data.
  10. On completing the creation of the dimensions, we can then run the cube wizard to create the cube. The wizard allows you to create a cube using existing dimensions or from data from a table. 
  11. You can also create an empty cube if you do not have the data available. Once the cube is created, you can configure cube partitions. This enables you to spread the data over multiple physical disks to improve the performance of cube processing and querying data in the cube. 
  12. SQL Server Analysis Services also provides additional OLAP objects to extend the functionality of the cube, including calculated members, KPIs, actions and translations.
  13. For data mining, you can use new or existing data sources and data source views to point to the source data. The source data for data mining can be an existing cube or data from a table or a view. 
  14. You can then create a data mining structure that integrates the source data with a data mining algorithm, known as a data mining model in order to find patterns in the data using the data mining model. On completing this, you have the ability to view and validate the results that are returned back to the data mining viewer.

SSAS 2012 Scenarios for Using SQL Server Analysis Services

  1. Analysis Services enables you to analyse large quantities of data. With it, you can design, create and manage multidimensional structures that contain detail and aggregated data from multiple data sources.
  2. Scenarios that SSAS can help with include:
  • The analysis of large volumes of data efficiently.
  • The ability to define server level KPIs that can be created and maintained centrally.
  • Add value to cubes by creating calculations by using multidimensional expressions.



SSAS 2012 2008 SQL Server Analysis Services Components Such as Cubes



SSAS 2012 2008 SQL Server Analysis Services Components

  1. There are core components that are used to create an Analysis Services solution within Business Intelligence Development Studio. 
  2. Understanding these components will help you to start multidimensional and data mining solutions within your BI solution.
The Main SSAS Components are stated below:
  1. Data sources
  2. Data source views
  3. Cubes
  4. Dimensions
  5. Measures
  6. Slice and dice
  7. Data mining

Let us now explain each one of this in detail
Data sources in SSAS 2012
  1. Data sources provide the connection information for the source system on which the Analysis Services solution is based.
  2. Typical configuration for data sources involve specifying the name of the server on which the data is stored. You also specify the credentials required to connect to the server and the name of the database to access. You should also consider that additional settings may be required between different data sources.
  3. The data sources that are supported by SSAS  2012 2008 include:
  • SQL Server 7.0 using the SQL OLE DB Provider or the .NET native OLE DB provider (x86, x64 and ia64).
  • SQL Server 2000 using the SQL OLE DB Provider or the .NET native OLE DB provider (x86, x64 and ia64).
  • SQL Server 2005 using the SQL Server Native Client OLE DB provider or the SqlClient.NET managed provider (x86, x64 and ia64).
  • SQL Server 2008 using the SQL Server Native Client OLE DB provider or the SqlClient.NET managed provider (x86, x64 and ia64).
  • Oracle 9.0 using the Microsoft OLE DB Provider for Oracle or the .NET native OLE DB provider (x86 only).
  • IBM DB2 8.1 using Microsoft OLE DB Provider for DB2 (x86, x64, ia64)—only available for Microsoft SQL Server 2005 Enterprise Edition or Microsoft SQL Server 2005 Developer Edition.
  • Access with Microsoft Jet 4.0 OLE DB provider (x86 only).
  • Teradata v2R6 with OLE DB 1.3 provider from NCR (x86 only).
  • Teradata managed provider (x86, x64 and ia64).  

Data source views in SSAS 2012

  1. Data source views are objects based on a data source that provide an abstraction of a subset of tables, columns and relationships from the data source that you require as part of your Analysis Services solution.
  2. This abstraction layer holds metadata about the objects and allows you to create an Analysis Services solution without a permanent connection to the data source.
  3. To run the cube wizard or the data mining wizard, a data source view must be created.
  4. Annotations can be added to provide friendly names for the tables and columns to improve the readability for the user.
  5. The type of information that is defined within a data source view includes:
  • A data source view name.
  • A definition of any subset of the schema retrieved from one or more data sources including:
    • Tables
    • Columns
    • Relationships

Cubes in SSAS 2012
  1. An OLAP database can hold one or more cubes. A cube is a fundamental unit of multidimensional analysis.
  2. A cube consists of dimensions and measures. 
  3. The dimensions form the axis of the cube and provide contextual information for the data that resides in the cube.
  4. This information is known as measures.

Dimensions in SSAS 2012
  1. Dimensions provide the contextual information for the data that resides in a cube. 
  2. The dimensions in a cube typically map to a dimension table within the data warehouse.
  3. As dimensions are used to describe a business entity, dimensions consist of attributes that provide specific information about the business entity. 
  4. These attributes typically map to a specific column within the dimension table in the data warehouse.
  5. To improve readability, hierarchies can be introduced within the dimension. 
  6. For example, within a time dimension, a hierarchy named CalendarYear can be created containing three levels—Year, Quarter and Month. 
  7. These levels allow the user to easily drill down into specific time periods

Measures in SSAS 2012
  1. Measures provide the numeric information that resides inside the cube. 
  2. They typically map to the measures columns in the fact table of a data warehouse.
  3. As well as including the measures information from the fact table, SSAS also creates preaggregated versions of the measures.
  4. For example, a fact table may consist of a measure named OrderQuantity. As well as including the detail information that is provided by the fact table, Analysis Service creates preaggregated OrderQuantity totals for yearly, quarterly or monthly totals. By creating this preaggregated data, queries for this information is retrieved more efficiently.
Slice and dice in SSAS 2012 
  1. Slicing and dicing is the technique that can be used to interrogate the data from within a cube.
  2. This technique is implemented in products such as Excel 2007/10/13. This allows you to use the pivot table feature to slice and dice the data to retrieve specific data.
  3. Business Intelligence Development Studio provides a browser window that allows you to slice and dice the data to test the results that is returned before the cube is deployed into a production environment.
  4. Furthermore, you can also employ this technique within Reporting Services as the basis for providing data for the reports that are deployed through SSRS.
Data mining in SSAS 2012 
  1. Data mining is a feature in SSAS that enables you to extrapolate trends and patterns in the data.
  2. You can create data mining structures to explore the data against algorithms that are provided
  3. There is also a Data Mining Add-in for Excel 2007 2010 2013 that allows you to explore the results that are returned by a data mining structure. You can also use the add-in to create your own data structures

SSRS 2012-2008 Introduction to SQL Server Reporting Services


SSRS 2012 Introduction to SQL Server Reporting Services

  1. In this article i will be explaining the scenarios for using SQL Server Reporting SSRS 2012 and a small introduction to reporting services 
  2. SSRS provides the ability to present information from both Analysis Services cubes and relational data sources as reports. 
  3. With flexible report designs and a vast improvement on the visualisation of reports, you have the ability to create compelling reports. 
  4. Furthermore, interactivity can be added to allow the end user to become involved with the reports. This can be as simple as adding interaction in the form of parameter lists or drill through.
  5.  You can also empower end users to create their own reports by using Report Builder. All of this can be managed with a simplified, Web-based interface that allows you to host and deliver reports when the user needs it.
  6. SSRS provides a complete set of tools and a streamlined server architecture that is designed to support the reporting requirements across the enterprise, from a wide variety of data sources at a reduced total cost of ownership.
  7. Extensive enhancements have been introduced to the authoring capabilities within Reporting Services 2008 2012, providing the ability to create comprehensive, richly formatted reports quickly and easily through a variety of reporting tools. 
  8. The reports created are stored within a Report Definition Language (RDL) file.
  9. Reporting Services can also be tightly integrated with MOSS and provide highly customised applications within Microsoft Visual Studio 2008 2012 through the use of report viewer controls.
  10. A restructuring of the server architecture has reduced the configuration and maintenance tasks required to manage Reporting Services.
  11. For example, the dependency on IIS has now been removed, reducing the need to configure multiple service accounts.
  12.  A redesigned report and rendering engine delivers reports of any scale more efficiently.  
  13. Microsoft Word 2007 has been introduced as a new, out-of-the-box rendering format. 
  14. The delivery of reports can also be managed through subscriptions that can be controlled by the user or the administrator.
  15. With SSRS 2008, you can create, manage and deploy reports much more efficiently.

Scenarios for Using SQL Server Reporting Services 2012

  1. SQL Server Reporting Services 2008 is installed as part of the SQL Server setup. 
  2. When Reporting Services is selected in the features selection screen, the Reporting Services Configuration screen provides three options that can be selected to determine how Reporting Services can be accessed. This can be useful if Reporting Services is to be used by internal users, external users or if you wish to integrate Reporting Services with Microsoft Office SharePoint Server.
  3. By selecting the Install in Native Mode default configuration option, Reporting Services is installed with all of the default options and is operational once the installation is complete. 
  4. This is an ideal choice if the Reporting Services solution is to be used by internal users only and you do not wish to change the default settings.
  5. Users will access the reports by typing the URL in Internet Explorer that goes to http://ServerName/reports.
  6. The installation allows you to integrate Reporting Services with Microsoft Office SharePoint Server. Assuming the Reporting Services pack is already installed on the SharePoint Server, Reporting Services will be installed in SharePoint integrated mode whereby the user will access the reports from the SharePoint site rather than the Reporting Services home page. Reporting Services can also use the features available to SharePoint Server as well.
  7. For external access, it is best practice to select the Install, but do not configure the report server option in the Reporting Services Configuration screen. 
  8. In this scenario, you will have to use Reporting Services Configuration Manager to manually set the values for the home page of the Report Server Web site, Report Manager Web site and determine how the Report Server databases are created. 
  9. Furthermore, you will have to modify configuration files to secure the traffic that is sent between the Report Server and the external clients.

SSRS 2012 2008 Reporting Tools Report Builder Manager Designer



SSRS 2012 2008 SQL Server Reporting Services Tools
In this article i will  describes the various tools that you can use to create reports in SSRS.
The SSRS 2012 Reporting tools are 
  1. Reporting Services Configuration Manager
  2. Report Designer
  3. Report Builder
  4. Report Manager
  5. SQL Server Management Studio
  6. Command prompt utilities
  7. Use the Report Wizard
Lets explain one by one the reporting tools in SSRS 2012 and 2008 
Reporting Services Configuration Manager
  1. For post-installation configuration, the Reporting Services Configuration tool provides easier management, particularly for those moving from SQL Server 2000 Reporting Services.
  2. Introduced in SQL Server 2005 2008 Reporting Services, the notable change to this version, apart from the look, is the fact that there is only one service account that needs to be configured now that the dependency on IIS is removed. 
  3. Previous versions required a Windows service account and a Web service account to be configured. Below is a summary of options:
  • Server Node. Provides the ability to stop and start the Reporting Services.
  • Service Account. Provides the ability to change the security context under which the Reporting Services run.
  • Web Service URL. Configures the URL access to the report server by creating a URL reservation. A URL reservation defines the virtual directory, IP address, TCP port and optionally a SSL certificate. HTTP.sys uses the URL reservation to direct users requests and allow access to the URL.
  • Database. Provides the ability to change the location of the report server database and to change the credentials for connecting to the report server database.
  • Report Manager. Creates an URL reservation to access the Report Manager Web site.
  • E-mail Settings. Provides the ability to integrate with e-mail by defining a server address and an e-mail address that has the ability to send e-mail messages from the report server.
  • Execution Account. Provides the ability to specify an account to use against report data sources that do not require credentials or to access remote servers.
  • Encryption Keys. Allows the management of the keys that are used to encrypt the sensitive data that is stored in the Reporting Services database. There is the ability to back up and restore the encryption keys, change encryption keys and delete the encrypted content within the database.
  • Scale-out Deployment. Provides the ability to manage multiple instances of Reporting Services that share the same ReportServer database such as a clustered instance. SQL Server 2005 Reporting Services referred to scale-out deployment as Initialization.
Report Designer
  1. SSRS has introduced a new designer that allows business users to connect to data sources and produce richly formatted reports that provide highly visual information in a user-friendly interface. 
  2. The report designer is found within Business Intelligence Development Studio and consists of the following core elements:
  • Data pane. Provides the ability to define data sources and data sets. Items from the Data pane can be dragged onto the designer canvass.
  • Toolbox. Provides the ability to add data regions and other report items to the designer canvass.
  • Report canvass designer. Located in the centre of the Report Designer application, it allows you to develop the report in its entirety.
  • Grouping pane. A grouping pane is located at the bottom of the Report Designer. This provides a quick way of managing groups of data in the canvas designer, without the need for entering into dialog boxes.
  • Properties pane. A context sensitive pane that changes as items on the designer canvass are selected, providing rich formatting and report body options. The Properties pane provides a vast array of options than can vastly improve the visualisation of the reports
Report Builder
  1. Report Builder is an application that empowers power users to create their own ad-hoc reports. 
  2. Report Builder is available in two versions:
  • Report Builder version 1 is a ClickOnce .NET application that allows the creation of unplanned reports. For power users to use the Report Builder version 1, a report model must be created that provides an abstraction layer to the underlying data in a data source. It is also a prerequisite to be able to use the Report Builder version 1. As a result, the report model has a separate project template in Business Intelligence Development Studio.
  • Report Builder version 2 has now been introduced and is not constrained to the requirements of a report model. Report Builder version 2 has the same layout as the report designer that is available in Business Intelligence Development Studio. The application is encased within an Office 2007 application with ribbons to provide shortcut to common tasks. With Report Builder version 2, you can make use of data sources directly, providing a more flexible tool than its previous version.
Report Manager
  1. Report Manager is the Web site that is used to host the reports that are deployed to the report server. 
  2. End users will browse to a predefined URL that is the home page of Reporting Services.
  3. From here, users can browse and export reports.
  4. If they have the permission, they may also be able to subscribe to reports so that they can be delivered via e-mail.
  5. Report Manager also acts as an administrative Web site for the reports.
  6.  Report Server administrators have the same capabilities as the end users, however they can manage report execution, report history and security as well.
SQL Server Management Studio
  1. SQL Server Management Studio provides administrative capabilities for the report server. 
  2. Within the Reporting Services server type, a report server administrator can create shared schedules, create system and item-level security roles and view the jobs that are running on the report server.
  3. You can also manage the report server databases within the database engine, including backing up the database.
Command prompt utilities
There are command prompt utilities that can be used to manage Reporting Services:
  • RSConfig.exe. can be used to perform post installation tasks on the report server. The options available within RSConfig.exe are available within the Reporting Services Configuration Manager.
  • RSKeymgmt.exe. allows you to back up and restore the report server encryption keys. This feature is also available within the Reporting Services Configuration Manager. Encryption keys are used to protect the sensitive data that is stored in the report server, such as data source credentials and passwords. This uses a symmetric key to encrypt and decrypt the sensitive data. The report server service is used to create and unlock the key. If you change the identity of the Report Server service or if you migrate the report server to a new computer, the private key of the Report Server service will no longer be able to unlock the symmetric key. To restore access to the symmetric key, the symmetric key must be re-encrypted by using the private key of the new Report Server service identity. Restoring the symmetric key is the process by which the re-encryption occurs.  
  • RS Utility. The RS Utility is a script host that you can use to perform scripted operations. Use this tool to run Microsoft Visual Basic scripts that copy data between report server databases, publish reports, create items in a report server database and more.
Report Wizard
  1. Reporting Services 2008/2012 provides a wizard that will enable you to create simple reports. 
  2. On completing the wizard, the report is readily available to be deployed to the report server.
  3. Alternatively, you can use the report output from the wizard as the basis to edit the report to provide additional functionality that may not be available in the wizard.
  4. The wizard will present you with options to define a data source and data set. You can select either the table or the matrix data region within the wizard. 
  5. Therefore, if you wish to create a chart or gauge report, the Report Wizard is not appropriate.
  6. Beyond these initial options, you then specify the columns to be included within the data region and define the formatting of the report that is similar to the Report Wizard in Microsoft Access.

SSRS 2012 2008 Data sources Data sets Data regions




Data sources - Data sets -Data regions  in SSRS 2012 2008 Reporting Services


  1. Data sources - Data sets -Data regions Core SQL Server Reporting Services Components exist that are important for creating reports in SSRS 2012 and 2008. 
  2. Here we have described this three main components for making better reports
Data sources
  1. Data sources provide the connection information that Reporting Services require to access the source data.
  2. Typical configuration for data sources involve specifying the name of the server on which the data is stored. You also specify the credentials that are required to connect to the server and the name of the database to access. You should also consider that additional settings may be required between different types of data sources.
  3. Multiple data sources can be defined and used within a single report.
  4. The following data sources are supported by Reporting Services out-of-the-box:

  • SQL Server relational databases
  • Analysis Services multidimensional databases
  • XML data sources
  • Report Server Models
  • SAP multidimensional databases
  • Hyperion Essbase
  • Oracle databases
  • Teradata relational databases
  • DB2 databases
  • OLE DB data source
  • ODBC data source
Data sets
  1. Data sets are used to return specific data from a defined data source.
  2. The data that is returned in the data set can then be used in the report.
  3. When retrieving datasets from Analysis Services or XML, the data from these data sources are flattened so that they may be used within a report.
  4. Multiple data sets can be defined and used within a single report
  5. When creating a data set against a SQL Server data source, there are three ways that the data set can be generated:

  • From a specific query
  • From a stored procedure
  • From a specific table or view
Data regions
  1. The data region is the area of the report that holds the data that is generated from a data set. 
  2. A new type of data region that has been introduced is the Tablix data region. 
  3. Tablix combines the benefits of both a table and matrix data region, which gives greater flexibility in the design of the report. 
  4. The Tablix data region is not explicitly found in any of the report authoring tools.
  5. This functionality has been added to the table and matrix data region properties in Report Designer
  6. SSRS provides the following data regions:

  • Table
  • Matrix
  • List
  • Chart
  • Gauge



Star Snowflake Normalised and Hybrid Schema in BI Datawarehouse SQL Server 2008 2012


Data Warehouse Structures normalised,star,snowflake,hybrid schema


  1. In this article i will explain the different schemas for datawarehouses with SQL Server 2012 2008 such as normalised schema,star schema,snowflake schema,hybrid schema 
  2. Data warehouse structures are hosted as tables within the database engine of SQL Server 2008 and 2012.
  3. There are different data warehouse schemas that can be implemented when creating a data warehouse as outlined in the table below.

Normalised schema

  1. Normalisation is the process of organising data and tables within the SQL Server database. 
  2. This is implemented by creating tables and setting relationships between the tables to remove repetitive and redundant data.
  3. Transactional systems typically contain tables that are structured in a normalised manner. 
  4. The idea is that it is easier to make modifications to the data. However, this means that retrieving the data is not as efficient.

Star schema

  1. A star schema describes the layout of the fact tables and the dimension tables within a data mart.
  2. In a star schema, the fact table resides at the centre of the data mart. 
  3. There are dimension tables that have a direct join with the fact table.

Snowflake schema

  1. Within a snowflake schema, the fact table resides at the centre of a data mart. 
  2. Some dimension table have a direct relationship to the fact table.
  3.  However, there are dimension tables that have a direct relationship with the fact table, but have another relationship to another table. 
  4. hese relationships can also extend to further tables as well.
  5. An example of this can be related to a data mart about a products business entity.
  6.  In this example, you have a one-dimension table that lists columns about the product including colour, size, category and subcategory. 
  7. If you have 10,000 products spread across 4 categories and 25 subcategories, it is more efficient to store the subcategory information within a separate table with one record for each subcategory and relate this to a separate category table.
  8. Rather than repeating the same information many times within a single dimension table to unnecessarily increase the size of the dimension table, it is more efficient to store this information in separate tables.

Hybrid schema

  1. A hybrid schema is a data warehouse structure that combines star schema structures and snowflake schemas.
  2. As additional data marts are added to a data warehouse, the schema of the entire data warehouse hosts a combination of the star and snowflake schema to store the data efficiently within the data warehouse for each data mart.
  3. Dimension tables may also be shared across different data marts to provide data consistency

SSAS 2012 2008 Creating Database Roles





How to Create Database Roles in SSAS analysis services 2008 and 2012 
  1. Analysis Services allows you to create roles in both Business Intelligence Development Studio and SQL Server Management Studio.
  2. Creating roles in SQL Server Management Studio means that the changes are performed on the deployed system and will take effect the next time the user connects to the Analysis Services instance. 
  3. Note that the change that is made through SQL Server Management Studio is not reflected within the Business Intelligence Development Studio project. 
  4. This results in the roles being overwritten or removed, should the deployment of the project define that the roles members are dropped and created from the project.
  5. This is why using Business Intelligence Development Studio is a better alternative for creating roles if you need to keep a record of the roles existence within the project file. 
  6. Roles that are created within Business Intelligence Development Studio need to be deployed but a record of the role will be kept in the project file.
  7. To create roles, you must be a member of the Server role. 

To create a role in SQL Server Management Studio, perform the following steps:

  1. Connect to an instance of Analysis Services.
  2. In Object Explorer, expand the Analysis Services database, right-click Roles, and then click New Role.
  3. In the New Role dialog box, in the Name box, type a name for the role.
  4. To add members, click the Membership tab, and then click Add.
To create a role in Business Intelligence Development Studio, perform the following steps:
  1. Open an Analysis Services solution in Business Intelligence Development Studio.
  2. In Solution Explorer, expand the Analysis Services project, right-click Roles, and then click New Role.
  3. In the New Role dialog box, in the Name box, type a name for the role.
  4. To add members, click the Membership tab, and then click Add.
The Role Designers are the same functionally. After the role has been named and the members added, you set the permissions the same way on both Role Designers