MS SQL SERVER: Using the data mining tools


Published on

MS SQL SERVER: Using the data mining tools

Published in: Technology
1 Like
  • Be the first to comment

No Downloads
Total views
On SlideShare
From Embeds
Number of Embeds
Embeds 0
No embeds

No notes for slide

MS SQL SERVER: Using the data mining tools

  1. 1. Using the Data Mining Tools<br />
  2. 2. overview<br />Introduction to BI Dev studio<br />Creating Data Mining Objects<br />Steps to Create and Edit the Models<br />Using the Models<br />Using SQL Server Management Studio<br />
  3. 3. BI Development Studio<br /> Business Intelligence Development Studio is the primary environment that you will use to develop business solutions that include Analysis Services, Integration Services, and Reporting Services projects. <br />This environment is integrated into the Microsoft Visual Studio (VS) shell to provide a complete development experience for business intelligence operations.<br />Each project type supplies templates for creating the objects required for business intelligence solutions, and provides a variety of designers, tools, and wizards to work with the objects.<br />
  4. 4. BI Development Studio<br />
  5. 5. BI User Interface<br /><ul><li>Solution Explorer</li></ul>This is where you manage your solution and projects. <br />All objects are created and managed here.<br /> To add objects to your project, you right-click the project name and select Add New Item.<br /><ul><li>Window tabs </li></ul> These tabs allow you to quickly switch between designer windows. <br />A tab will be displayed for each object or file that is currently open. <br />
  6. 6. BI User Interface<br /><ul><li>Designer window </li></ul> This is where you edit and analyze your objects. <br />Creating a new object or double-clicking an object in Solution Explorer will open that object’s specific designer, allowing you to modify and interact with the object.<br /><ul><li>Designer tabs</li></ul>Many objects have different aspects that you can edit or interact with. <br />These aspects are indicated by tabs within the Designer window.<br />
  7. 7. BI User Interface<br /><ul><li>Properties window</li></ul>This is a context-sensitive window that displays properties for the currently selected item, which is a general concept in VS and applies to any type of operation performed within the studio.<br /><ul><li>BI menus</li></ul>The area on the main menu bar between the Debug menu and the Tools menu is where you will find context-sensitive menus specific to Analysis Services objects.<br /><ul><li>Output window</li></ul>The Output window displays messages when youbuild and deploy projects. If there are errors in your project, this is where you will find their descriptions.<br />
  8. 8. Data Mining Objects<br />open your database or project<br /> To perform data mining:<br /><ul><li> you must indicate and describe your source data
  9. 9. Then create mining structures and models.</li></li></ul><li>How to set up data sources?<br />Two objects in Analysis Services act as interfaces to your data: <br /><ul><li>The data source :</li></ul> which is essentially a connection string indicating data location<br /><ul><li>The data source view (DSV):</li></ul>DSV is an abstraction layer that enables you to modify the way you look at data sources, or even define a schema and switch the actual source at a later time.<br />
  10. 10. What is a Data source?<br />A data source is a rather simple object. It consists of nothing more than a connection string, plus some additional information indicating how to connect.<br />Two important things to note about data source are:<br /><ul><li>Data location :</li></ul>when you set up your data sources, the data source must be accessible not only to the client where you used the tools to build the model, but also to the server where the model will be processed.<br />This can be done by moving the data to a SQL Server database using SQL Server Integration Services (SSIS) before building your models using BI Dev Studio.<br /><ul><li>Security:</li></ul>The user credentials that are used to access data from Analysis Services play an essential role.<br />Microsoft recommends always using integrated security if it’s supported by the source database.<br />
  11. 11. Using the data source view<br />The DSV is an abstract client-side view of your data. This is where your modeling begins. The DSV is where you select, organize, explore, and in a sense, manipulate the data in the source.<br />While creating a DSV for data mining purposes, the most important table to identify is your case table. This is the table that contains the cases you want to analyze.<br />You must also bring in any related tables that provide additional information about your cases.<br />
  12. 12. Using the data source view<br />The DSV Designer initially displays a diagram of the tables in your data source and the relationships between them.<br />you can use the DSV Designer later to explore the data and alter it to the shape you need for your models.<br />
  13. 13. Named Calculations in DSV<br />These are additional virtual columns on the tables in your DSV, which enable you to mine derived information in your data without having to change your source data. <br />A named calculation consists of name, a SQL expression containing the calculation, and an optional description.<br />
  14. 14. Named Calculations in DSV<br />The calculation can be any valid of the following SQL expression :<br /><ul><li> Arithmetic operations (+, −, *, /, and %)
  15. 15. Mathematical functions (ABS, LOG, SIGN, and SQRT)
  16. 16. Compositing expressions : The hypothesis you want to test depends on a</li></ul> variable that is a combination of two of the variables you already have. <br /> EX: It may not be interesting that a person is married or has children, but<br /> the combination of the two may provide valuable information. <br /> A composite expression for this situation could look like this:<br />[Marital Status] + ‘ ‘ + [Has Children]<br /><ul><li>CASE expressions :CASE expressions are an extremely flexible wayto create meaningful variables for data mining.</li></ul> The CASE expression allows you to assign results based on the evaluation of one or more conditions.<br />
  17. 17. Exploring Data<br />Part of any data mining project is learning about and understanding the nature of your data.<br /> By leveraging controls from Office Web Components (OWC), the DSV Designer provides the functionality to explore your data in four different views. <br />By right-clicking a DSV table and selecting Explore Data, you can view your data as a table, PivotTable, simple charts, and a PivotChart.<br />
  18. 18. Exploring data with pivot table<br />
  19. 19. Steps to Create and Edit the Models<br />After the data has been organized, modified, selected, and understand the data you want to analyze.<br />you can start to create data mining objects. <br />Which involves the following steps:<br /><ul><li>Running the Data Mining Wizard.
  20. 20. Refining the results in Data Mining Designer.</li></li></ul><li>Server Analysis Services <br />Server Analysis Services has two major objects that deal with data mining: <br /><ul><li>mining structures</li></ul>A mining structure defines the domain of a mining problem.<br />A mining structure contains a list of structure columns that have data and content types, bindings to the data source, and some optional flags that control how the data is modeled.<br /><ul><li>mining models.</li></ul>A mining model is the application of a mining algorithm to the data in a mining structure.<br />The definition of a mining model contains an algorithm with its associated parameters, plus a list of columns from the mining structure.<br />
  21. 21. The Data Mining Wizard<br />The Data Mining Wizard creates the mining structure that describes the columns and training data you will use for mining, and optionally a mining model, which takes those columns, applies an algorithm, and defines the usage of each column for that algorithm.<br />The steps of the wizard are:<br />1. Select your algorithm or choose only a structure.<br />2. Select the source tables and specify how they are used.<br />3. Select the columns from those tables and specify how they are used.<br />4. Finally, specify holdout data and name the structure and model.<br />
  22. 22. The Data Mining Wizard<br /> Specifying the trained data using Data Mining Wizard.<br />
  23. 23. The Data Mining Designer<br />Data Mining Designer is where most of the work with your models will take place.<br /> It contains the following five panes for editing, browsing, querying, and comparing models:<br /><ul><li>The Mining Structure pane
  24. 24. The Mining Models pane
  25. 25. The Mining Model Viewer pane
  26. 26. The Mining Accuracy pane
  27. 27. The Mining Model Prediction pane</li></ul>You must use the Mining structure editor to perform modeling operations that are not possible in the Mining Model Wizard.<br />
  28. 28. The Mining Structure Editor<br />
  29. 29. Data Mining Reports<br />SQL Server Reporting Services are used to access data mining query results and to distribute those results.<br />SQL Server Management Studio combines a broad group of graphical tools with a number of rich script editors to provide access to SQL Server to developers and administrators of all skill levels.<br />Reporting Services has options to run reports periodically and cache the results to expedite report retrieval, and you can even specify queries to control report distribution.<br />
  30. 30. Reporting using data Mining Query Designer<br />
  31. 31. SQL Server Management Studio<br />Microsoft SQL Server Management Studio, is an integrated environment for accessing, configuring, managing, administering, and developing all components of SQL Server. <br />SQL Server Management Studio combines a broad group of graphical tools with a number of rich script editors to provide access to SQL Server to developers and administrators of all skill levels.<br />
  32. 32. SQL Server Management Studio<br />SQL Server Management Studio combines the features of Enterprise Manager, Query Analyzer, and Analysis Manager, included in previous releases of SQL Server, into a single environment.<br />In addition, SQL Server Management Studio works with all components of SQL Server such as Reporting Services, Integration Services, SQL Server 2005 Compact Edition, and Notification Services. <br />Developers get a familiar experience, and database administrators get a single comprehensive utility that combines easy-to-use graphical tools with rich scripting capabilities.<br />
  33. 33. Management Studio UI<br />
  34. 34. Management Studio Features<br />Management Studio provides function to implement the following features:<br /><ul><li>Maintain servers
  35. 35. Create and maintain databases
  36. 36. Browse models
  37. 37. Build queries using the prediction builder
  38. 38. Build queries using the query editor
  39. 39. Process models and structures
  40. 40. Assign object permissions
  41. 41. Backup and restore databases</li></li></ul><li>Visit more self help tutorials<br />Pick a tutorial of your choice and browse through it at your own pace.<br />The tutorials section is free, self-guiding and will not involve any additional support.<br />Visit us at<br />