SQL SERVER 2008 R2 CTP

  • 697 views
Uploaded on

SQL SERVER 2008 R2 CTP

SQL SERVER 2008 R2 CTP

More in: Technology
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
No Downloads

Views

Total Views
697
On Slideshare
0
From Embeds
0
Number of Embeds
0

Actions

Shares
Downloads
2
Comments
0
Likes
1

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide
  • SQL Server has many versions with now SQL sserver 2000 released on november 2000 and last sp4 realesed on ,Sql server 2005 RTM released january 2006ark “ SQL Server being now 21 years old and can get married” created a riot of laughter!What is the birthday of SQL Server?January 16, 1988Relaesed by sybase
  • Data Auditing= data auditing provides many capabilities like DDL triggers,Dml triggers and CDCPerformance= Backup Compression provides great feature of backup commpression within as a part of backup stratagiesFilestream data = SQL Server 2008 provides a way to store ur pictures, music & videos files this can be added as varbinary(max) columnsSparse Columns: Which takes no space for Null data value There are some type of new indexes including filtered indexesThere are some datatypes like date,datetime,time,dateoffset, hierchyidThere also a concept of Merge statements which allow you to insert, delete & update in only one statement
  • Only database engine supports more then 64 cpu’s
  • SQL Server Utility * Creating a SQL Server utility control point (UCP):Install a single instance of the SQL Server 2008 R2 Database Engine and then promote it to be the UCP. The UCP is the central repository for configuration and performance data collected for all the instances enrolled in the SQL Server Utility. The UCP is the central reasoning point for the SQL Server Utility. * Using Utility Explorer in SQL Server Management Studio to enroll existing SQL Server 2008 R2 data-tier applications and instances of the Database Engine into the SQL Server Utility for centralized management. * Setting central policies that tailor and control the operation of the SQL Server Utility and its dashboards. * Using the Utility Explorer to display a dashboard and detailed viewpoints that report the resource utilization, resource health,and configuration information of all the instances enrolled in the SQL Server Utility.The typical user scenario begins with creation of a utility control point (UCP) which establishes the central reasoning point for the SQL Server Utility. After the UCP is created, you enroll instances of SQL Server into the SQL Server Utility so that they can be managed by the UCP.Each managed instance of SQL Server is instrumented with a data collection set that sends configuration and performance data to the UCP every 15 minutes. Data-tier applications automatically become managed by the SQL Server Utility if they belong to a managed instance of SQL Server. Other monitoring parameters are database file space utilization, CPU utilization, and storage volume utilization.Summary and detailed data are presented in Management Studio for each instance of SQL Server and data-tier application managed by the SQL Server Utility. The SQL Server Utility dashboard in SSMS presents an at-a-glance summary of performance and configuration data for managed instance and data-tier application CPU utilization, database file utilization, storage volume utilization, and computer CPU utilization. Data displays provide separation of overutilized and underutilized resources, as well as graphs of CPU utilization and storage utilization over time.The SQL Server Utility viewpoints and details in SSMS present detailed performance and configuration status for each instance of SQL Server and data-tier application managed by the SQL Server Utility, and access to policy controls. The list view displays current status compared to policy definitions, and policy controls display policy definitions for the following utilization categories:Instance CPU utilization policies for instances of SQL Server and for data-tier applicationsFile space utilization policies for database files and log filesComputer CPU utilization policies for host resourcesStorage volume utilization policies for host resourcesEach instance of SQL Server and data-tier application managed by the SQL Server Utility can be monitored based on global policy definitions or based on individual policy definitions.The combination of summary and detailed data presented in the UCP for both underutilization and overutilization policies, and for a variety of key parameters, enables resource consolidation opportunities and resource overutilization to be identified with ease. Health policies are configurable, and can be adjusted to change either upper or lower resource utilization thresholds. You can change global monitoring policies, or configure individual monitoring policies for each entity managed in the SQL Server Utility.
  • Extracting and Deploying Data-tier ApplicationsA Data-tier Application can be extracted from an existing SQL Server database. The extraction process creates a DAC package file that contains all database objects and their related SQL Server elements. For example, a DAC package file contains all database tables, stored procedures, views, users, and logins that map to the database users. The DAC package can then be deployed to a target instance of SQL Server, to either create a new instance of the Data-tier Application or to upgrade an existing Data-tier Application. Creating a Data-tier Application from an existing database - In order to create Data-tier Applications from databases, users can invoke the Extract Data-tier Application Wizard from the Object Explorer pane in SQL Server Management Studio. By doing so, users can launch the wizard from an existing instance and then create a DAC package file that contains the Data-tier Application corresponding to the selected database and instance.Developing data-tier changes – After a user creates a DAC package (for example, after a DBA extracts the necessary objects from an instance of SQL Server in production), the DAC package file can be sent to developers. The developers can open the DAC package into Visual Studio, where they can update the database and instance schema in the Data-tier Application. For example, developers can create new tables, logins, and users; remove views and stored procedures; and so on. After changes are coded in the Visual Studio project system, developers build the project and compile a new version of the DAC to create an updated DAC package file.Moving changes to test and production – After developers create and test the new DAC package file, the file can then be sent to DBAs and change managers (that is, deploying-users) working in the test or production SQL Server environments. To push the changes to their databases and instances of SQL Server, deploying-users can activate the Deploy Data-tier Application Wizard in SQL Server Management Studio, configure the deployment parameters, and then propagate the changes to the appropriate target instance of SQL Server.Upgrading to SQL Server 2008 R2 – DACs enable DBAs to upgrade the schema of SQL Server databases and instances from SQL Server 2000, SQL Server 2005, and SQL Server 2008 to SQL Server 2008 R2. To upgrade, users can point to a SQL Server 2000, SQL Server 2005, or SQL Server 2008 database, extract a DAC and create the corresponding DAC package file, and then deploy the DAC to a target instance of SQL Server 2008 R2. Then, data can be transferred from the source database to the target database by using SQL Server Integration Services, the bulk copy utility, or many other data migration techniques.
  • SQL Server 2008 introduces support for Windows PowerShell. Windows PowerShell is a powerful scripting shell that lets administrators and developers automate server administration and application deployment. The Windows PowerShell language supports more complex logic than Transact-SQL scripts, giving SQL Server administrators the ability to build robust administration scripts. Windows PowerShell scripts can also be used to administer other Microsoft server products. This gives administrators a common scripting language across servers.SQL Server provides two Windows PowerShell snap-ins that implement:A SQL Server provider, which enables a simple navigation mechanism similar to file system paths. You can build paths similar to file system paths, where the drive is associated with a SQL Server management object model, and the nodes are based on the object model classes. You can then use familiar commands such as cd and dir to navigate the paths similar to the way you navigate folders in a command prompt window. You can use other commands, such as ren or del, to perform actions on the nodes in the path.A set of cmdlets, which are commands used in Windows PowerShell scripts to specify a SQL Server action. The SQL Server cmdlets support actions such as running a sqlcmd script containing Transact-SQL or XQuery statements.
  • As the BI part of SQL Server 2008 R2 there are some interesting enhancements in reporting services…there are some enhancements in SSRS as Map visualization, report builder,Atom data feeds , report manager,Rdl Luanguage now in these days reporting
  • Report Builder 3.0 provides a better preview experience. The introduction of edit sessions enable the reuse of cached datasets when previewing reports. This means that reports render more quickly when using the cached datasets. Edit sessions are bound to a report, which makes it possible to use relative references and subreport references in reports. How you create and update reports affects how fast the report renders in preview. The first time that you preview a report that relies on a server reference, an edit session is created for you and the data used when the report is run is added to a data cache that is stored on the report server. When you make changes to the report that do not affect the data, the cached copy of the data is used by the report. This means that you will not see data change each time you preview the report. If you want new data, click the Refresh button on the ribbon.
  • Report Designer provides a Map Wizard and Map Layer Wizard to add maps and map layers to your report to help visualize data against a geographic background. A map layer displays map elements based on spatial data from a map in the Map Gallery, from a SQL Server query that returns SQL Server spatial data, or from an Environmental Systems Research Institute, Inc. (ESRI) shapefile. Map elements can be polygons that represent areas, lines that represent paths or routes, or points that represent locations such as stores or cities. You can also add a display background based on Microsoft Bing Maps tiles. After you relate map elements with report data, you can specify rules for the map elements on each layer to control color, size, width, or marker type. For example, you can add a bubble map that varies bubble size for store locations based on sales or a color analytical map that displays customer demographics for geographic regions.You can add labels, legends, titles, a color scale, and a distance scale to help your users interpret the map display. You can add interactive features such as tooltips and drillthrough links, or provide parameters that enable a user to interactively control the visibility of each layerpe .--------------------------------------------------------------------The enhancement of Spatial data type is very well used in SQL server 2008 R2 SSRS it shows you maps and locations on the basis of that spatial data stored in table. A map layer displays map elements based on spatial data you provide from a sql query we can use Bing maps in this for showing map elements in SSRS.After that you can specify rules for showing data as if you choose a bubble map then it your choice that if you want to vary bubble size or you want to change bubble colours in map. So we can go through a demo which shows you how to do this
  • Ok when it strikes in your mind when you heard about Atom data feeds it remind about us the same data feed which we all are using on web these days to get all the information to get updated from the web. Well at first I also think it like that and am very exciting when I heard about this but this is some thing different this is not that Atom data feeds these feeds are the Atom service document generated by a Atom rendering extension . We use this extension to generate atom data feeds that are readable and exchangeable with applications that can consume data feeds generated from reports Gemin as an example------------------------------------------------------------------------------------------------------------------------------------Reports as Data Feeds You can export a production report as a data feed or you can create a report whose primary purpose is provide data, in the form of data feeds, to applications. Using reports as a data feed gives you an additional way to provide data to applications when the data is not easy to access through client data providers, or when you prefer to hide the complexity of the data source and make it simpler to use the data. Another benefit of using report data as a data feed is that you can use Reporting Services features such as Report Manager, security, scheduling, and report snapshots to manage the reports that provide data feeds.To get the most from the Atom rendering extension, you should understand how the report is rendered into data feeds. If you are using existing reports, being able to predict what the data feeds the reports will generate is useful; if you are writing report specifically for use as data feeds, being able to include the data and fine tune the report layout to maximize the usefulness of the data feeds is valuable.----==================================================================The Reporting Services Atom rendering extension generates an Atom service document that lists the data feeds available from a report and the data feeds from the data regions in a report. You use this extension to generate Atom-compliant data feeds that are readable and exchangeable with applications that can consume data feeds generated from reports. For example, you can use the Atom rendering extension to generated data feeds that you can then use in the SQL Server 2008 R2 Gemini client. The Atom service document lists at least one data feed for each data region in a report. Depending on the type of data region and the data that the data region displays, Reporting Services might generate multiple data feeds from a data region. For example, a matrix or chart can provide multiple data feeds. When the Atom rendering extension creates the Atom service document, a unique identifier is created for each data feed and you use the identifier in the URL to access the content of the data feed. The way that the Atom rendering extension generates data for a data feed is similar to how the Comma-Separated Value (CSV) rendering extension renders data to a CSV file. Like a CSV file, a data feed is a flattened representation of the report data. For example, a table with a row group that sums the sales within a group repeats the sum in every data row and there is no separate row that contains only the sum.You can generate Atom service documents and data feeds using Report Manager, Report Server, or a SharePoint site that is integrated with Reporting Services.
  • Report Manager is a Web-based report access and management tool that you use to administer a single report server instance from a remote location over an HTTP connection. You can also use Report Manager for its report viewer and navigation features. You can use Report Manager to perform the following tasks================================Report Manager has been updated in this release to provide a better user experience, and an improved look and feel. The most dramatic change for Report Manager is the updated color scheme and layout, which provides easier navigation to manage report properties and report server items. You can use a new drop-down menu on each report or report server item in a folder to access the various configuration options for the report or item you choose.The tool maintains the familiar text and same management tasks, but offers an improved user experience by:Improving the workflow for viewing and managing reports and report server items by using a new drop-down menu to access various configuration options for each report or report server item in a folder.Eliminating the need to render a report before accessing and configuring report properties when in default view.Allowing more room for Report Viewer when rendering reports.An updated Report Viewer toolbar, which includes some updates to the toolbar controls, as well as the ability to export report data to an Atom service document and data feeds.You can use Report Manager to browse the report server folders or search for specific reports. You can view a report, its general properties, and past copies of the report that are captured in report history. Depending on your permissions, you might also be able to subscribe to reports for delivery to an e-mail inbox or a shared folder on the file system.
  • If custlist has values like(2,6,1,4) and here is the Ds2 with custid,custname 1,Ashish:2,Amit:3,Sumit:4,Neeraj:5,Govind:6,AbhishekThen results for lookup functions are“Amit,Abhishek,Ashish,Neeraj”
  • In the following example, assume the table is bound to a dataset that includes a sales territory identifier TerritoryGroupID. A separate dataset called "Stores" contains the list of all stores in a territory and includes the territory identifier ID and the name of the store StoreName.In the following expression, LookupSet compares the value TerritoryGroupID to ID for each row in the dataset called "Stores". For each match, the value of theStoreName field for that row is added to the result set.=LookupSet(Fields!TerritoryGroupID.Value, Fields!ID.Value, Fields!StoreName.Value, "Stores")Because LookupSet returns a collection of objects, you cannot display the result expression directly in a text box. You can concatenate the value of each object in the collection as a string.Use LookupSet to retrieve a set of values from the specified dataset for a name/value pair where there is a 1-to-many relationship. For example, for a customer identifier in a table, you can use LookupSet to retrieve all the associated phone numbers for that customer from a dataset that is not bound to the data region.LookupSet does the following:Evaluates the source expression in the current scope.Evaluates the destination expression for each row of the specified dataset after filters have been applied, based on the collation of the specified dataset.For each match of source expression and destination expression, evaluates the result expression for that row in the dataset.Returns the set of result expression values.

