Presentation is loading. Please wait.

Presentation is loading. Please wait.

Amit Shukla, Michael Wang SQL Server Engineering Team Microsoft Session Code: DAT201.

Similar presentations


Presentation on theme: "Amit Shukla, Michael Wang SQL Server Engineering Team Microsoft Session Code: DAT201."— Presentation transcript:

1

2 Amit Shukla, Michael Wang SQL Server Engineering Team Microsoft Session Code: DAT201

3 Agenda Best practices Connect with SQL Server product team SQL Server Futures

4 Part I: Building great solutions using an increasingly feature rich product is hard!

5 You are looking for guidance on how to best architect your applications difficult to pick the right technologies for your application Learn how to better integrate SQL Server 2008 features into common scenarios

6 Turn on Data Compression RowPage Compression white paper

7 The general guideline is to use “ROW” compression for OLTP 2% - 5% CPU 20% Compression Compression white paper

8 The general guideline is to use “PAGE” compression for Data Warehousing 10% - 15% CPU 60% - 70% Compression Compression white paper Data Warehousing white paper

9 Backup compression Backup Compression

10 Use Resource Governor to prevent runaway queries Resource Governor by ExampleBackup Admin Tasks Backup OLTP Activity High High Admin Workload OLTP Workload Min Memory 10% Max Memory 20% Max CPU 20% Min Memory 10% Max Memory 20% Max CPU 20% Max CPU 90% Admin Pool Application Pool

11 Use MERGE for ETL SQL Server 2005SQL Server 2008 MERGE StockTable st USING TradesTable tt ON st.stock = tt.stock WHEN MATCHED THEN UPDATE SET st.quantity += tt.quantity WHEN NOT MATCHED THEN INSERT (stock, quantity) VALUES (tt.stock, tt.quantity) ; IF StockTable contains stock UPDATE quantity from TradesTable ELSE INSERT row into StockTable How to use MERGE

12 Predictable Performance and Concurrency Lock Escalation Plan Freezing Ad hoc workloads

13 Details of lock escalation Partition level lock escalation

14 Use improved Plan Freezing mechanisms Understanding plan guides

15 Use improved Plan Freezing mechanisms Understanding plan guides

16 Use improved Plan Freezing mechanisms Understanding plan guides

17 Optimize SQL Server 2008 for ad hoc workloads

18 Use Sparse Columns to store data efficiently Optimize NULLs White paper

19 Use Filtered Indexes to improve query performance by indexing efficiently White paper

20 Use TVP to perform large data set loading White paperBatchingBatching

21

22 Use the best practices site to learn how to take advantage of new features http://technet.microsoft.com/en-us/sqlserver/bb331794.aspx

23 The site contains whitepapers More white papers at: http://www.microsoft.com/sqlserver/2008/en/us/white-papers.aspx http://sqlcat.com/whitepapers/default.aspx

24

25 Part II: How can I get SQL Server to help me?

26 The product team seems to operate in isolation

27 Use some of the large variety of ways to communicate with the product team

28

29 Enhancements to the OVER clause are popular

30

31 Use Other Feedback Channels

32 TLC is the feedback mechanism at TechEd

33 Ask your questions using MSDN Forums

34 Use Formal Feedback Channels

35 Visit our customer lab

36 Get invited to a System Design Review

37

38 Our automated data gathering identifies feature usage and bugs

39 You can opt-in for anonymous & automated gathering of feature usage

40 Some 2008 feature usage collected: Editions and hardware configuration

41 SQL Server 2008: Data type usage Increasing usage Sparse Time Geometry Geography Date

42 SQL Server 2008: Objects per database

43 You can opt-in to report crashes and unexpected errors

44 Bugs are automatically filed by Watson and tracked by bucket and IP address

45 Bugs appear in Product team’s bug database automatically

46

47

48 You can now declare and set a variable OLD DECLARE @v INT; SET @v = 5; NEW DECLARE @v INT = 5;

49 You now have to type fewer characters when adding a variable to itself OLD UPDATE Tbl SET c1 = c1 + 5 WHERE c1 < 10; NEW UPDATE Tbl SET c1 += 5 WHERE c1 < 10; This also works for *, -, /

50 We made inserting multiple rows into a table much easier OLD INSERT INTO @customers (custid,name) VALUES (1, 'cust 1'); INSERT INTO @customers (custid,name) VALUES (2, 'cust 2'); INSERT INTO @customers (custid,name) VALUES (3, 'cust 3'); INSERT INTO @customers (custid,name) VALUES (4, 'cust 4'); INSERT INTO @customers (custid,name) VALUES (5, 'cust 5'); NEW INSERT INTO @customers (custid, name) VALUES (1, 'cust 1'), (2, 'cust 2'), (3, 'cust 3'), (4, 'cust 4'), (5, 'cust 5');

