Introduction to SQL Server "Yukon" for IT Professionals

1,312 views

Published on

0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
1,312
On SlideShare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
21
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

Introduction to SQL Server "Yukon" for IT Professionals

  1. 1. IT Track 7
  2. 2. Tom Davidson Program Manager SQL Server Development Microsoft Corporation SQL Server “Yukon” - DBA
  3. 3. SQL Server “Yukon” <ul><li>. NET Framework </li></ul><ul><ul><li>Common Language Runtime Integration </li></ul></ul><ul><ul><li>User-defined Aggregates </li></ul></ul><ul><ul><li>User-defined Data Types </li></ul></ul><ul><ul><li>User-defined Functions </li></ul></ul><ul><ul><li>SQL Server .NET Data Provider </li></ul></ul><ul><ul><li>Extended Triggers </li></ul></ul><ul><li>Data Types </li></ul><ul><ul><li>Managed SQL Types </li></ul></ul><ul><ul><li>New XML Datatype </li></ul></ul><ul><li>SQL Server Engine </li></ul><ul><ul><li>New Message Service Broker </li></ul></ul><ul><ul><li>HTTP Support (Native HTTP) </li></ul></ul><ul><ul><li>Database Tuning Advisor </li></ul></ul><ul><ul><li>Enhanced Read ahead & scan </li></ul></ul><ul><ul><li>Extended Indexes </li></ul></ul><ul><ul><li>Multiple Active Result Sets </li></ul></ul><ul><ul><li>Persisted Computed Columns </li></ul></ul><ul><ul><li>Queuing Support </li></ul></ul><ul><ul><li>Snapshot Isolation Level </li></ul></ul><ul><ul><li>Scale Up Partitioning </li></ul></ul><ul><ul><li>VIA support </li></ul></ul><ul><ul><li>NUMA support </li></ul></ul><ul><li>Database Failure and Redundancy </li></ul><ul><ul><li>Fail-over Clustering (up to 8 node) </li></ul></ul><ul><ul><li>Enhanced Multi-instance Support </li></ul></ul><ul><ul><li>Database Mirroring </li></ul></ul><ul><ul><li>Database Views </li></ul></ul><ul><li>XML </li></ul><ul><ul><li>XQUERY Support (Server & Mid Tier) </li></ul></ul><ul><ul><li>XML Data Manipulation Language </li></ul></ul><ul><ul><li>FOR XML Enhancements </li></ul></ul><ul><ul><li>XML Schema (XSD) Support </li></ul></ul><ul><ul><li>MSXML 6.0 (Native) </li></ul></ul><ul><ul><li>.Net XML Framework </li></ul></ul><ul><li>Database Maintenance </li></ul><ul><ul><li>Backup and Restore Enhancements </li></ul></ul><ul><ul><li>Checksum Integrity Checks </li></ul></ul><ul><ul><li>Dedicated Administrator Connection </li></ul></ul><ul><ul><li>Dynamic AWE </li></ul></ul><ul><ul><li>Fast Recovery </li></ul></ul><ul><ul><li>Highly-available Upgrade </li></ul></ul><ul><ul><li>Online Index Operations </li></ul></ul><ul><ul><li>Online Restore </li></ul></ul><ul><ul><li>Parallel DBCC </li></ul></ul><ul><ul><li>Parallel Index Operations </li></ul></ul><ul><li>Management Tools </li></ul><ul><ul><li>MDX Query Editor </li></ul></ul><ul><ul><li>MDX Intellisense </li></ul></ul><ul><ul><li>T-SQL Intellisense </li></ul></ul><ul><ul><li>Version Control Support </li></ul></ul><ul><ul><li>XML/A </li></ul></ul><ul><ul><li>SQLCMD Command Line Tool </li></ul></ul><ul><li>Performance Tuning </li></ul><ul><ul><li>Profiler Enhancements </li></ul></ul><ul><ul><li>Profiling Analysis Services </li></ul></ul><ul><ul><li>Exportable Showplan </li></ul></ul><ul><ul><li>Exportable Deadlock Traces </li></ul></ul><ul><li>Full-text Search </li></ul><ul><ul><li>Indexing of XML Datatype </li></ul></ul><ul><li>MDAC </li></ul><ul><ul><li>Side by Side installation </li></ul></ul><ul><ul><li>Microsoft Installer based setup </li></ul></ul><ul><ul><li>Support for Active Directory Deployment </li></ul></ul><ul><li>SQL Client .NET Data Provider </li></ul><ul><ul><li>Server Cursor Support </li></ul></ul><ul><ul><li>Asynch </li></ul></ul><ul><li>Security </li></ul><ul><ul><li>All Permissions Grantable </li></ul></ul><ul><ul><li>Fine Grain Administration Rights </li></ul></ul><ul><ul><li>Separation of Users and Schema </li></ul></ul><ul><li>Replication </li></ul><ul><ul><li>Auto-tuning Replication Agents </li></ul></ul><ul><ul><li>Oracle Publication </li></ul></ul><ul><ul><li>Improved Blob Change Tracking </li></ul></ul><ul><li>OLAP and Data Mining </li></ul><ul><ul><li>Analysis Management Objects </li></ul></ul><ul><ul><li>Windows Integrated Backup and Restore </li></ul></ul><ul><ul><li>Web Service/XML for Analysis </li></ul></ul><ul><ul><li>DTS and DM Integration </li></ul></ul><ul><ul><li>Eight new DM algorithms </li></ul></ul><ul><ul><li>Auto Packaging and Deployment </li></ul></ul><ul><li>Data Transformation Services </li></ul><ul><ul><li>New Architecture (DTR + DTP) </li></ul></ul><ul><ul><li>Complex Control Flows </li></ul></ul><ul><ul><li>Control Flow Debugging </li></ul></ul><ul><ul><li>For Each Enumerations </li></ul></ul><ul><ul><li>Property Mappings </li></ul></ul><ul><ul><li>Full Data Flow Designer </li></ul></ul><ul><ul><li>Full DTS Control Flow Designer </li></ul></ul><ul><ul><li>Graphical Presentation of Pkg Execution </li></ul></ul><ul><ul><li>Immediate Mode and Project Mode </li></ul></ul><ul><ul><li>Package (Advanced) Deployment Tools </li></ul></ul><ul><ul><li>Custom Tasks and Transformations </li></ul></ul><ul><li>Reporting Services </li></ul><ul><ul><li>Multiple Output Formats </li></ul></ul><ul><ul><li>Parameters (Static, Dynamic, Hierarchical) </li></ul></ul><ul><ul><li>Bulk Delivery of Personalized Content </li></ul></ul><ul><ul><li>Support Multiple Data Sources </li></ul></ul><ul><ul><li>STS (Web Parts, Doc Libraries) </li></ul></ul><ul><ul><li>Visual Design Tool </li></ul></ul><ul><ul><li>Charting, Sorting, Filtering, Drill-Through </li></ul></ul><ul><ul><li>Scheduling, Caching </li></ul></ul><ul><ul><li>Complete Scripting Engine </li></ul></ul><ul><ul><li>Scale Out architecture </li></ul></ul><ul><ul><li>Open XML Report Definition </li></ul></ul><ul><li>Notification Services </li></ul>
  4. 4. New for the DBA Agenda <ul><li>Major SQL Server Subsystems </li></ul><ul><li>Monitoring </li></ul><ul><li>Security </li></ul><ul><li>Development </li></ul><ul><li>Availability </li></ul><ul><ul><li>Data Access Concurrency </li></ul></ul><ul><ul><li>Database Server Failure or Disaster </li></ul></ul><ul><ul><li>Database Maintenance and Operations </li></ul></ul><ul><li>Manageability </li></ul>
  5. 5. Major Subsystems <ul><li>Storage Engine </li></ul><ul><li>Analysis Services </li></ul><ul><ul><li>Cluster aware, multiple instances </li></ul></ul><ul><li>Notification Services </li></ul><ul><li>Reporting Services </li></ul><ul><li>SQL Server Agent </li></ul><ul><li>Fulltext Search </li></ul><ul><li>Service Broker </li></ul><ul><li>All have 32-bit and 64-bit versions </li></ul>
  6. 6. Storage - Partitioning <ul><li>Large tables and indexes can be more easily maintained (data scale-up) </li></ul><ul><ul><li>Example: Sales data separated by Quarter – you can back up each quarter individually (when each partition is in its own Filegroup) </li></ul></ul><ul><li>Take advantage of large machines (16-64 CPUs) (machine scale-up) </li></ul><ul><ul><li>Each CPU can work on its own partition independently </li></ul></ul><ul><li>Improved concurrency </li></ul><ul><ul><li>Lock escalation to partition </li></ul></ul>
  7. 7. SWITCHing Partition In Idea Q1 Q2 Q3 Q4 = Empty Table1 New Q4 Table2 ALTER TABLE Table2 SWITCH PARTITION TO Table1 PARTITION 4
  8. 8. SWITCH Partition Idea <ul><li>Exchange data between tables by SWITCHing the pointers to physical data locations </li></ul><ul><li>Designed to bring a partition of new data in or take partition of old data out of a partitioned table </li></ul><ul><li>Partitions can be created or dropped with virtually no loss of availability to the table </li></ul><ul><ul><li>Table fully available while loading, indexing a new partition </li></ul></ul><ul><ul><li>Create new and drop old partition quickly </li></ul></ul><ul><ul><li>Fastest possible load rates </li></ul></ul>
  9. 9. SQL Server Service Broker <ul><li>Guaranteed, asynchronous message queuing </li></ul><ul><ul><li>Sent or Received by internal or external processes </li></ul></ul><ul><ul><li>Fully transactional </li></ul></ul><ul><li>Queuing uses internal transactions </li></ul>Shipping as trigger during Order Shipping queued by trigger during Order } Additional capacity
  10. 10. New for the DBA Agenda <ul><li>Major Subsystems </li></ul><ul><li>Monitoring </li></ul><ul><ul><li>Virtual Tables </li></ul></ul><ul><ul><li>Server Events </li></ul></ul><ul><ul><li>Trace </li></ul></ul><ul><ul><li>Management Tools </li></ul></ul><ul><li>Security </li></ul><ul><li>Development </li></ul><ul><li>Availability </li></ul><ul><ul><li>Data Access Concurrency </li></ul></ul><ul><ul><li>Database Server Failure or Disaster </li></ul></ul><ul><ul><li>Database Maintenance and Operations </li></ul></ul><ul><li>Manageability </li></ul><ul><li>Scalability and Reporting </li></ul>
  11. 11. Virtual Tables <ul><li>System catalog has changed </li></ul><ul><li>‘ Tables’ that reflect the internal state </li></ul><ul><li>At least 25 new Virtual Tables to help DBAs </li></ul><ul><ul><li>Monitor the server </li></ul></ul><ul><ul><li>Diagnose problems </li></ul></ul><ul><li>Sys.waits is probably the best example </li></ul><ul><ul><li>Check first when server is making slow progress </li></ul></ul><ul><ul><li>syswaits columns </li></ul></ul><ul><ul><ul><li>waitingTask spid waitTime </li></ul></ul></ul><ul><ul><ul><li>waitType resource blockingTask </li></ul></ul></ul><ul><li>Sys.request_stats </li></ul>
  12. 12. Server Events <ul><li>Events fire on DML, DDL </li></ul><ul><ul><li>User can register to be notified when certain event occurs </li></ul></ul><ul><ul><li>User can register through WMI to be notified of certain DDL, DML, or trace events </li></ul></ul>
  13. 13. SQL Server Trace <ul><li>Significantly faster </li></ul><ul><ul><li>More practical to run traces regularly </li></ul></ul><ul><ul><li>More intuitive interface </li></ul></ul><ul><li>New Trace events </li></ul><ul><li>Refined security filtering of text by Trace to better show more statements, etc. </li></ul><ul><ul><li>Example: Doesn’t omit everything with ‘password’ in the text </li></ul></ul>
  14. 14. New Tools <ul><li>New integrated tools suite </li></ul><ul><ul><li>Support for all SQL Server products </li></ul></ul><ul><ul><ul><li>Including Analysis Services, SQLCE </li></ul></ul></ul><ul><ul><ul><li>SQL Workbench has intellisense, tips </li></ul></ul></ul><ul><ul><li>Support for SQL Server 7.0, 2000, and Yukon </li></ul></ul><ul><li>New operations capabilities </li></ul><ul><ul><li>SQL Server Agent </li></ul></ul><ul><ul><ul><li>Core performance and scalability enhancements </li></ul></ul></ul>
  15. 15. Performance Tools <ul><li>Profiler </li></ul><ul><ul><li>Profiling of Analysis Server </li></ul></ul><ul><ul><li>Showplan Events </li></ul></ul><ul><ul><li>Deadlock Events (graphical) </li></ul></ul><ul><li>Replay </li></ul><ul><ul><li>Improved multi-process replay </li></ul></ul>
  16. 16. Security <ul><li>User / Schema separation </li></ul><ul><li>Granular Permission control </li></ul><ul><ul><li>Can grant role-type permissions </li></ul></ul><ul><ul><ul><li>Example: Profiler access to non-SA </li></ul></ul></ul><ul><ul><li>Fixed roles are still available </li></ul></ul><ul><li>Password Policy enforcement </li></ul><ul><ul><li>Strong Passwords, expiration </li></ul></ul>
  17. 17. Programmability <ul><li>CLR (Common Language Runtime) Assemblies </li></ul><ul><ul><li>Can write Stored Procedures, Functions, Triggers, Data Types, Aggregates in any CLR programming language </li></ul></ul><ul><ul><li>Security Levels provide containment </li></ul></ul><ul><ul><ul><li>Safe, ExternalAccess, UnSafe </li></ul></ul></ul><ul><ul><li>Great replacement for XPs </li></ul></ul><ul><li>Synonym – Alternative name for an object </li></ul><ul><ul><li>Can change name or location (schema, database, or server) of base object </li></ul></ul><ul><ul><li>Can use a simple 1-part synonym name in place of the more complex 2-, 3-, or 4-part name of the base object </li></ul></ul><ul><li>User Defined Aggregate Functions </li></ul><ul><li>Multiple Active Results Sets </li></ul><ul><ul><li>Multiple results sets on a single connection </li></ul></ul><ul><ul><li>Don’t need to use cursors to do this anymore </li></ul></ul>
  18. 18. New for the DBA Agenda <ul><li>Major Subsystems </li></ul><ul><li>Configuration </li></ul><ul><li>Monitoring </li></ul><ul><li>Security </li></ul><ul><li>Development </li></ul><ul><li>Availability </li></ul><ul><ul><li>Data Access Concurrency </li></ul></ul><ul><ul><li>Database Server Failure or Disaster </li></ul></ul><ul><ul><li>Database Maintenance and Operations </li></ul></ul><ul><li>Manageability </li></ul><ul><li>Scalability and Reporting </li></ul>
  19. 19. Fast Recovery Restart or Restore <ul><li>SQL Server 2000 </li></ul><ul><ul><li>Database is available after Undo completes </li></ul></ul><ul><li>Yukon </li></ul><ul><ul><li>Database is available when Undo begins </li></ul></ul>Undo Redo Available Time Undo Redo Available
  20. 20. Database View <ul><li>Read-only, consistent copy of a database </li></ul><ul><ul><li>Good for reporting </li></ul></ul><ul><ul><li>Can rollback the actual database to Database View </li></ul></ul><ul><ul><ul><li>To correct user application error (or DBA error) </li></ul></ul></ul><ul><li>Unchanging as database is modified </li></ul><ul><li>Inexpensive </li></ul><ul><ul><li>Very fast to create </li></ul></ul><ul><ul><li>Cheap in terms of space </li></ul></ul><ul><ul><ul><li>“ Copy-on-Write” technology </li></ul></ul></ul><ul><li>Can be created for any database </li></ul><ul><ul><li>Production databases </li></ul></ul><ul><ul><li>Instant standby databases with Database Mirroring </li></ul></ul>
  21. 21. Snapshot Isolation <ul><li>New transaction isolation level </li></ul><ul><li>Increased Data Availability for read applications </li></ul><ul><ul><li>Allows Non-Blocking consistent reads in an OLTP environment </li></ul></ul><ul><ul><li>Writers don’t block readers </li></ul></ul><ul><ul><li>Readers don’t block writers </li></ul></ul><ul><li>Permits writes, which can cause conflicts </li></ul><ul><ul><li>BUT… includes mandatory conflict detection </li></ul></ul>
  22. 22. Online Index Operations <ul><li>Online index operations now allow concurrent modification of the underlying table or index </li></ul><ul><ul><li>Updates, Inserts, Deletes </li></ul></ul><ul><li>Online index maintenance </li></ul><ul><ul><li>Create, Rebuild, Drop, Disabling </li></ul></ul><ul><ul><li>Reorganize (including BLOBs) </li></ul></ul><ul><ul><li>Index-based constraints (PK, Unique) </li></ul></ul><ul><li>DDL is simple; both Online / Offline supported </li></ul><ul><li>Updates incur some additional cost during an online index operation </li></ul><ul><ul><li>Maintains old and new indexes </li></ul></ul>
  23. 23. Index Enhancements <ul><li>Rebuild of a Clustered Index no longer causes related Nonclustered Indexes to be rebuilt </li></ul><ul><li>Index with Included Columns </li></ul><ul><ul><li>Allows non-key columns to be included in the leaf level of an index </li></ul></ul><ul><ul><ul><li>Non-key columns aren’t included in key size limit </li></ul></ul></ul><ul><ul><li>More queries can be ‘covered’ by the index </li></ul></ul><ul><li>Disabled Indexes </li></ul><ul><ul><li>Stops index from being used and maintained </li></ul></ul><ul><ul><ul><li>Deallocates the storage space, but retains metadata </li></ul></ul></ul><ul><ul><ul><li>Index needs to be rebuilt before it can be used </li></ul></ul></ul><ul><ul><li>Easily rebuilt / reactivated with retained metadata </li></ul></ul><ul><ul><ul><li>ALTER INDEX … REBUILD </li></ul></ul></ul>
  24. 24. Database Mirroring <ul><li>Database Failover – an Instant Standby </li></ul><ul><ul><li>Very Fast … less than 3 seconds </li></ul></ul><ul><ul><li>Automatic or manual failover </li></ul></ul><ul><ul><li>Zero data loss </li></ul></ul><ul><ul><li>Automatic re-sync after failover </li></ul></ul><ul><li>Hardware </li></ul><ul><ul><li>Works with standard computers and storage </li></ul></ul><ul><ul><li>No shared storage components </li></ul></ul><ul><li>Impact to transaction throughput </li></ul><ul><ul><li>Zero to minimal </li></ul></ul><ul><li>Automatic, transparent client redirect !!! </li></ul><ul><li>Use Database View to make mirror database a readable reporting database </li></ul>
  25. 25. Database Mirroring How it works <ul><li>Transaction shipping </li></ul>Mirror Principal Witness Log Data Data Log Application SQL Server SQL Server 2 2 4 5 1 3 3-6 3-6
  26. 26. Dedicated Administration Connection <ul><li>Provides DBA access to server regardless of load </li></ul><ul><li>No server restart to kill runaway session </li></ul>
  27. 27. Fine-Grained Online Repairs <ul><li>Online Restore </li></ul><ul><ul><li>Database remains online </li></ul></ul><ul><ul><ul><li>Only data being restored is offline </li></ul></ul></ul><ul><ul><ul><li>Unit of availability is now the filegroup </li></ul></ul></ul><ul><li>Piecemeal Restore </li></ul><ul><ul><li>Online restore of filegroups by priority </li></ul></ul>
  28. 28. Media Reliability Features <ul><li>Enhanced Verification </li></ul><ul><ul><li>RESTORE VERIFYONLY now checks everything it can short of writing the data </li></ul></ul><ul><li>Backup Media Mirroring </li></ul><ul><ul><li>Redundant backup media helps guarantee successful restore </li></ul></ul><ul><ul><li>Extra copies for archival or disaster recovery </li></ul></ul><ul><li>Database Page Checksums </li></ul><ul><ul><li>Detect disk I/O errors not reported by the hardware or operating system </li></ul></ul><ul><li>Backup Checksums </li></ul><ul><ul><li>Detect errors introduced by backup hardware but not reported by hardware or operating system </li></ul></ul><ul><ul><li>Can continue past errors – repair later </li></ul></ul>
  29. 29. Backup and Restore <ul><li>Data backups don’t block log backups </li></ul><ul><ul><li>Backup the database and the log concurrently </li></ul></ul><ul><ul><li>Backup files / filegroups and the log concurrently </li></ul></ul><ul><ul><li>Only one data backup at a time per database </li></ul></ul><ul><li>Backup / Restore includes FullText data </li></ul>
  30. 30. New for the DBA <ul><li>Questions ? </li></ul>
  31. 31. © 2003 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. MICROSOFT MAKES NO WARRANTIES, EXPRESS OR IMPLIED, IN THIS SUMMARY.

×