Upload
craig-bailey
View
948
Download
3
Tags:
Embed Size (px)
DESCRIPTION
Business Benefits of SQL Server 2008 R2 presented by Victor Isakov.
Citation preview
SQL Server 2008 R2 – The Business Benefits
Victor Isakov
Copyright © 2010 by Victor Isakov
Sydney Business & Technology User Group http://www.sbtug.com
http://www.facebook.com/SBTUG
Abstract
Victor Isakov will be taking us through the benefits of SQL Server 2008 R2 for business.
Victor is a world renowned SQL Server expert, author, one of the few Microsoft Certified Masters and the only Microsoft Certified Architect in Australia. As a consultant and trainer, Victor deals with hundreds of business and corporate SQL Server sites each year. In this session he will outline the main features of R2 and highlight the benefits for businesses looking at upgrading..
Sydney Business & Technology User Group
28th July 2010
Speaker
• Victor Isakov is a Database Architect / Trainer / SQL Ranger who provides consulting and training services to various organizations in the public, private and NGO sectors globally, and been involved in different capacities at various international events and conferences. Victor specializes in: – Still does “high-end” SQL Server training – Performance tuning and optimization – “Health-checks” / “Risk Assessments” / review of SQL Server infrastructure – Architecting / re-factoring database solutions – Assessing the effectiveness of your outsourced services / licensing – Consolidating / upgrading SQL Server infrastructure
• Blog: www.victorisakov.com • Email: [email protected] • Website: www.sqlserversolutions.com.au
Sydney Business & Technology User Group
28th July 2010
SQL Server Training
• Victor Isakov is the only Microsoft Certified Trainer who is also a Microsoft Certified Architect globally • Been training SQL Server since version 6.0 • Has both deep technical knowledge and extensive
consulting/product experience • Specializes in customized training:
• Database Administration • Database Design and Optimization • Performance Tuning / High-Availability
• Worked with Microsoft on SQL Server Certification • Write and validate exam items
Sydney Business & Technology User Group
28th July 2010
Questions…
• How many SQL Server instances?
– SQL Server 2000?
– SQL Server 2005?
– SQL Server 2008?
• How many databases exist?
• Do you have a testing harness?
– Performance Testing?
– Functional Testing?
Sydney Business & Technology User Group
28th July 2010
More Questions…
• For each database:
– Is it still being used?
• Who’s using it?
• What client applications?
– Was it developed in-house?
• Who is the owner?
– Who are the developers?
» Is it documented?
» What are the external-dependencies?
» What are the cross-database dependencies?
– Does the vendor support an upgrade?
Sydney Business & Technology User Group
28th July 2010
So… You’re Here Because You’re…
• Installing a new instance of SQL Server
• Upgrading existing SQL Server instance
• Interested in the Visual Studio 2010 session
Sydney Business & Technology User Group
28th July 2010
Upgrading SQL Server
Sydney Business & Technology User Group
28th July 2010
Upgrade Methodologies
• “Wing it and see” (Hope for the best…)
• More structured approach
– Assess environment
– Determine pre-upgrade tasks
– Determine post-upgrade tasks
– Determine upgrade strategy
– Determine resource requirements
Sydney Business & Technology User Group
28th July 2010
Upgrade Strategy
• Major Decision Point
– In-place Upgrade
– Side-by-side Migration
• SQL Server Upgrade Advisor
• Strongly consider going to x64 architecture
• Should have post-upgrade validation strategy
– “Correctness”
– “Performance”
Sydney Business & Technology User Group
28th July 2010
Agenda
• Executive Summary
• Licensing
• New Features
• Changes For DBAs
Sydney Business & Technology User Group
28th July 2010
Executive Summary
• It’s all about benefits versus risks
• Dependent on your existing SQL Server
infrastructure and how it is managed
• Do not aim for an improvement in
performance because of an upgrade
• Major cost will be in time/effort
• Watch out for technology dependencies
Sydney Business & Technology User Group
28th July 2010
Product Support Lifecycle
• “Extended Support includes paid support (support that is charged on an hourly basis or per incident), security update support at no additional cost, and paid hotfix support.”
• “To receive hotfix support, an Extended Hotfix Support contract must be purchased within the first 90 days following the end of the Mainstream Support phase.”
• “Microsoft will not accept requests for warranty support, design changes, or new features during the Extended Support phase.”
Sydney Business & Technology User Group
28th July 2010
Product Mainstream Support Retired
Extended Support Retired
SQL Server 2000 08/04/2008 09/04/2013
SQL Server 2005 12/04/2011 12/04/2016
SQL Server 2008 14/01/2014 08/01/2019
Editions
• Datacenter
• Enterprise
• Standard
• Web
• Workgroup
• Express
Sydney Business & Technology User Group
28th July 2010
Datacenter Edition
• CPU limit dependent on O/S
• Maximum memory dependent on O/S
• Supports a SQL Server utility control point with a maximum of 200 managed instances of SQL Server
Sydney Business & Technology User Group
28th July 2010
Enterprise Edition
• 8 CPUs
• 2TB RAM
• Supports a SQL Server utility control point with a maximum of 25 managed instances of SQL Server
• Virtualization licensing has changed!*
– Can now only run 4 VMs
Sydney Business & Technology User Group
28th July 2010
Standard Edition
• 4 CPUs
• 64GB RAM
• Now supports backup compression
Sydney Business & Technology User Group
28th July 2010
Express Edition
• 1 CPU
• 1GB RAM
• 10GB database size
Sydney Business & Technology User Group
28th July 2010
List Price (USD)
• About a 20% price increase from SQL Server 2008
Sydney Business & Technology User Group
28th July 2010
Edition List Price (USD)
Standard $ 7,499
Enterprise $28,749
Datacenter $57,498
Parallel Data Warehouse $57,498
Licensing
• From the SQL Server 2008 R2 Licensing Quick Reference – “If your existing SQL Server License is covered by Software
Assurance (SA), you are automatically licensed to upgrade to the corresponding SQL Server 2008 R2 edition.”
– “If your existing SQL Server License is not covered by SA, you must purchase a new full license for the SQL Server 2008 R2 edition you want.”
– “Each Server License for SQL Server 2008 R2 Enterprise permits you to run the software in up to four (4) OSEs (physical and/or virtual).”
Sydney Business & Technology User Group
28th July 2010
Licensing FAQ
Sydney Business & Technology User Group
28th July 2010
INTERMISSION
Random Quiz
Sydney Business & Technology User Group
28th July 2010
Everybody Wants This…
But what is worse than this?
Sydney Business & Technology User Group
28th July 2010
A Half-Baked Cake!
Sydney Business & Technology User Group
28th July 2010
New Features
• Yes… It is a BI release
– PowerPivot for Excel
– Report Builder 3.0
– Master Data Management
• Complex Event Processing
– Stream Insight
Sydney Business & Technology User Group
28th July 2010
PowerPivot for Excel (Sharepoint)
• Part of Microsoft’s managed self-service BI strategy
• Requires Office 2010 stack
– Sharepoint 2010
Sydney Business & Technology User Group
28th July 2010
PowerPivot for Excel
Sydney Business & Technology User Group
28th July 2010
Report Builder 3.0
• Familiar Office Interface
• Rich Visualizations
• PowerPivot data source
• SharePoint list data source
• Report Part Gallery for “grab and go” report design experience
Sydney Business & Technology User Group
28th July 2010
Master Data Management
Sydney Business & Technology User Group
28th July 2010
Master Data Management
Sydney Business & Technology User Group
28th July 2010
Database Applications Event-driven Applications
Query Paradigm Ad-hoc queries or requests Continuous standing queries
Latency Seconds, hours, days Milliseconds or less
Data Rate Hundreds of events/sec Tens of thousands of events/sec or more
Model
• Complex Event Processing (CEP) is the continuous and incremental processing of event streams from multiple sources based on declarative query and pattern specifications with near-zero latency.
Complex Event Processing
Sydney Business & Technology User Group
28th July 2010
request
response
Event
output stream input
stream
CEP Use Cases
• Manufacturing – Sensor on plant floor – React through device
controllers – Aggregated data – 10,000 events/sec
• Web Analytics – Click-stream data – Online customer behaviour – Page layout – 100,000 events /sec
• Financial Services – Stock & news feeds – Algorithmic trading – Patterns over time – Super-low latency – 100,000 events /sec
• Utilities (Power) – Energy consumption – Outages – Smart grids – 100,000 events/sec
Sydney Business & Technology User Group
28th July 2010
Microsoft’s CEP Solution
Sydney Business & Technology User Group
28th July 2010
Data Sources, Operations, Assets, Feeds, Sensors, Devices
Monitor &
Record
Operational Data Store & Archive
CEP Engine
f(x) g(y)
CEP Engine
f(x) f'(x)
g(y) h(x,y)
Results f'(x) h(x,y)
Manage &
Benefit
Mine &
Design
Input Data Streams
Input Data Streams
Output Data Streams
StreamInsight
• Platform from Microsoft for continuous and incremental processing of event streams from multiple sources based on declarative query and pattern specifications with low latency
Sydney Business & Technology User Group
28th July 2010
CEP Event Streams
• A stream is a possibly infinite sequence of events – Insertions of new events – Changes to event durations – Examples: time series sensor data, log entries
• Stream characteristics: – Event/data arrival patterns
• Steady rate with end-of-stream indication Examples: files, tables
• Intermittent, random, or in bursts Example: retail scanners, web, weather telemetry
– Out of order events • Order of arrival of events does not match the order of their
application timestamps
• CEP engine does the heavy lifting for you when dealing with out-of-order data
Sydney Business & Technology User Group
28th July 2010
CEP Query Features
• Operators over streams – Calculations (PROJECT) – Correlation of streams from different data sources (JOIN) – Check for absence of activity with a data source (EXISTS) – Selection of events from streams (FILTER) – Stream partitioning (GROUP & APPLY) – Aggregation (SUM, COUNT, …) – Ranking and heavy hitters (TOP-K) – Temporal operations: hopping window, sliding window
• Extensibility – to add new domain-specific operators • Queries are written over specific event types
– They can be evaluated on all data sources with the same event type
• Support for streaming data, reference data (lookup), and historical data (replay)
Sydney Business & Technology User Group
28th July 2010
CEP Deployment Alternatives
• Event processing engines are deployed at multiple places on different scales
• At the edge – close to the data source
• In the mid-tier – consolidate related data sources,
• In the data center – historical archive, mining, large scale correlation.
Sydney Business & Technology User Group
28th July 2010
CEP
CEP
CEP
CEP for lightweight processing and filtering
CEP for aggregation and correlation of in-flight events
CEP for complex analytics including historical data
Data Sources
Aggregation & Correlation
Devices
Sensors
Web servers
Feeds
CEP
CEP CEP
CEP
CEP CEP
CEP CEP CEP
Complex Analytics & Mining
For the DBA (DBD)
• Backup compression in Standard Edition
• Support for 256 logical processors
• Unicode compression
• SQL Server Utility
• Data-Tier Application
• Live Migration
Sydney Business & Technology User Group
28th July 2010
Support for 256 Logical Processors
• Requires Datacenter Edition
• Default MAXDOP = 64
• New Paradigm
– CPU Groups
• Internal locking structures had to be re-written
– Can still get lock-hash key collisions!
Sydney Business & Technology User Group
28th July 2010
Support for 256 Logical Processors
Sydney Business & Technology User Group
28th July 2010
Unicode Compression: Problem
• SQL Server Uses UCS-2 encoding – NCHAR and NVARCHAR data always take 2 bytes
of storage
– 1 byte wasted for most deployed locales
– Existing ROW compression ineffective
– PAGE compression only helps for exact match
• Competition – Oracle supports UTF-8 encoding
– DB/2 supports UTF-8 and Unicode compression
Sydney Business & Technology User Group
28th July 2010
Unicode Compression: Solution
• Use standard SCSU compression technique – http://www.unicode.org/reports/tr6/tr6-4.html
• No application change needed • Compression Achieved
Sydney Business & Technology User Group
28th July 2010
SCSU UTF-8
Locale 0.5 0.5
Japanese .85 1.0
Korean 1.0 1.0
Turkish .52 .53
German .5 .5
Vietnamese 0.61 0.68
Hindi 0.5 1.0
Unicode Compression: Upgrade
• ROW compression enabled in SQL2008 – No database changes when upgraded
– Unicode value compressed only if it saves space. It happens when: • An existing value is updated
• A new row is inserted
• Index is rebuilt with ROW or PAGE compression
• PAGE compression enabled in SQL2008 – Same as with ROW compression
• No changes needed to existing scripts and DDL
Sydney Business & Technology User Group
28th July 2010
SQL Server Utility
• “Provide administrators a holistic view of SQL Server resource health through an instance of SQL Server that serves as a utility control point (UCP). ” – SQL Instances
– Data tier applications
– Database files
– Storage volumes
Sydney Business & Technology User Group
28th July 2010
Utility Control Point (UCP)
• UCP provides a consolidated view of resource health collected from managed instances of SQL Server in the SQL Server Utility
• Each managed SQL Server instance configuration and performance data to the UCP every 15 minutes
• Metrics – CPU utilization
– Database file utilization
– Storage volume utilization
Sydney Business & Technology User Group
28th July 2010
Utility Control Point
• Dashboard
• Identify consolidation opportunities
• Drill-down to detailed views
• Simple UI for policy adjustments
Sydney Business & Technology User Group
28th July 2010
UCP Requirements
• UCP / Managed Instances Requirements – SQL Server 10.50 or higher
– Single Windows domain /domains with two-way trusts
– Service accounts must have read permission to AD
• Additional UCP Requirements – Datacenter or Enterprise Edition
– Microsoft recommends hosting UCP on case-sensitive SQL Server instance
Sydney Business & Technology User Group
28th July 2010
Data-Tier Application (DAC)
• The Data-tier Application packages database schema with deployment requirements
• A Data-tier Application package (DACPAC) can be created in Visual Studio 2010 – Can be extracted from existing applications – Can define policies
• This integration enables a single unit of deployment for DBAs to deploy database applications to available servers that meet deployment criteria. – Helps significantly streamline deployments, moves and
upgrades by reducing the amount of trial and error associated with typical database application deployments
• Can be deployed to SQL Server 2008 R2 or SQL Azure
Sydney Business & Technology User Group
28th July 2010
Data-Tier Application (DAC)
Sydney Business & Technology User Group
28th July 2010
Management Studio
DAC Limitations
• Not all database objects are supported
– CLR objects
– Service Broker
– Partitioning
– Security
• Smells a lot like SQL Azure to me…
• Upgrading DACPAC is a side-by-side process
Sydney Business & Technology User Group
28th July 2010
DACPAC Upgrade
Sydney Business & Technology User Group
28th July 2010
Database Deployment Lifecycle
Sydney Business & Technology User Group
28th July 2010
DBA
SQL Server Management Studio
Make Changes,
Create policies
6
Hand-off to DBA
DBA
SQL Server Management Studio
Visual Studio 2010
Developer
Managed Server
Group
Finance
DBA
Create
Control
Point,
Control
Point
Managed Server
Group
Control
Point
Finance
Enroll
Instances,
Register DACs
2
3
Reverse
Engineer
DAC
4
5 Handoff
to Dev
Compile
+ Build
.dacpac
7
Deploy /
Upgrade DAC
Hyper-V Live Migration
• Requires Windows 2008 R2 Hyper-V
• Cluster Shared Volumes
Sydney Business & Technology User Group
28th July 2010
Hyper-V Live Migration
Sydney Business & Technology User Group
28th July 2010
Business Benefits
• SQL Server 2008 R2 is a BI release • Business benefits dependent on how quickly you
can leverage new functionality – PowerPivot – Rest of new features predominantly effect operational
/ infrastructure costs
• Cost of upgrade versus new installation • Watch out for “hidden” costs • Recommend you spend time/effort to “get your
shop in order”
Sydney Business & Technology User Group
28th July 2010
Q & A
• Questions?
• Email: [email protected]
• Blog: www.victorisakov.com
• Website: www.sqlserversolutions.com.au
Sydney Business & Technology User Group
28th July 2010