sql_server_2008 r2 release 5 - demo script

Upload: niraventp

Post on 06-Apr-2018

221 views

Category:

Documents


0 download

TRANSCRIPT

  • 8/3/2019 SQL_Server_2008 R2 Release 5 - Demo Script

    1/34

    2009 Microsoft Corporation. All rights reserved.

    VM Presenter ScriptRelease 5

    Last Updated January 29, 2009

  • 8/3/2019 SQL_Server_2008 R2 Release 5 - Demo Script

    2/34

    2009 Microsoft Corporation. Allrights reserved. Page 2 of 34 Proprietary and Confidential

    Contents

    *Please read and follow the steps outlined in the Set-up Guideprior to demo presentation (MBI_Setup_SQLServer2008R2)

    Managed Self-Service Business Intelligence. (P. 3)

    Annie is a business analyst at Contoso, a global electronics retail and manufacturing business. She relies on up-to-date access to the latestbusiness data to do her job. In the past, Annie had to make a lot of requests to the IT department for reports, data models, and access todatabases. Combining data from different systems was a challenge. Once she had the data she needed, she then had to learn to use severaldifferent tools to analyze it, and sharing it in a way that others could easily understand was a challenge.

    Now, Contoso has implemented a comprehensive business intelligence solution built on SQL Server 2008 R2 and integrated with Microsoft Office2010 and SharePoint Server 2010. The new solution makes tasks easier, and maximizes time to provide real value to the business, rather thanstruggling with data management problems.

    Improve IT and Developer Efficiency (P. 15)

    Introduction to the Scenario

    Debbie is a database administrator at Contoso, a global electronics retail and manufacturing business. Shes responsible for making sure that dataand applications are always available and easily accessible to business users. In the past, staying abreast of database performance in herenvironment was a challenge. Determining how many resources that database applications were consuming involved a lot of guesswork.

    Aden, a developer at Contoso, works closely with Debbie to develop the data applications that underlie the Contoso database e nvironment.

    New Application and Multi-Server Management capabilities in SQL Server 2008 R2 let administrators like Debbie better manage their databaseenvironment, both server instances and the applications that run on them.

    Scale with Confidence on a Trusted Platform (P.24)

    Introduction to the Scenario

    Debbie is a database administrator at Contoso, a global electronics retail and manufacturing business. She faces increasing pressure to maximizeresources through consolidation and reduced consumption, while also increasing the performance, scale and speed of her database services.

    New technologies in SQL Server 2008 R2 such as StreamInsight for low-latency complex event processing, and improved database compressionhelp her achieve both of these goals.

  • 8/3/2019 SQL_Server_2008 R2 Release 5 - Demo Script

    3/34

    2009 Microsoft Corporation. Allrights reserved. Page 3 of 34 Proprietary and Confidential

    Managed Self-Service Business Intelligence

    Introduction to the Scenario

    Annie is a business analyst at Contoso, a global electronics retail and manufacturing business. She relies on up-to-date access to the latestbusiness data to do her job. In the past, Annie had to make a lot of requests to the IT department for reports, data models, and access todatabases. Combining data from different systems was a challenge. Once she had the data she needed, she then had to learn to use severaldifferent tools to analyze it, and sharing it in a way that others could easily understand was a challenge.

    Now, Contoso has implemented a comprehensive business intelligence solution built on SQL Server 2008 R2 and integrated with Microsoft Office2010 and SharePoint Server 2010. The new solution makes tasks easier, and maximizes time to provide real value to the business, rather thanstruggling with data management problems.

    Features

    PowerPivot: Powerful BI capabilities in a tool users already know and use.

    Report Builder 3.0: Design queries, reports and charts through powerful and intuitive authoring.

    How to prepare the Environment

    1. Open NA Regions.xlsx from Documents\SQL_demo\Managed Self-Service BI.

    2. Open Contoso Retail Reports.xlsx from Documents\SQL_demo\Managed Self-Service BI.3. In Contoso Retail Reports Microsoft Excel, click the PowerPivot tab, and then click the PowerPivot window button in the Launch group.

    4. In the PowerPivot window, and click the FactSales tab.

    5. Return to Excel by clicking Switch to Workbook in the View group. Click the Home tab.

    6. Open Internet Explorer (login as Contoso\administrator | pass@word1) and go to the PowerPivot Gallery (in the Favorites and athttp://contosodemo/PowerPivot%20Gallery/Forms/Carousel.aspx). Scroll the carousel to the Contoso Retail Reports (RetailSales) Maximizeand leave open.

    Feature Click Steps Talking Points

    PowerPivot

    Browse thePowerPivot Gallery

    1. Click the left and right arrow buttons toscroll through the gallery until you areback on the Contoso Retail Reports(Sales Trends) workbook.

    2. Under Library tools in the SharePointribbon, in the Library tab, click the drop-down arrow under Current View, and

    I want to show you how Office 2010 and for Excel MicrosoftSQL 2008 R2, and the BI technologies it enables, can helppeople in your organization do more with the data you haveto discover insights that drive better decision-making. All in amanaged, self-service environment.

    This is the new PowerPivot gallery in SharePoint 2010, aSilverlight list view, that lets users scroll through and preview

    http://contosodemo/PowerPivot%20Gallery/Forms/Carousel.aspxhttp://contosodemo/PowerPivot%20Gallery/Forms/Carousel.aspx
  • 8/3/2019 SQL_Server_2008 R2 Release 5 - Demo Script

    4/34

    2009 Microsoft Corporation. Allrights reserved. Page 4 of 34 Proprietary and Confidential

    click All Documents

    3. Click the icon next to Contoso RetailReports and point to Workflows,Document Permissions, Check Out,etc.

    a list of reports.

    And if we change the view of this list, you can see that thesereports and workbooks can be managed using the powerfulSharePoint document management features youre used to.

    PowerPivot forExcel

    Excel, a familiar tool

    4. In the taskbar, click Contoso RetailReports.xlsx

    5. In Excel, click the PowerPivot tab.

    6. Click the PowerPivot window button inthe launch group.

    The documents in this list are workbooks and reports builtwith technologies that are part of the next wave of SQLServer Business Intelligence tools, PowerPivot and ReportBuilder 3.0

    Lets take a closer look, starting with PowerPivot for Excel, anadd-in to Microsoft Excel 2010. Well look at this technologyfrom the point of view of an analyst at Contoso Electronicsnamed Annie.

    In the past, getting the kinds of data Annie needed to do heranalyses meant asking the IT department to providesophisticated reports, combining various data sources into auseful model.

    Now however, IT has only to manage the data, includingsecurity and access, without spending so much time fieldingrequests to deliver it. PowerPivot lets people like Annie takeadvantage of this access to go out and combine disparatedatasets (large or small) and work with it right in Excel.

    Lets launch the PowerPivot window to see how Annie doesit.

    PowerPivot forExcel

    Add-in to MicrosoftExcel 2010

    7. (Optional) Select a column and sort or

    filter the rows: (E.g.) Click the drop-down-arrow in UnitCost and then clickSort Smallest to Largest.

    This is a list of Contosos sales transactions for the last threeyears, and as you can see it includes millions of rows of datathat can be sorted and filtered with near instantaneousresults.

    Within the PowerPivot for Excel environment, Annie can bringdata from virtually anywhere and manipulate large data setswith ease.

    PowerPivot for 8. Click From Database button in the Get Even more exciting is the ease with which it allows an analyst

  • 8/3/2019 SQL_Server_2008 R2 Release 5 - Demo Script

    5/34

    2009 Microsoft Corporation. Allrights reserved. Page 5 of 34 Proprietary and Confidential

    Excel

    Table Import Wizard

    External Data group, and select FromSQL Server

    9. Click the drop down arrow in the Servername field and click LOCALHOST

    10. Click the drop down arrow in the

    Database name field and click:ContosoRetailDW.

    11. Click Next, and click Next again.

    12. Show the tables that can be imported,

    click one or two of the checkboxes nextto their names. DO NOT CLICK FINISH.Click Cancel, and click Yes to confirm.

    to combine data from various sources to create a newanalytical data model in just a few clicks. Lets go get somedata.

    The Table Import Wizard lets you add business data fromyour corporate network, your local computer, or even ad hocdata sources on the web. You can connect to external data

    sources directly, or use predefined connection objects such

    as ODC to get the data. You can also enter or copy in data

    from other worksheets, documents, websites, or text files.

    Well start with data from our own SQL Server database,ContosoRetail. Now, this import will take some time, which is

    why Ive pre-loaded it for the demo. Lets cancel this import,and look at another way to bring data into the workbook.

    PowerPivot forExcel

    Copy and paste datafrom another source

    13. In the taskbar, click the Excel item NARegions.

    14. Right-click the upper left corner of thespreadsheet to select all rows andcolumns, and click Copy.

    15. In the taskbar, click Contoso RetailReports.xlsx PowerPivot.

    16. Click the To New Table button in thePaste From Clipboard group, in the Hometab.

    17. Click OK.

    18. Double-click the new table and type

    Regions to rename it.

    The Contoso data warehouse is full of useful data, butsometime the analyses Annie wants to run requirecomparison with data from other sources, whether its internalor external data.

    Lets start with one of the simplest and most useful examplesof this, copy and paste.

    Annie has been asked to create a report that categorizesContoso US stores by competitive Regions other than thosedefined in the Contoso data warehouse.

    She created a table with those regions defined in Excel. Youcan see that since the list is presented as a table in Excel, itseasy for me to highlight the table and copy it to the clipboard.

    Lets switch back to the PowerPivot window so you can seethat I can copy this table into the workbook. PowerPivotfeatures the same Fluent user interface people have becomeaccustomed to, and if I look in the Ribbon, I see the buttoncalled To New Table in the Paste from Clipboard group.Thats what I want.

    And just like that Ive created a new table in my PowerPivot

  • 8/3/2019 SQL_Server_2008 R2 Release 5 - Demo Script

    6/34

    2009 Microsoft Corporation. Allrights reserved. Page 6 of 34 Proprietary and Confidential

    workbook.

    PowerPivot forExcel

    Bring in data from aData Feed

    19. In the taskbar, click the Internet Exploreritem PowerPivot Gallery.

    20. If the list is still in the All Documents view,click the drop-down arrow under CurrentView, and click Carousel.

    21. Click the left or right arrow repeatedly until

    the Industry_Trends report is in view,and click it.

    22. Click the orange Export to Data Feedbutton above the report.

    23. Click Save, and Save again to save thefeed to the desktop.

    24. Click Close.

    25. In the taskbar, click Contoso RetailReports.xlsx PowerPivot.

    26. In the Home tab, in the Get External Datagroup, click from Data Feeds, and hover

    over the two choices.

    27. Click From Other Feeds.

    28. In the Table import Wizard, click Browse.

    29. In the folder list to the left, click Desktop(if it is not already selected), then from thelist of items, click the ATOMSVC file,Industry_Trends.

    30. Click Open.

    Much of the time, Annie finds her data sources in the reports

    other people publish. PowerPivot makes it easy for Annie to

    use these reports as the sources for her analysis, whether

    theyre PowerPivot workbooks or Report Builder reports.

    Lets go back to the PowerPivot Gallery to find one such

    report.

    This is a report that someone built to visualize industry trends

    in the Electronics market. Its been published to SharePoint.There are a couple ways to connect to this data and I want to

    show you both of them because they each have their place.

    The little orange button you see here is a shortcut that

    creates an ATOM data feed connection file for the contents ofthis report. This allows me to create connections to reports,

    whether I have access to the reporting server or not, that will

    remain up to date even if the report data changes.

    Lets go back to PowerPivot to see how to take advantage ofthis Atom feed. Here in the Ribbon you see the option to Get

    External Data from Data Feeds. Lets select that and thenchoose this From Other Feeds button, with the familiarorange icon.

    Again, we get the Table Import Wizard to guide us through. Ican type a URL or browse to a connection file like the one wesaved.

    When I bring this report data into PowerPivot, you can see

    that it creates a new Table in the workbook, just like theRegions table we copied and pasted in a moment ago.

    The result is that I now have a PowerPivot workbook thatcombines data from my data warehouse, data that Ivecompiled myself, and data that I discovered in a ReportingServices report on SharePoint.

  • 8/3/2019 SQL_Server_2008 R2 Release 5 - Demo Script

    7/34

    2009 Microsoft Corporation. Allrights reserved. Page 7 of 34 Proprietary and Confidential

    31. Click Next.

    32. In the Friendly Name column, typeIndustryTrends to change the friendlyname.

    33. Click Finish, and when complete, clickClose.

    And Ive sourced all this data in an entirely self-servicefashion, without the need to burden IT with multiple requests.

    PowerPivot forExcel

    Use new DAXExpressions tocalculate fields inPowerPivot

    34. Click the DimProductCategory table tab.

    35. Double-click the header of the first blankcolumn (Add Column)to rename it.

    36. Type CategoryTotal and hit the Enterkey.

    37. Type =SUMX and hit the Tab key

    38. Type RELATEDTABLE and hit the Tabkey.

    39. Type Fact and hit the Tab key(FactSales will autocomplete)

    40. Finish typing the expression:=SUMX(RELATEDTABLE('FactSales'),[Sum of SalesAmount])

    41. Hit the Enter key.

    PowerPivot for Excel includes a new expression languagethat gives you programmatic access to PowerPivot datastructures in the workbook. This expression is, in fact, issimilarly as the native Excel expressions like sum(),average(), and so on. You can use the expression languageto create formulas, filters, and calculated columns. You canuse it create relational queries on the tables in theworkspace.

    For example, heres see a table that contains the ProductCategory names without any sales numbers attached. If Iwanted to have a quick look at those sub-totals withoutcreating a PivotChart, I can use a DAX expression tocalculate those numbers by referencing other, related tablesin the workbook.

    This DAX expression will use the new SUMX andRELATEDTABLE formulas to summarize sales amounts forall rows in related tables for each of these categories.

    DAX expressions like these can also be used to dynamically

    create new measures in Excel to add to PivotTables orCharts.

    PowerPivot forExcel

    Create a PivotTable

    42. Click the Home tab in the Ribbon.

    43. Click PivotTable in the View group, andclick Chart and Table (Vertical)

    44. In the Insert Pivot window, be sureExisting Worksheet is selected and click

    Now lets look at the ways Annie can use all this combined tovisualize relationships that may not have been apparent oreasily drawn, to analyze some trends. Shes going to usePowerPivot to organize the data in a chart and table that willhelp make it easier for her to visualize relationships betweenall these different sources.

    Now that were in Excel, the functions we use and the actions

  • 8/3/2019 SQL_Server_2008 R2 Release 5 - Demo Script

    8/34

    2009 Microsoft Corporation. Allrights reserved. Page 8 of 34 Proprietary and Confidential

    OK.

    45. In the Gemini Task Pane to the right, clickto expand the FactSales table and thenclick SalesAmount

    46. Click on the number that appears in the

    PivotTable under the heading Sum ofSalesAmount

    47. In the Ribbon, in the Home tab, in theNumber group, click the AccountingNumber Format button ($)

    48. In the Gemini Task Pane, Click to expandthe DimDate table, and then click-and-drag the CalendarYear field to theColumn Labels field.

    49. Click to expand theDimProductCategory table, and thenclick the checkbox next to theProductCategoryName field so that itappears in the Row Labels fieldatbottom.

    50. Click to expand theDimProductSubCategory table, andthen click the checkbox next to theProductSubCategoryName field so thatit appears in the Row Labels fieldat

    bottom.

    we take are all familiar.

    We can change the formatting of these cells using familiarOffice commands in the Ribbon.

    We can create a classic PivotTable adding values, rows, andcolumns from the tables and fields in our PowerPivot

    worksheet.

    PowerPivot forExcel

    Add Visualizations,including newSparklines to thePivotTable

    51. Click to highlight the values under theyear columns (2007, 2008, and 2009).

    52. In the Ribbon, in the Home tab, in theStyles group, click the ConditionalFormatting button.

    53. Point to Data bars and click any of the

    Lets add a few visualizations to this report to make it easy forend-users to understand the numbers.

    Well start with Conditional Formatting, a feature of Excel2007, and add Data bars to the annual numbers for eachcategory.

    Excel 2010 includes some new formatting and visualizationfeatures that further enhance the way complex data can be

  • 8/3/2019 SQL_Server_2008 R2 Release 5 - Demo Script

    9/34

    2009 Microsoft Corporation. Allrights reserved. Page 9 of 34 Proprietary and Confidential

    Fill selections in the list.

    54. Click to highlight the numbers in theGrand Total column.

    55. Click the Insert tab in the Ribbon.

    56. In the Sparklines group, click Line.

    57. Click to highlight all the values in theGrand Total column.

    58. Click OK.

    59. In the Ribbon, under Sparkline tools, inthe Design Tab, click Marker Color, pointto Markers and click a bright color likered or orange.

    visualized to improve understanding and help business userslike Annie make better decisions.

    One of those is the new Sparklines feature. Lets choose theSparkline type and the data to visualize.

    Sparklines work like a mini-line chart to give you a quick, cell-

    based historical or series visualization that makes it easier tomake comparisons across a number of rows.

    Now, lets enhance the view with colors and formattedmarkers.

    PowerPivot forExcel

    Add Slicers to thePivotTable

    60. Click to expand the ProductClass table,and then click-and-drag the ClassNamefield to the Slicers Vertical field.

    61. Click to expand theSeasonalPromotions table, and thenclick-and-drag the Seasons field to theSlicers Vertical field.

    62. Click to expand the Channel table, andthen click-and-drag the ChannelNamefield to the Slicers Vertical field.

    63. Click to expand the Regions table, andthen click-and-drag the Region field tothe Slicers Vertical field.

    64. At the top of the Gemini Task Pane, clickthe Create button that has just appeared.

    65. When the relationships have beendetected, click Close in the Relationship

    In order to quickly filter the data in the table, lets add newSlicers to the worksheet.

    Slicers are data navigation tools that let you add a quick andeasy data-filtering function so that it can be visualized indifferent ways by the end-users of the worksheet.

    When we add a field from the new Regions table we seemessage at the top of the Task Pane. A Relationship isneeded.

    A data relationship layer in PowerPivot lets analysts likeAnnie perform interactive modeling by building relationshipsamong the data to analyze it as if it was all originated from asingle source.

    In this case, for example, if we allow PowerPivot to detectrelationships, it will look for tables and fields with similarnames and data patterns and create new relationshipsbetween those tables. What it found was that the State fieldin the new Regions table corresponded with aStateProvinceName field in the existing model.

  • 8/3/2019 SQL_Server_2008 R2 Release 5 - Demo Script

    10/34

  • 8/3/2019 SQL_Server_2008 R2 Release 5 - Demo Script

    11/34

    2009 Microsoft Corporation. Allrights reserved. Page 11 of 34 Proprietary and Confidential

    78. Click the drop-down-arrow underRelated Lookup Table and click DimDate

    79. Click the drop-down-arrow underRelated Lookup Column and clickDateKey

    80. Click Create.

    81. Scroll through the existing relationships inthe Manage Relationships window.

    82. Click Close.

    83. In the Ribbon, click Home, then clickSwitch to Workbook.

    PowerPivot for

    Excel

    Create a PivotChart

    84. At the top of the Gemini Task Pane, click

    the Refresh button that has justappeared.

    85. Click the empty chart.

    86. In the Gemini Task Pane to the right, clickto expand the FactSales table, and thenclick-and-drag the SalesAmount field tothe Values fieldat bottom.

    87. Click to expand the DimDate table, andthen click-and-drag the CalendarYear

    field to the Axis Fields field.

    88. Click to expand the IndustryTrendstable, and then click theSum_of_IndustrySales field to add it tothe Values fieldat bottom.

    89. At the top left of the chart, right-click theSum of SalesAmount value field, andclick Value Field Settings.

    Lets take advantage of the new relationships we just created

    and build a PivotChart that compares the two.

    Well add both the Contoso sales numbers and the relatedIndustry sales numbers to the chart, and then well addcalendar year to the Axis.

    Since these two sets of numbers are vastly out of scale, wellgo modify the value fields to display by percentage ratherthan absolute value.

    Now weve got a year-over-year comparison of Contososales with industry sales.

  • 8/3/2019 SQL_Server_2008 R2 Release 5 - Demo Script

    12/34

    2009 Microsoft Corporation. Allrights reserved. Page 12 of 34 Proprietary and Confidential

    90. Under Show values as, click the drop-down-arrow, then click % of ColumnTotal.

    91. Click OK.

    92. At the top left of the chart, right-click the

    Sum of Sum of IndustrySales valuefield.

    93. Under Show values as, click the drop-down-arrow, then click % of ColumnTotal.

    94. Click OK.

    PowerPivot forExcel

    Interact with thefinished workbookand prepare topublish

    95. Click on one or more Slicer per field tochange the view, while pointing to the

    updates in the PivotTable and PivotChart.

    96. In the PivotTable, click the drop-down-arrow next to Row Labels, and in the popup window click the search box and typeGames.

    97. When the results are found click OK tosee the table filter on the resulting list.

    98. Click the drop-down-arrow again, andclick the checkbox next to (Select All)

    and click OK.

    99. Scroll up if needed and click cell A1.

    100. Click the Insert tab, and in theIllustrations group, click Picture.

    101. In the Pictures Library, double-clickheader.

    102. Click File, click Share, click the Save to

    If we select a few of these Slicers you can see the data beingfiltered and sorted, and since the slicers weve chosen are

    highlighted, we always know what data were seeing at anygiven time with just a glance.

    Now that the analysis is done, Annie would probably preparethis workbook to publish to the SharePoint PowerPivotGallery so that her boss and co-workers can see it.

    Lets add a nice header graphic, and then go to Share thisworkbook by Publishing to SharePoint.

    Theres the PowerPivot Gallery we saw earlier, and if choosethe location this workbook and all of its data will begin

    uploading.

    For the sake of time, well skip that step and jump right intothe next section of this demo, Report Builder 3.0 andReporting Services.

  • 8/3/2019 SQL_Server_2008 R2 Release 5 - Demo Script

    13/34

    2009 Microsoft Corporation. Allrights reserved. Page 13 of 34 Proprietary and Confidential

    SharePoint button and point to thePowerPivot Gallery under RecentLocations. (DONT CLICK)

    PowerPivot forSharePoint

    Manage data refreshand create a linkeddocument

    103. Click the PowerPivot Gallery - InternetExplorer item in the taskbar.

    104. Click the left or right arrow in the carouselto find the Contoso Retail Reportsworkbook.

    105. In the upper right corner of the galleryview, click the Manage Data Refreshbutton.

    106. In the Manage Data Refresh window, clickthe Cancel button.

    Lets jump back to the PowerPivot Gallery to see anothercouple of important features of PowerPivot for SharePoint.

    The first is the ability to manage the data refresh schedule foreach of the PowerPivot workbooks in the gallery.

    With data refresh, you can ensure that any changes made toa linked data source are reflected in the PowerPivotworkbook. You can choose the frequency of and the timing ofthe refresh and ensure that it always takes place outside ofbusiness hours to optimize resource utilization. You can evenprovide an email address if you want to receive alerts in theevent of refresh failures.

    Reporting Services

    View drill downreports in ReportingServices

    108. In the PowerPivot Gallery, click the leftor right arrow in the carousel to find USARegions and click the thumbnail.

    109. When the report opens, scrolldown and,under Product Category Name click theexpand (+) button next to Audio (and/orany of the other categories)

    110. On the map, click the circle indicatorover Washington State.

    111. When the next report opens, scroll downand, under Product Category Name clickthe expand (+) button next to Audio(and/or any of the other categories)

    112. On the map, click the circle indicatorover Seattle.

    113. When the report opens, scroll down and,under Product Category Name click theexpand (+) button next to Audio (and/or

    You might have noticed that Report Builder reports can beseen side by side with PowerPivot reports in the PowerPivotGallery with SharePoint integrated technology. Now lets takea closer look at some of the ways Report Builder 3.0 andReporting Services can help people in your business design,publish and share detailed, interactive reports for greaterinsight.

    This is the US Regional Sales Report with a map thatincludes spatial data integrated with a Bing Maps layer. Italso Includes tables with new visualizations and expandinghierarchies.

    But one of the most exciting things about this report is thefact that its interactive. Annie has built this report to allowusers like me to drill down into the state and even the citylevel.

    One of the new visualizations you notice here is the columnof data bars in the table to the right. Data Bars are simple barcharts that convey a lot of information in a little space, andcan even be added in-line with text.

  • 8/3/2019 SQL_Server_2008 R2 Release 5 - Demo Script

    14/34

    2009 Microsoft Corporation. Allrights reserved. Page 14 of 34 Proprietary and Confidential

    any of the other categories)

    114. Click the PowerPivot Gallery link in thenavigational links at the top of the page.

    Lets take a look Washington, to get a report for that state.And now lets go a step further and look at Seattle.

    In the Seattle report, we also see some historical numbers.Lets take a closer look at one of these product categories toget a sense of its 3-year historical performance.

    This gives us a chance to look at another new visualizationfeature called a Sparkline. Sparklines let people quicklyvisualize multiple data points over time, while quicklycomparing results across many series like those in this table.

    Report Builder 3.0

    Use PowerPivotmodel as data sourcefor report table

    107. Click the left or right arrow in the carouselto find the SalesTrends workbook.

    108. In the upper right corner of the galleryview, click the Drop-Down Arrow underthe Create Linked Document button,

    and then click New Report Builderreport. (This step will take severalseconds and may be done ahead of time)

    109. Report Builder will automatically open(you may need to click on it in the taskbar).

    110. In Report Builder, click to expand(+)Data Sources in the Report Data list tothe left.

    111. Click the Insert tab in the ribbon, andclick Table in the Data Regions group,then click Table Wizard.

    112. In the New Table or Matrix wizard, clickthe radio button next to Create a Dataset,and click Next.

    113. In the Choose a connection screen,click Next to select the PowerPivot datasource.

    Another important feature of PowerPivot for SharePoint is theability to create a new document using one of the existingdocuments as its data source. You can create newPowerPivot workbooks, or even a Report Builder report.

    Report Builder 3.0 is the latest report authoring tool from SQL

    Server 2008 R2. When you run a Report Builder report, thereport processor takes all the information you have specified,retrieves the data and combines it with the report layout togenerate each page as you view it. You can preview yourreports in Report Builder, or you can publish your report to areport server or to SharePoint where others can view and runit.

    Lets start by creating a simple table from a new data setusing the PowerPivot data source. The Table Wizard walksyou through the process of selecting a data set, or, as in thiscase, creating a new one.

    For this table, Annie wants to look at the Sum of the IndustryTrends sales data.

    Lets break it down by Product Category and Year.

    The Table Wizard asks you to arrange the new measuresinto Rows, Columns and Values.

  • 8/3/2019 SQL_Server_2008 R2 Release 5 - Demo Script

    15/34

    2009 Microsoft Corporation. Allrights reserved. Page 15 of 34 Proprietary and Confidential

    114. In the list of measures to the left, click toexpand (+) the Measures group, andclick to expand (+) the IndustryTrendsmeasure.

    115. Click and dragSum_of_Sum_of_IndustrySales into the

    query window to the lower-right.

    116. Scrolldown and click to expand (+) theIndustryTrends dimension group.

    117. Click and drag theProductCategoryName dimension intothe query window to the lower-right.

    118. Click and drag the Year dimension intothe query window to the lower-right.

    119. Click Next.

    120. In the Arrange Fields screen, clickProductCategoryName in the AvailableFields group, and drag it to the Rowsgroups area.

    121. In the Arrange Fields screen, click Year inthe Available Fields group, and drag it tothe Column groups area.

    122. In the Arrange Fields screen, click

    Sum_of_Sum_of_IndustrySales in theAvailable Fields group, and drag it to theValues area.

    123. Click Next. Click Next again. And clickFinish.

  • 8/3/2019 SQL_Server_2008 R2 Release 5 - Demo Script

    16/34

    2009 Microsoft Corporation. Allrights reserved. Page 16 of 34 Proprietary and Confidential

    Report Builder 3.0

    Format the new Table

    124. In the table, click in the upper left celland drag to the lower right cell tohighlight all cells.

    125. Click the Font size drop-down-arrowand click 8.

    126. Click the table and point to the columnseparator above and to the right of theYearcolumn until the column width toolappears.

    127. Click the column width tool and drag itto shrink the width so that just the wordYear is showing.

    128. Repeat these steps for the Total column.

    129. In the Year column, in the second row ofthe table, double-click the[Sum(sum_of_] cell.

    130. In the Placeholder properties window,click Number.

    131. In the Set number and date formattingoptions pane, click Currency from thecategory list.

    132. Click the text box next to Decimal places

    and type 0

    133. Click the checkboxes next to Useseparator and Show values in:

    134. Click the drop-down arrow next to ShowValues in, and click Millions.

    135. Click OK.

    136. Repeat these formatting steps for each

    Now lets do a little formatting of the table. Well drop the fontsize down a bit.

    Lets shrink the size of the Year column and the Totalcolumn.

    And now lets format the numbers in the Product CategoryYear and Total cells. Well display these as dollars in themillions without any decimal values.

  • 8/3/2019 SQL_Server_2008 R2 Release 5 - Demo Script

    17/34

    2009 Microsoft Corporation. Allrights reserved. Page 17 of 34 Proprietary and Confidential

    cell with the [Sum(Sum_of_...] value.

    Report Builder 3.0

    Add a new Data barvisualization to thereport

    137. Right-click the header cell in the TotalColumn, click Insert Column, and thenclick Right.

    138. In the ribbon, click the Insert tab, thenclick Data Bar in the Data visualizationsgroup.

    139. In the new column, in the second row ofthe table, click the empty cell.

    140. In the Select Data Bar Type window, clickthe Bar type.

    141. Click OK.

    142. In the table, click the new data bar cell,and in the Chart Data tool tip, click theplus (+) sign next to Values, then clickSum_of_Sum_of_IndustrySales.

    143. Click an empty cell in the table to closetool tip.

    Now lets add a column to this table so that we can introducea new type of visualization, the Data bar. This will create asimple bar chart inside the table cell that displays the sum ofthe row in relation to the other rows in the series.

    Data Bars can represent multiple data points, but typicallyillustrate only one. Their impact comes from viewing many ofthem together and being able to quickly compare them,instead of viewing them singly. This makes it easy to see theoutliers.

    We select a Data bar type, select the value to measure, theSum of IndustrySales, and were done.

    Report Builder 3.0

    Add a new Sparklinesvisualization to thereport

    144. Right-click the new data bar cell in thenew Column, click Insert Column, andthen click Right.

    145. In the ribbon, click the Insert tab, thenclick Sparkline in the Data visualizationsgroup.

    146. In the new column, in the second row of

    Finally, lets add a column to include Sparklines, another oneof the new visualizations in Report Builder 3.0.

    Sparklines work like a mini-line chart to give you a quick, cell-based historical or series visualization that makes it easier tomake comparisons of trends across a number of rows.

    We select a Sparkline type, select the Value and Category tomeasureSum of Industry Sales and Yearand thats it.

  • 8/3/2019 SQL_Server_2008 R2 Release 5 - Demo Script

    18/34

    2009 Microsoft Corporation. Allrights reserved. Page 18 of 34 Proprietary and Confidential

    the table, click the empty cell.

    147. In the Select Sparkline Type window, clickthe Line with Markers type.

    148. Click OK.

    149. In the table, double-click the newSparkline cell, and in the Chart Data tooltip, click the plus (+) sign next toValues, then clickSum_of_Sum_of_IndustrySales.

    150. Chart Data tool tip, click the plus (+) signnext to =(Details) under CategoryGroups and click Year.

    151. In the Home tab, in the Views group, clickRun.

    Lets run the report to make sure weve got everything inplace. You can see that Report Builder goes out and grabsthe data and pulls it into our report, and just like that wevebuilt a simple report table with visualizations.

    This table shows the industry numbers for the past threeyears for electronics product categories.

    Report Builder 3.0

    Publish a new ReportPart

    152. Click the Designbutton in the ribbon.

    153. Click the Report Builder button in theupper left, and click Publish ReportParts.

    154. In the Choose SharePoint window, clickthe drop-down-arrow under DocumentLibrary and click, reportserver.

    155. In the Publish Report Parts window, click

    Review and modify

    156. Click the name Tablix1 to highlight it, andthen type a new name for the report(Trends, followed by the date; e.g.Trends1.29)

    157. Click the expand arrow (>) next toTablix1, and click inside the text box totype a short description (optional)

    Now that weve created a new table and formatted it, I wantto take a moment to show you another new feature of ReportBuilder 3.0, which is the ability to publish components ofreport as individual pieces that can be reused to createreports based on a mix and match of commonly used parts.

    Like any company, Contoso has a lot of standard reporttypes, tables, and useful templates that have traditionallybeen stored around the company. One of the great thingsabout Report Builder 3.0 is that it makes it easier for you toput these pieces together into combined views with Report

    Parts.

    Annie might want to publish this table as a report part if sheknew that he, or others, might want to use it again.

    She could do this easily enough by choosing to Publish theReport Part, adding detailed information like a descriptions tothe parts or datasets to publish, and then selecting a ReportServer to store them on.

  • 8/3/2019 SQL_Server_2008 R2 Release 5 - Demo Script

    19/34

    2009 Microsoft Corporation. Allrights reserved. Page 19 of 34 Proprietary and Confidential

    158. Click Publish, and note the Results at thebottom of the window, 0 report partsfailed

    159. Click Close

    Report Builder 3.0

    Find and use pre-builtReport Parts tocomplete the report

    160. Click the Report Part Gallery tab in theupper right hand column of ReportBuilder.

    161. Click the Search box, and typeCategory

    162. Click the Search button.

    163. Double-Click CategoryContoso, andthen click the table handle (+) to move it

    to the right of the existing table.\

    164. Click the Search box, and typeComputer

    165. Double-click the Map-ComputerContoso, and then click the table handle(+) to move it under the existing tables

    Analysts like Annie can also take advantage often thiscapability to enable them to quickly assemble reports withprebuilt Report Parts. Well use report parts to build the restof this report.

    This is the Report Part Gallery, a collection of the tables,charts, matrices, maps and other Report Parts that people atContoso most commonly use. Its stored in SharePoint soeach Report Part can be individually tagged with keywords ormanaged metadata. Since were building a report aboutproduct categories, letssearch for the term Category to find

    Product Category report parts.

    Several results appear, and we can select one by dragging itover or just double clicking on it. This part is what werelooking for. Since we just created a table of industry data,lets bring in one with Contoso data, using the samemeasures and visualizations.

    Once its on the report, we can drag it into place.

    Now, since Annies boss is particularly interested inComputer category sales, lets add a Geospatial map with

    store by store Computer sales in North America.

    This map part contains geospatial data overlaid on a newBing Maps layer to provide more accurate geographicvisualizations of the data in Contosos database.

  • 8/3/2019 SQL_Server_2008 R2 Release 5 - Demo Script

    20/34

    2009 Microsoft Corporation. Allrights reserved. Page 20 of 34 Proprietary and Confidential

    Report Builder 3.0

    Add a header andpublish the report

    166. Click the Insert tab in the ribbon, andthen click Header from the Header &Footer group.

    167. Click Add Header.

    168. In the Report Part Gallery, click theSearchbox, and type Header

    169. Click and drag the ContosoHeader to theheader of the report, and then click theobject handle (+) to move it to top-left ofthe page.

    170. Click the Insert tab in the ribbon, andthen click Text Box.

    171. Click in the Header under the new header

    image and drag the text box to the right ofthe page to create a rectangle above thetables.

    172. In the ribbon, click the Font size drop-down-arrow, and click 26.

    173. Click the Bold button.

    174. Type North America Sales Contosovs. Industry

    175. Click the Report Builder button in theupper left, and click Save As.

    176. In the Name field of the Save As window,type a name for the report (CategorySales) and click Save.

    177. Click the PowerPivot Gallery - InternetExplorer item in the taskbar.

    178. Click the left or right arrow in the

    Now, lets prepare this report for distribution. Report Builderfeatures the familiar Fluent Ribbon with contextualcommands and formatting tools that make it easy to readyyour report for distribution.

    Well add a header and borrow a graphic from the Report

    Part Gallery.

    When we move that into place, we make room for a reporttitle. Well add a text box, enlarge the fonts, and name thisreport North America Sales Contoso vs. Industry

    Now, if everything looks okay, Annie is ready to publish thisreport up to the server where other people can run it andeven use it as a data source for other reports.

    Heres the PowerPivot Gallery we saw earlier, which is wherethe data for this report is coming from. Lets save it right back

    to that location.

    Now, you can see the report we just created, living side byside with these other reports and workbooks, available foruse by anyone in the company with the appropriate accessfor self-service business intelligence.

  • 8/3/2019 SQL_Server_2008 R2 Release 5 - Demo Script

    21/34

    2009 Microsoft Corporation. Allrights reserved. Page 21 of 34 Proprietary and Confidential

    PowerPivot Gallery until the report youjust created is centered, and click the newreport. (You may also open the CategorySales report already in the gallery.)

    179. Click the PowerPivot Gallery link in thenavigation links at the top of the page.

    PowerPivotManagementDashboard

    Manage self-serviceBI solutions

    87. Click the Start button, and click SharePoint2010 Central Administration.

    88. Click General Application Settings

    89. Click PowerPivot ManagementDashboard

    90. Click the drop-down-arrow next to View:and click Average Instance Memory.

    91. Click the drop-down-arrow and clickAverage Instance CPU.

    92. Click the slider-bar handle in theWorkbook Activity web part and drag theslider to the far left.

    93. In the Workbook Activity web part, click theplay (>) button to the left of the slider barunderneath the bubble chart.

    94. In the Workbook Activity - List in the lower

    right, click the Queries filter twice to sortfrom top to bottom.

    The PowerPivot application that Annie created earlier is justone of dozens of applications that have been created byusers at Contoso. The job of managing these applicationsfalls to IT administrators.

    In the past, if an end-user created a BI solution, the wayAnnie did, it would often be stored on a desktop computerwhere it would be of no use to others, or on a corporateshare where it would consume IT resources. IT would haveno way of knowing which reports were being used, howmuch, and by whom.

    Now with SQL Server 2008R2 with SharePoint integratedtechnology, IT has a centralized way to manage, monitor,and maintain these self-service BI solutions, the PowerPivotManagement Dashboard.

    Here you can see a graph of server health, and you can seea spike here in the middle in Query Reponse Times. We canalso look at Memory and CPU utilization.

    Down below, you see a time-series visualization that showsus workbook activity over time. We can actually play the

    timeline to see the changes in how certain workbooks arebeing used and how many users are accessing them.

    With the PowerPivot Management Dashboard, IT can seewhich workbooks are being stored in the system, whatresources they require, and how many users are using them.Armed with this information, they can make better informeddecisions about how to allocate resources to support theneeds of the business.

  • 8/3/2019 SQL_Server_2008 R2 Release 5 - Demo Script

    22/34

    2009 Microsoft Corporation. Allrights reserved. Page 22 of 34 Proprietary and Confidential

    Improve IT and Developer Efficiency

    Introduction to the Scenario

    Debbie is a database administrator at Contoso, a global electronics retail and manufacturing business. Shes responsible for making sure that dataand applications are always available and easily accessible to business users. In the past, staying abreast o f database utilization in herenvironment was a challenge. Determining how many resources database applications and SQL Server instances were consuming involved a lotof guesswork or a dedicated initiative.

    Aden, a developer at Contoso, works closely with Debbie to develop and update the database applications that underlie the Contoso environment.New Application and Multi-Instance Management capabilities in SQL Server 2008 R2 let administrators like Debbie better maximize their databaseenvironment, both server instances and the database applications that run on them.

    Features

    Utility Control Point

    Data-Tier Application

    Warm-up Steps

    1. Click the Start button, then click StartDashboardData (this process may take up to 5 minutes)

    2. Click the Start button, then click Microsoft SQL Server Management Studio.

    3. In the Connect to Server window, click the drop-down-arrow next to Server name (server type Database Engine), and clickCONTOSODEMO\UCPDASH. Click Connect.

    4. Click View on the SQL Server Management Studio menu

    5. Click Utility Explorer

    6. Clickthe Connect to Utility icon in the Utility Explorer toolbar (Ignore any Error message)

    7. Click Connect

    Feature Click Steps Talking Points

    Multi-instanceManagement

    One way that SQL Server 2008 R2 makes managementeasier is with application and multi-instance managementusing the new Utility Control Point. This capability allows adatabase administrator like Debbie at Contoso, to moreefficiently manage the utilization of multiple servers and data-

  • 8/3/2019 SQL_Server_2008 R2 Release 5 - Demo Script

    23/34

    2009 Microsoft Corporation. Allrights reserved. Page 23 of 34 Proprietary and Confidential

    tier applications at once from a central console. The ControlPoint is easy to set up through a 5-step user-friendly wizardthat does setup validation on your behalf. Once set up, youwill be able to access the Utility Explorer.

    Multi-instanceManagement

    Utility Explorer

    1. Click the Microsoft SQL ServerManagement Studio item in the taskbar.

    2. Click the Deployed Data-tier Applicationsnode in the left pane.

    3. Click the Managed Instances node in theleft pane.

    4. In the list of Instances to the right, click anyone of them.

    5. Click the Storage Utilization tab in thelower right.

    6. Click to expand (+) one of the DAC groups,click to expand(+) PRIMARY.

    What you see here is the new Utility Explorer view, adashboard that presents summary and detailed information

    about all the enrolled instances of SQL Server and any data-tier applications registered in this Control Point. I havealready taken time to enroll a few instances into the controlpoint so the dashboard is populated with interesting data. In aminute, Ill show you how easy it is to enroll an instance.

    One of the most useful features of the Control Point is thedashboard, that lets administrators like Debbie get a quickglance into the resource utilization across the environment,and then drill into various dimensions as needed.

    In the control point dashboard you see storage utilization

    trends for all the enrolled instances and data-tier applicationsin the environment, and you get a snapshot of free and usedspace across all registered resources.

    Whats more, we can also drill-down into a detailed view ofeither the Managed Instances or the Data-Tier Applicationsthat are being managed as part of this Control Point.

    Here, you get a listing of all your instances, and the policyhealth state across all those instances. Once selected, youget additional details.

    We can drill into the database, expand out the file group, and

    we see all the data files that are allocated to that database. IfI want to make changes and free up space for otherapplications, I can easily connect to this instance from withinObject Explorer.

    This kind of high-level and detailed visibility gives anadministrator like Debbie invaluable access to ongoingutilization information for the SQL Server environment forwhich she is responsible. This helps remove the need to spinup dedicated utilization assessment projects or buy third-party software.

  • 8/3/2019 SQL_Server_2008 R2 Release 5 - Demo Script

    24/34

    2009 Microsoft Corporation. Allrights reserved. Page 24 of 34 Proprietary and Confidential

    Multi-instanceManagement

    Create a Utility ControlPoint (UCP)

    4. Click the Getting Started tab at the top ofthe right pane.

    5. Click Create a Utility Control Point (UCP)

    6. Click Next

    7. Click Connect

    8. Click the drop-down-arrow next to Servername, and clickCONTOSODEMO\UCPDASH

    9. Click Connect

    10. Type Contoso UCP for the name of theUtility Control Point.

    11. Click Next

    12. Click the radio button next to SQL ServerAgent service account

    13. Click Cancel.

    There are three simple steps to getting started with multi-instance management. First, create the control point.

    Second, enroll instances. And third, adjust SQL Serverdefault utilization policies.

    Debbie has already created a control point on this instance,but lets walk through the steps so you can see how easy itis.

    The control point creation wizard includes five quick and easysteps to get started.

    First, select the instance of SQL Server that will be used asthe control point. You can give it a friendly name or select the

    default. Specify any security credentials. And then validatethe configuration.

    These validation steps ensure that before you get too faralong in the set up process, youre alerted if anything needsto be adjusted in your environment.

    There is already a Control Point on this Instance. So wellcancel this wizard, and go look at the existing Control Point.

    If this were other database management systems, Debbiemight spend hours setting up and configuring her database

    management tools, swapping DVDs and flipping throughvolumes of documentation.

    But with SQL Server 2008 R2, the set up and configurationguidance is built right into the wizard, allowing you to simplyvalidate the setup and let the system do the work.

    Multi-instanceManagement

    Enroll a Managed

    16. In the Utility Explorer pane, right-click onManaged Instances

    Step two is to enroll some instances into the control point.So, you can start collecting utilization data about them.

    There's already one instance enrolled. This is the control

  • 8/3/2019 SQL_Server_2008 R2 Release 5 - Demo Script

    25/34

    2009 Microsoft Corporation. Allrights reserved. Page 25 of 34 Proprietary and Confidential

    Instance to a UtilityControl Point

    17. Click Enroll Instance

    18. Click Next

    19. Click Connect

    20. Click the drop-down-arrow next to Server

    name, and clickCONTOSODEMO\UCPDASH

    21. Click Connect

    22. Click Next

    23. Click Specify a Windows domain account

    24. Type Contoso\Administrator as theWindows Account Name.

    25. Type pass@word1 as the Password

    26. Click Next

    27. Click Next

    28. Click Next

    29. Click Finish.

    point. Data is collected about the control point, so you canmonitor its health as well.

    To enroll additional instances, click on enroll instances, andthat will launch a very similar wizard to the create controlpoint. Again, five simple steps to enroll an instance.

    Now, you could do this one at a time, or you could script thisusing PowerShell for a batch enrollment of multiple instancesin your environment.

    Multi-instance

    Management

    Configure GlobalPolicies for ManagedServers

    30. Click Utility Administration in the Utility

    Explorer pane.

    31. Click the Utility Explorer Content tab.

    32. Click the Policy tab

    33. Click the down-arrow next to GlobalPolicies for Managed Instances

    34. Type new numbers in the % value textfields next to the overutilized / underutilized

    Lets look at the Policies that an administrator like Debbie can

    adjust to help administer this environment.

    SQL Server Management Studio provides default, out-of-the-box policies, so this step is optional, but if an administratorwanted to customize these, you can see its very easy toadjust these to meet your specific needs.

    Here, we can adjust thresholds for overutilization andunderutilization of disk space.

  • 8/3/2019 SQL_Server_2008 R2 Release 5 - Demo Script

    26/34

    2009 Microsoft Corporation. Allrights reserved. Page 26 of 34 Proprietary and Confidential

    thresholds for Instance resources.

    35. Click Apply to save settings.

    Multi-instanceManagement

    Set Volatile ResourcePolicy Evaluation

    35. Click the up-arrow next to Global Policiesfor Managed Instances to Close it

    36. Click the down-arrow next to VolatileResource Policy Evaluation

    37. Move the slider handle between Short /Long under How frequently

    38. Click Apply to save settings.

    Here, we can define the number and frequency ofoverutilized or underutilized incidents required to report the

    condition. This helps reduce the amount of noise collectedacross the system to ensure the most accurate insights.

    Multi-instanceManagement

    Utility Control PointData Warehousesettings

    39. Click the Data Warehouse tab in the upper-right pane.

    40. Adjust the retention duration with sliderhandle between Short /Long.

    41. Click Apply to save settings.

    In the Data Warehouse tab, we can adjust the retentionduration of data collected by Control Point. This ensures youare only retaining the amount of data you require, removing

    the impact of storing unneeded data.

    Multi-instanceManagement

    Create local policysettings

    42. Click the Deployed Data-tier Applicationsnode.

    43. Select a Data-tier Application on the list inthe right pane.

    44. Click on the Policy Details tab at thebottom of the right pane.

    45. Click the down arrow next to Data-TierApplication CPU Utilization Policies

    46. Click the radio button next to Override theGlobal policy.

    47. Type a new number in the % value text

    In addition to setting global policies for the entire ControlPoint, we can also specific policies for a single managedinstance or Data-tier Application to override global settings.

  • 8/3/2019 SQL_Server_2008 R2 Release 5 - Demo Script

    27/34

    2009 Microsoft Corporation. Allrights reserved. Page 27 of 34 Proprietary and Confidential

    box

    48. Click Apply to save settings.

    Data-tier Applications

    Introduction

    Now, lets look more closely at the new Data-Tier Applicationinvestments to see how an administrator like Debbie can take

    an existing database application, and register it as a Data-Tier Application for a higher level of management in theControl Point environment.

    Data-tier Applications

    Register Data TierApplication package(.dacpac)

    1. Click View on the SQL Server ManagementStudio menu

    2. Click Object Explorer

    3. Click the Connect Object Explorer button.

    4. Connect to LOCALHOST instance of SQL

    Server.

    5. Click the expand (+) button to expandDatabases

    6. Right click the Inventory_Brazil database

    7. Click Tasks on the context menu

    8. ClickRegister as Data Application onthe sub-menu

    9. Click Next

    10. Click Next

    11. Click Next

    12. Click Finish

    13. Click the expand (+) button to expandManagement

    One difficulty with database applications is that deploymentcan be cumbersome. Ensuring that the target environment,including database schema, permissions, and serverconfiguration are properly configured can be a headache.

    SQL Server 2008 R2 helps reduce this complexity byproviding a single unit of deployment for databaseapplications called a Data-Tier Application.

    Debbie, the Contoso administrator, has existing applicationslike this one and she wants to bring the benefits of the data-tier application and the higher level of management within theControl Point it to this application.

    The first step is to register an existing database, representingan application, as a Data-Tier Application, a simple three stepprocess.

    In the next step youll provide some information about theapplication, its name, version and description. Now, the

    Wizard goes in and looks at the database to discover theschema and the objects within. It figures out the relationshipbetween users and logins, and creates a model of that thusallowing us to register this database as a data-tierapplication.

    When we register this data-tier application, it stores someadditional metadata on the instance. When we Refresh thenode we can see our new application.

    We didn't make any changes to this database. All the

  • 8/3/2019 SQL_Server_2008 R2 Release 5 - Demo Script

    28/34

    2009 Microsoft Corporation. Allrights reserved. Page 28 of 34 Proprietary and Confidential

    14. Right click Data-tier Applications

    15. Click Refresh

    16. In the Object Explorer pane, click theexpand (+) button to expand Data-tierApplications where Inventory_Brazil now

    appears in the list of objects

    applications that are accessing that database continue toaccess it. But one of the key benefits about doing this is thatDebbie now gets visibility to the utilization of this applicationin the Control Point dashboard.

    Data-tier Applications

    Extract Data TierApplication package(.dacpac)

    1. Scroll back up to the expanded Databases

    2. Right-click the Inventory_Brazil database

    3. Click Tasks on the context menu

    4. Click on Extract Data-tier Applicationon the sub-menu

    5. Click Next

    6. Click Next

    7. Click Next

    8. Click Finish

    Now, what if Debbie wanted to take the Data-Tier Applicationfrom one server instance, upgrade it, and deploy it to a newone? Lets look at an example of that starting with the ExtractData-Tier Application Wizard.

    You can see the process is very similar to the steps we justwent through by registering an application. Now, the end-result is a .dacpac file that contains the database schemaand server configuration needed to run this applicationa file

    that I can in turn deploy to a new server instance.

    Data-tier Applications

    Build a Data-tierApplication in Visual

    Studio 2010

    1. Click the Start button, and click MicrosoftVisual Studio 2010 from the Start menu.

    2. Click New Project

    3. Click Data-tier Application

    4. Type BrazilUpgrade for the Name

    5. Click OK

    6. In the Solution Explorer to the right, rightclick BrazilUpgrade

    To make the application version updates, lets jump over toMicrosoft Visual Studio 2010 for a moment here and talkabout the new development experience for Data-TierApplications.

    Visual Studio 2010 includes a new project type called theData Tier Application Component.

    First, lets import the application we just extracted.

    This Data Tier Application project type works to strengthenthe collaborative relationship between database developerslike Aden, and DBAs like Debbie as well as providing newtools to streamline the development process.

  • 8/3/2019 SQL_Server_2008 R2 Release 5 - Demo Script

    29/34

    2009 Microsoft Corporation. Allrights reserved. Page 29 of 34 Proprietary and Confidential

    7. Click Import Data-tier Application

    8. Click Next in the Import Data-tierApplication Wizard

    9. Click the radio button next to Import froma data-tier application package

    10. Click Browse

    11. (C:\Users\Administrator\Documents\SQLServer Management Studio\DAC Packages)

    12. Click Inventory_Brazil

    13. Click Open

    14. Click Next

    15. Click Finish

    16. Right click BrazilUpgrade within SolutionExplorer

    17. Click Properties

    18. Click the Build tab

    19. Click Browse to specify the Build outputpath

    (C:\Users\Administrator\Documents\SQLServer Management Studio\DAC Packages)

    20. Click Select Folder

    21. Click to Close (x) the Properties window.

    Now, Im going to set the build location for this file.

    Data-tier Applications

    Configure Policies

    22. Right click BrazilUpgrade within SolutionExplorer

    For demonstration purposes well a make a quick change tothe Schema here in Visual Studio. Lets add a table.

  • 8/3/2019 SQL_Server_2008 R2 Release 5 - Demo Script

    30/34

    2009 Microsoft Corporation. Allrights reserved. Page 30 of 34 Proprietary and Confidential

    Data-tier Application23. Click Add, then click New Item

    24. Click Table

    25. Click Add

    26. In the Solution Explorer, click the expand

    arrow (>) to expand Properties, and thendouble-click ServerSelection.sqlpolicy

    27. Under Facet properties, scroll down in thelist.

    28. Click the check box next to Platform, andin the Edit Values window in the Value textbox, type NT X64 (with single quotes: NTX64)

    29. Click the check box next to VersionMajor,

    and in the Edit Values window, in the Valuetext box, type 10

    30. Click Build in the Visual Studio toolbar

    31. Click Build BrazilUpgrade

    32. Right-click BrazilUpgrade in the SolutionExplorer, and click Open Folder inWindows Explorer.

    33. Double-click the obj folder, and double-click

    the debug folder.

    34. Click the location bar and copy the location.

    We click Add

    New item

    Table

    and were done. Simple.

    Now, the other value here is, using extensions to Policy-Based Management in SQL Server to create a policy thatcaptures my deployment requirements.

    Let's say that we want to require the platform here to onlydeploy to X64 environments.

    And we want this to be deployed to SQL Server 2008 orgreater, which is Version 10.0.

    As youll notice here, it is very much like an Outlook style rule

    description of what my policy is. Very simple andstraightforward.

    Now, in today's environment, a developer like Aden wouldhand-off a bunch of TSQL scripts, and maybe someinstructions for deployment to the DBA.

    With SQL Server 2008 R2 and Visual Studio 2010, the outputfrom the build process is a .dacpaca single unit ofdeployment to hand off to the DBA.

    Data-tier Applications

    Deploy a Data-tierApplication

    35. Click the SQL Server Management Studioitem in the taskbar

    36. In the Object Explorer, click the ConnectObject Explorer button, and in theConnect to Server window, click the drop

    Now that our developer has created an upgraded version ofour database, lets flip back over to SQL Server ManagementStudio and see how Debbie will deploy the upgrade using thenew SQL Server 2008 R2 tools.

    Were going to take the Data-Tier Application weve just

  • 8/3/2019 SQL_Server_2008 R2 Release 5 - Demo Script

    31/34

    2009 Microsoft Corporation. Allrights reserved. Page 31 of 34 Proprietary and Confidential

    down arrow next to server name and clickCONTOSODEMO\LEONID

    37. Under LEONID, click the expand (+) buttonto expand Management

    38. Click the expand (+) button to expandData-tier Applications

    39. Right click Data-tier Applications, and clickDeploy Data-tier Application.

    40. In the Deploy wizard, click Next

    41. Click Browse

    42. Paste the location string from yourclipboard.

    43. Click BrazilUpgrade and click Open

    44. Click Next

    (Upgrade Data-tier Application will displayanalysis screens.)

    45. Click Next

    46. Click Finish

    updated and deploy it on another SQL Server instance in theenvironment.

    In the past, you would need to write an author script, with thenew Upgrade Wizard, the system will do this on your behalf,saving a tremendous amount of time. Select the applicationto upgrade and a DacPac to upgrade it to. SQL Server iscomparing the existing version against the new upgradedversion to rationalize the application changes that need totake place for performing the upgrade.

    The Data-Tier Application helps reduce and possibly removethe need to generate alter scripts during this process. Thisreduces the need to think about what order to run things, orto read through volumes of instructions. SQL Server analyzeshow to take the old version of the application and bring it tothe next version.

    You can see how these tools can help streamline thedevelopment of database applications and help improve theprocess of deploying and administering those applicationsacross a collection of managed server instances.

    This technology can help streamline the development ofdatabase applications and help improve the process ofdeploying and administering those applications across acollection of managed server instances.

  • 8/3/2019 SQL_Server_2008 R2 Release 5 - Demo Script

    32/34

    2009 Microsoft Corporation. Allrights reserved. Page 32 of 34 Proprietary and Confidential

    Scale with Confidence on a Trusted Platform

    Introduction to the Scenario

    Debbie is a database administrator at Contoso, a global electronics retail and manufacturing business. She faces increasing pressure to maximizeresources through consolidation and reduced consumption, while also increasing the performance, scale and speed of her database services.

    New technologies in SQL Server 2008 R2 such as StreamInsight for low-latency complex event processing, and improved database compressionhelp her achieve both of these goals.

    Features

    StreamInsight

    UNICODE Compression

    UNICODECompression

    Use databasecompression on SQLServer 2008

    1. Click the Start button, and clickStartSQL2008 to turn on SQL Server2008.

    2. Click Start, and click SQL ServerManagement Studio

    3. In the Connect to Server window, clickthe drop-down-arrow next to ServerName and clickCONTOSODEMO\SQL2008

    4. Click File, point to Open, then click File

    5. Browse toDocuments\SQL_demo\3_Scale withConfidence then click the filecompression.sql and click Open.

    The code in the right-hand pane containscommented Steps 1 through 6.

    6. Select the code in Step 1 and click the!Execute button

    7. Select the code in Step 2 and click the!Execute button

    Contoso is an international business with operations inthe United States, Europe and Asia. In order to supportmultiple international languages, data applications muststore Unicode-based data types. However, this does addto the data storage requirements of these applications.This result is bigger database requiring increased

    storage resulting in higher cost. There is decrease inperformance and more time is required to do thebackups. In the past, this posed serious challenges forDebbie and her team.

    In SQL Server 2008, Microsoft introduced databasecompression to help dramatically reduce the storagerequirements of SQL Server databases.

    This is a SQL Server 2008 instance. Lets take a look.

    Were going to open a SQL script that creates a database

    and then runs some compression procedures todemonstrate this feature.

    Step 1 runs a script that creates a database calledCompression with a table called Employee.

    Step 2 reads employee data from the ContosoRetaildatabase and copies it into the Compression database.

    Step 3 shows the estimated reduction in size by using

  • 8/3/2019 SQL_Server_2008 R2 Release 5 - Demo Script

    33/34

    2009 Microsoft Corporation. Allrights reserved. Page 33 of 34 Proprietary and Confidential

    8. Select the code in Step 3 and click the!Execute button.

    9. Select the code in Step 4 and click the!Execute button.

    10. Select the code in Step 5 and click the

    !Execute button.

    11. Select the code in Step 6 and click the!Execute button.

    both Row and Page compression.

    Step 4 shows the size of the uncompressed database.

    Step 5 uses Row compression to compress thedatabase. You can see that weve reduced the size of thedatabase by 10%.

    We can also choose Page compression, which includesrow compression i.e. what Step 5 does. In this case Pagecompressions results in a reduction of 35%.

    This is a significant improvement, and it helps Contosoreduce its storage needs. However this compression islimited as there is very limited compression of Unicodedata. I could reduce it even more if I also compress theUNICODE data thats contained in this database.

    UNICODE

    Compression

    Use databasecompression on SQLServer 2008 R2 withUNICODE compression

    12. Click the Start button, and click

    StopSQL2008 to turn off SQL Server 2008.

    13. In the Object Explorer, click ConnectObject Explorer.

    14. Connect to Server window, click the drop-down-arrow next to Server Name and clickLOCALHOST

    15. Click File, point to Open, thenclick File

    16. Browse to

    Documents\SQL_demo\3_Scale withConfidence then click the filecompression.sql and click Open.

    The code in the right-hand pane containscommented Steps 1 through 6.

    17. Select the code in Step 1 and click the!Execute button

    Thats where the UNICODE compression capabilities of SQL

    Server 2008 R2 come in.

    Lets walk through the same steps on an instance of SQLServer 2008 R2.

    Step 1 runs a script that creates a database calledCompression with a table called Employee.

    Step 2 reads employee data from the ContosoRetaildatabase and copies it into the Compression database.

    Step 3 shows the estimated reduction in size by using both

    Row and Page compression.

    Step 4 shows the size of the uncompressed database.

    Lets take a quick look at the table we added so you can seesome of the Unicode data were compressing.

    Step 5 uses Row compression to compress the database.

    And step 6 uses Page compression. You can see that weve

  • 8/3/2019 SQL_Server_2008 R2 Release 5 - Demo Script

    34/34

    2009 Microsoft Corporation. Allrights reserved. Page 34 of 34 Proprietary and Confidential

    18. Select the code in Step 2 and click the!Execute button

    19. Select the code in Step 3 and click the!Execute button.

    20. Select the code in Step 4 and click the

    !Execute button.

    21. In the Object Explorer, click the expand (+)button next to Databases, click the expand(+) button next to Compression, click theexpand (+) button next to Tables.

    22. Right-click dbo.Employee and click EditTop 200 Rows.

    23. Click on the tab: compression.sql.

    24. Select the code in Step 5 and click the!Execute button.

    25. Select the code in Step 6 and click the!Execute button.

    reduced the size of the database by 10%.

    Now when we compress the database with UNICODEcompression we get an impressive 47% reduction with Rowcompression and 59% with Page compression.

    In other words, we just cut the storage requirement of thisdatabase by more than half, and improved our compressionby 40% over what was previously possible with UNICODEcompression.