51 We made using a constant table super easy as well! OLDNEW SELECT * FROM ( VALUES (1, 'cust 1'), (2, 'cust 2'), (3, 'cust 3'), (4, 'cust 4'), (5, 'cust 5') ) MyCustomers(custid, name); DECLARE @customers TABLE (custid INT, name VARCHAR(20)) INSERT INTO @customers (custid,name) VALUES (1, 'cust 1'); INSERT INTO @customers (custid,name) VALUES (2, 'cust 2'); INSERT INTO @customers (custid,name) VALUES (3, 'cust 3'); INSERT INTO @customers (custid,name) VALUES (4, 'cust 4'); INSERT INTO @customers (custid,name) VALUES (5, 'cust 5'); SELECT * FROM @customers;

52 Part III: Give you a glimpse into what is coming up in SQL Server 2008 R2

53 2008 R2 will have support for 256 logical processors

54 2008 R2 will support Unicode compression CompressCompress

55 Themes That Remain Unchanged From Release to Release Enterprise data platform Dynamic development Beyond Relational Pervasive Insight

56 Summary Best practices Connect with SQL Server product team SQL Server Futures

57 Call to Action Get in touch with the SQL Development Team Leverage the mechanisms available to provide feedback to Microsoft Participate in the Customer Experience Improvement Program, Error Reporting Visit TLC – we want to hear from you! Leverage the “Delighters” in SQL Server 2008 Help us make SQL Server even better. Help us make SQL Server work for you!

58 SQL Server Word of the Day POLICY-BASED MANAGEMENT Monday, May 11 *Game cards may be picked up at the SQL Server booths in the TLC

59

60 SQL Server Community Resources Become a FREE PASS Member: www.sqlpass.org/RegisterforSQLPASS.aspxwww.sqlpass.org/RegisterforSQLPASS.aspx Learn more about the PASS organization www.sqlpass.org/www.sqlpass.org/ Additional Community Resources SQL Server Community Center www.microsoft.com/sqlserver/2008/en/us/community-center.aspx www.microsoft.com/sqlserver/2008/en/us/community-center.aspx TechNet Community for IT Professionals http://technet.microsoft.com/en-us/sqlserver/bb671048.aspx Developer Center http://msdn.microsoft.com/en-us/sqlserver/bb671064.aspx SQL Server 2008 Learning Portal http://www.microsoft.com/learning/sql/2008/default.mspx http://www.microsoft.com/learning/sql/2008/default.mspx Connect: Local Chapters, Special Interest Groups, Online Community Share: PASSPort Social Networking, Community Connection Event Learn: PASS Summit Annual Conference, Technical Articles, Webcasts More about the PASS organization www.sqlpass.org/www.sqlpass.org/ Connect: Local Chapters, Special Interest Groups, Online Community Share: PASSPort Social Networking, Community Connection Event Learn: PASS Summit Annual Conference, Technical Articles, Webcasts More about the PASS organization www.sqlpass.org/www.sqlpass.org/ The Professional Association for SQL Server (PASS) is an independent, not-for-profit association, dedicated to supporting, educating, and promoting the Microsoft SQL Server community.

61 Additional Resources External Resources http://sqlcat.com http://blogs.msdn.com/sqlcat http://blogs.msdn.com/mssqlisv http://technet.microsoft.com/en-us/sqlserver/bb331794.aspx www.sqlserverinternals.com/books.html SQL Server 2008 Business Value Calculator: www.moresqlserver.com

62 Related Content DAT320-Breakout: Optimizing Microsoft SQL Server 2008 Applications Using Table Valued Parameters, XML, and MERGE DAT04-TLC: Using the HIERARCHYID Datatype in Microsoft SQL Server 2008 to Maintain and Query Hierarchies DAT313-Breakout: Inside T-SQL: 2008 Enhancements, Techniques, Tips & Tricks DAT304-Breakout: Auditing in Microsoft SQL Server 2008 DAT321-Breakout: Taking Your Database beyond Relations with Microsoft SQL Server 2008 DAT302-Breakout: All You Need to Know about Microsoft SQL Server 2008 Failover Clusters DAT317-Breakout: Microsoft SQL Server 2008 Data Warehousing by Demonstration

63 www.microsoft.com/teched Sessions On-Demand & Community http://microsoft.com/technet Resources for IT Professionals http://microsoft.com/msdn Resources for Developers www.microsoft.com/learning Microsoft Certification and Training Resources www.microsoft.com/learning Microsoft Certification & Training Resources Resources Required Slide Speakers, TechEd 2009 is not producing a DVD. Please announce that attendees can access session recordings at TechEd Online. Required Slide Speakers, TechEd 2009 is not producing a DVD. Please announce that attendees can access session recordings at TechEd Online.

64 Complete an evaluation on CommNet and enter to win! Required Slide

65 © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION. Required Slide


Download ppt "Amit Shukla, Michael Wang SQL Server Engineering Team Microsoft Session Code: DAT201."

Similar presentations


Ads by Google