Transcript

  • 1. SQL SERVER 2008 R2What’ s New
    Ashish Gilhotra : ashish@beyondrelational.com
    Govind S Yadav : govindsyadav@soliddotnet.com
  • 2. Who We Are?
    Ashish Gilhotra- Database Professional - .Net Developer
    Govind S Yadav- Database Professional
    - Team Lead
  • 3. Agenda
    Overview of SQL Server 2008
    Major Enhancements from SQL Server 2008 to SQL Server 2008 R2
  • 4. SQL Server 2008 Overview
    SQL Server 2008 is a very powerful tool of Microsoft. SQL Server 2008 comes up with many enhancements in Security, Availability, Performance, Management, Storage, Programmability, BI( Business Intelligence ) and SSRS (Reporting Services) .
  • 5. Security/Auditing
    Transparent Data Encryption
    External Key Management
    Data Auditing
    Availability/Reliability
    Hot Pluggable CPU support
    Enhanced Database Mirroring
      Performance
    Data Compression
    Backup Compression
    Performance Data Collection
    Improved Plan Guide Support
    Resource Governor
    Management
    Policy based Management
    Microsoft System Center Integration
    Extended Events
    Data Storage
    Data Compression
    FILESTREAM
    Integrated Full Text Indexing
    Sparse Columns
    New Index Types
    Development Enhancements
    Improved Datatypes
    HiarchyID
    Entity Data Model
    LinQ
    Change Data Capture
    Table Valued Parameters
    Large UDTS
    MERGE Statements
    XML Enhancements
    Service Broker Enhancements
    Spatial Data
    Data Warehousing/ETL
    Partition Table Parallelism
    Star Join Support
    Persistent Lookups
    Improved Thread Scheduling
    MERGE Statement
    Change Data Capture
    Scale-out Analysis Services
    Subspace Computations
    Cube Design Enhancements
    Data Mining Add-ins for Excel
    Reporting
    IIS Agnostic RS
    Sharepoint Integration
    Rich Text Support
    Report Designer
    Word/Excel Designing
  • 6. What’s R2 CTP
    Building on the momentum of SQL Server 2008, “R2” improves IT efficiency by reducing the time and cost of developing and managing applications; empowers end users to make better decisions through Self-Service Business Intelligence and enables organizations to scale with confidence by providing high levels of reliability, security and scalability for business critical applications.
    This public preview offers the opportunity to experience early, pre-release feature capabilities including: - Application and Multi-server Management - SMP scale up with support for up to 256 logical processors.- Report Builder 3.0 with support for geospatial visualization
    This CTP provides the first opportunity to explore some of the features of SQL Server 2008 R2 and see how it all comes together to enhance performance and scalability, enable self-service BI and improve IT and developer efficiency.
  • 7. Scalability & Performance Enhancements
    SQL Server 2008 R2 comes up with two new feature in scalability and performance enhancements:
    Support for More Than 64 CPUs- The number of CPU cores that a server can use for database operations been increased from 64 to 512.
    Unicode Compression-Unicode data that is stored in nvarchar(n) and nchar(n) columns is now compressed by using an implementation of the standard Compression Scheme for Unicode(SCSU) algorithm.
    Contd…
  • 8. How Unicode Compression affects Data Storage
    You can implement it simply when creating table: with(Data_Compression=ROW)
    or after creating table: Alter Table [Name] REBUILD WITH(Data_Compression=ROW)
    demo..
  • 9. Manageability Enhancements
    SQL Server 2008 R2 introduces the SQL Server Utility for managing multiple instances of the SQL Server Database Engine. It also introduces a unit of management called a data-tier application that provides an application-based view for managing the data-tier objects in the SQL Server Utility or stand-alone instances of the Database Engine.
  • 10. Here are some features enhancements in manageability :
    SQL Server utility
    Data-Tier Application
    SQL Server PowerShell Provider
  • 11. SQL Server Utility
    Creating a SQL Server UCP: Install a single instance of SQL Server 2008 R2 database engine and then promote it to be the UCP.
    Enroll Instances in UCP
    Setting Central Policies
    Using the Utility Explorer to display a dashboard, for all enrolled instances.
  • 12.
  • 13. Data-Tier Application
    A DAC defines all of the Database Engine schema and instance objects, such as tables, views, and logins, required to support the application. The DAC operates as a single unit of management through the development, deployment, and management lifecycle of the associated application. The DAC also contains policies that define the deployment prerequisites for the DAC.
  • 14. Create a DAC package :- You can create a DAC package by simply expand database tree go to database then tasks and click on “Extract Data Tier Application”.
    Deploy a DAC Package :- Again in SSMS expand Management tab then go to Data-Tier Applications right click on it and choose “Deploy Data-Tier application”.
  • 15.
  • 16. SQL Server PowerShell Provider
    SQL Server 2008 R2 introduces new SQLSERVER:Utility and SQLSERVER:DAC folders to support the SQL Server Utility and data-tier applications in PowerShell scripts.
  • 17. What’s New In Reporting Services
    Report Builder 3.0
    Map & Spatial Data Visualization
    ATOM Data Feeds
    Report Manager
    RDL Expression Language Enhancements
  • 18. Report Builder 3.0
    It provides a better preview experience.
    Dataset results are cached when connected to a report server, which speeds up making layout changes and previewing the new report.
  • 19.
  • 20. Maps & Spatial Data Visualization
    Report designer provides a Map Wizard & Map Layer Wizard to add maps & map layers to your report.
    Maps can integrate ESRI shape files, as well as directly integrate with Bing Maps.
    DEMO
  • 21.
  • 22. Atom Data Feeds
    Reports are now also available in the ATOM standard complaint format that can be consumed by GEMINI and other tools.
    You can export a production report as a data feed or you can create a report whose primary purpose is provide data, in the form of data feeds, to applications.
  • 23. Report Manager
    Report Manager has been updated in this release to provide a better user experience, and an improved look and feel.
    Allowing more room for Report Viewer when rendering reports.
    An updated Report Viewer toolbar, which includes some updates to the toolbar controls, as well as the ability to export report data to an Atom service document and data feeds.
  • 24. RDL Expression Language Enhancements
    Enhancements in RDL
    Direct Geo Spatial Data
    Three Lookup Functions- Lookup Function- LookupSet Function- Multilookup Function
    Contd..
  • 25. Lookup Function - This is a much awaited function developers looking for. This gives you the opportunity to join 2 datasets . Here the syntax for Lookup Functions
    =Lookup(Source_exp, destination_exp, result_exp, Dataset)
    Ex : We have two datasets “A” and “B” Then we have to get Name field from dataset “B” where id filed of dataset “A” matches storeid filed of dataset “B”. So here we can achieve it..
    =Lookup(Fields!ID.Value, Fields!StoreId.Value, Fields!Name.Value, “B")
  • 26. Multiple lookup Functions :- Returns the set of first-match values for the specified set of names from a dataset that contains name/value pairs.- Same as lookup Function but use in this type of scenarios :
    Ex: If we have a comma separated column “custlist” in a dataset and on other dataset we have “custid” with “custname” and we want “custname” on basis of custid then we do some thing like this
    =Join(MultiLookup(Split(Fields!custlist.Value,","), Fields!custid.Value,Fields!custname.Value,“DsNm")), ", ")
  • 27. Lookup Set Function- It returns a set of matching values for the specified name from a dataset that contain name/value pair.
    Lookup(source_expression, destination_expression, result_expression, dataset)
  • 28. Questions &Answers
  • 29. Resources
    What’s new section fot SQL Server 2008 R2http://technet.microsoft.com/hi-in/library/bb500435%28en-us,SQL.105%29.aspx
    For latest SQL News you can go tohttp://blogs.technet.com/dataplatforminsider/default.aspx
    To download SQL Server 2008 R2 visithttp://technet.microsoft.com/en-us/evalcenter/ee315247.aspx
  • 30. Thanks
    For more Technology updates , keep visiting :http://beyondrelational.com/blogs/ashish/