SQL Server 2008 R2 RTM CU10

Microsoft has released SQL Server 2008 R2 RTM Cumulative Update 10. This is Build 10.50.1807.0, and it has 13 listed fixes. You must have SQL Server 2008 R2 installed before you can install this Cumulative Update.

As always, I want to remind everyone that this update is only for SQL Server 2008 R2 (which is a separate major release from SQL Server 2008).

Especially since Microsoft added some new functionality (such as some new DMVs) to SQL Server 2008 R2 SP1, you really should be making your plans to get on the SQL Server 2008 R2 SP1 branch, instead of staying on the RTM release branch.

Posted in Microsoft, SQL Server 2008 R2 | Tagged | Leave a comment

SQL Server 2008 R2 SP1 CU3

Microsoft has released SQL Server 2008 R2 SP1 Cumulative Update 3. This is Build 10.50.2789.0, and it has 22 listed fixes. You must have SQL Server 2008 R2 SP1 installed before you can install this Cumulative Update. Especially since Microsoft added some new functionality (such as some new DMVs) to SQL Server 2008 R2 SP1, you really should be making your plans to get on the SQL Server 2008 R2 SP1 branch.

As always, I want to remind everyone that this update is only for SQL Server 2008 R2 (which is a separate major release from SQL Server 2008).

The Build matrix below makes the relationship between the builds a little more clear.

-- SQL Server 2008 R2 Builds                SQL Server 2008 R2 SP1 Builds
-- Build            Description                Build        Description
-- 10.50.1092        August 2009 CTP2        
-- 10.50.1352        November 2009 CTP3
-- 10.50.1450        Release Candidate
-- 10.50.1600        RTM
-- 10.50.1702        RTM CU1
-- 10.50.1720        RTM CU2
-- 10.50.1734        RTM CU3
-- 10.50.1746        RTM CU4
-- 10.50.1753        RTM CU5
-- 10.50.1765        RTM CU6  --->            10.50.2500  SP1 RTM
-- 10.50.1777        RTM CU7
-- 10.50.1797        RTM CU8  --->            10.50.2769  SP1 CU1
-- 10.50.1804        RTM CU9  --->            10.50.2772  SP1 CU2
-- 10.50.1807        RTM CU10 --->            10.50.2789  SP1 CU3

Personally, I like to try to stay current on Cumulative Updates as much as I can.

Posted in Microsoft, SQL Server 2008 R2 | Tagged | Leave a comment

Scaling SQL Server

On Friday, October 14, 2011,  I had the pleasure of delivering my new Scaling SQL Server presentation at the PASS Summit 2011 in Seattle. This was a half-day session, so I had plenty time to present the material and not have to feel like I was rushing through the session.

It also gave me more time to answer questions during the presentation. I got a lot of positive feedback during the break, and people seemed to enjoy the session. We will see when the session evaluations are released…

Here is the abstract:

How can you scale SQL Server? Scaling up is relatively easy (but can be expensive), while scaling out requires significant engineering time and effort. If you suggest hardware upgrades you may be accused of simply “throwing hardware at the problem”, and if you try to scale out, you may be thwarted by a lack of development resources or 3rd party software restrictions. As your database server nears its load capacity, what can you do? This session gives you concrete, practical advice on how to deal with this situation. Starting with your present workload, configuration and hardware, we will explore how to find and alleviate bottlenecks, whether they are workload related, configuration related, or hardware related. Next, we will cover how you can decide whether you should scale up or scale out your data tier. Once that decision is made, you will learn how to scale up properly, with nearly zero down-time. If you decide to scale out, you will learn about practical, production-ready techniques such as vertical partitioning, horizontal partitioning, and data dependent routing. We will also cover how to use middle-tier caching and other application techniques to increase your overall scalability.

You can get the PowerPoint for this session from Dropbox here. You can get an even deeper dive into much of the subject from my book, available here.

PASS_2011_SpeakingButton_180x180-black

Posted in PASS, SQL Server 2008 R2, SQL Server 2012 | Tagged | Leave a comment

Liveblog for Day 2 Keynote at SQL PASS Summit 2011

There are four racks of servers and storage on stage for today’s keynote complete with roaring fans and flashing lights. This means that we are very likely in for some more interesting demonstrations during the keynote presentations today.

It is amazing how many people are here for the keynote and the high energy level in the room. Very nice job over the past year by Lori Edwards (@loriedwards) who was awarded the 2011 PASSion award at the SQL PASS Summit 2011.

Bob Erickson, from Interlink was up on stage to talk about their production usage of SQL Server AlwaysOn.  There was actually a demo of this to go with the testimonial.

Columnstore indexes (aka Apollo) was mentioned, (but not demonstrated) during Quentin Clark’s keynote. That is too bad, since it is a very impressive technology. Later, there was a quick demo of a Columnstore index query, complete with some T-SQL code, which was great!

Overall, the Day 2 Keynote was a big improvement over Day 1.

Posted in PASS | Tagged | Leave a comment

Liveblog for Day 1 Keynote at SQL PASS 2011

It is hard to live tweet or live blog when the Wi-Fi is not working reliably. The keynote starts out with a speech from the PASS President, covering PASS business.

Ted Kummert announced that SQL Server Denali will be SQL Server 2012, to be released in the first half of 2012. That is a little later than I had been privately predicting, but I would rather it wait until it is 100% done and solid.

There was a good demo of HiveGL and Hadoop integrating with PowerPivot from Microsoft’s Denny Lee.

Next, we get a demo of SQL Data Explorer, which did not get much love from the live tweeters and live bloggers. So far we have not seen any demos about SQL Server 2012…

Now, we get Amir Netz, a newly minted Technical Fellow from Microsoft on stage. He is always a good presence for demos. He is showing Power View (aka Crescent).

Posted in PASS | Tagged | Leave a comment

Hardware 301: Diving Deeper into Database Hardware

On Wednesday, October 12, at 10:15AM, I am going to get the pleasure of presenting my Hardware 301: Diving Deeper into Database Hardware Spotlight session at the PASS Summit 2011 in Seattle. This will be a 90 minute session, so I will have a little more time to present the material and not have to feel like I am rushing through the session.

Here is the abstract for the session:

Making the right hardware selection decisions is extremely important for database scalability. Having properly sized and configured hardware can both increase application performance and reduce capital expenses dramatically. Unfortunately, there are so many different choices and options available when it comes to selecting hardware and storage subsystems, it is very easy to make bad choices based on outmoded conventional wisdom. This session will give you a framework for how to pick the right hardware and storage subsystem for your workload type. You will learn how to evaluate and compare key hardware components, such as processors, chipsets, and memory. You will also learn how to evaluate and compare different types of storage subsystems for different database workload types. This session will give you the knowledge you need to make sure you get the best performance and scalability possible from your hardware budget!

You can get the PowerPoint for this session from Dropbox here. You can get an even deeper dive into the subject from my book, available here. I hope to see you there on Wednesday morning!

PASS_2011_SpeakingButton_180x180-black

Posted in Computer Hardware, SQL Server 2008 R2, Storage Subsystems, Teaching | Tagged | Leave a comment

New and Improved DMVs in SQL Server 2008 R2 SP1

With relatively little fanfare, Microsoft added a few new DMVs into the SQL Server 2008 R2 SP1 release, which came out a few months ago. They also added some new columns to at least one existing DMV (sys.dm_os_sys_info).

Some of these could be pretty useful for basic diagnostic purposes. Just keep in mind that you must have SQL Server 2008 R2 SP1 (or later) installed for these to work.

I have some examples of these in the code block below:

-- New DMVs SQL Server 2008 R2 Service Pack 1
-- Glenn Berry 
-- October 2011
-- https://sqlserverperformance.wordpress.com/
-- Twitter: GlennAlanBerry

-- Windows information from SQL Server 2008 R2 SP1
SELECT windows_release, windows_service_pack_level, 
       windows_sku, os_language_version
FROM sys.dm_os_windows_info;

-- SQL Server Services information from SQL Server 2008 R2 SP1
SELECT servicename, startup_type_desc, status_desc, 
last_startup_time, service_account, is_clustered, cluster_nodename
FROM sys.dm_server_services;


-- Volume info for all databases on the current instance
SELECT DB_NAME(f.database_id) AS [DatabaseName], f.file_id, 
vs.volume_mount_point, vs.total_bytes, vs.available_bytes
FROM sys.master_files AS f
CROSS APPLY sys.dm_os_volume_stats(f.database_id, f.file_id) AS vs
ORDER BY f.database_id;


-- Volume info for the current database
SELECT database_id, f.file_id, volume_mount_point, total_bytes, available_bytes
FROM sys.database_files AS f
CROSS APPLY sys.dm_os_volume_stats(DB_ID(), f.file_id);


-- SQL Server Registry information from SQL Server 2008 R2 SP1
SELECT registry_key, value_name, value_data
FROM sys.dm_server_registry;


-- Hardware information from SQL Server 2008 R2 SP1
SELECT cpu_count AS [Logical CPU Count], hyperthread_ratio AS [Hyperthread Ratio],
cpu_count/hyperthread_ratio AS [Physical CPU Count], 
physical_memory_in_bytes/1048576 AS [Physical Memory (MB)], 
sqlserver_start_time , affinity_type_desc, virtual_machine_type_desc 
FROM sys.dm_os_sys_info;

You should give these a try.

Posted in SQL Server 2008 R2 | Tagged , | 5 Comments

Microsoft Releases SQL Server 2008 SP3 RTM

Microsoft has released the final, RTM version of SQL Server 2008 Service Pack 3. This is build 10.00.5500. It includes the fixes up to the point of SQL Server 2008 SP2 CU4 (Build 4285).

That means that (as usual) if you are on a newer SQL Server 2008 SP2 Cumulative Update than CU4, you should wait for the first CU for SQL Server 2008 SP3 to be released before you apply SQL Server 2008 SP3. Here is the fix list for SP3.

The SQL Server 2008 Build list below might make the relationship between the different branches more clear.

-- SQL Server 2008 RTM is considered an "unsupported service pack" as of April 13, 2010
-- SQL Server 2008 RTM Builds   SQL Server 2008 SP1 Builds     SQL Server 2008 SP2 Builds        SQL Server 2008 SP3 Builds
-- Build       Description      Build       Description           Build     Description            Build        Description
-- 1600        Gold RTM
-- 1763        RTM CU1
-- 1779        RTM CU2
-- 1787        RTM CU3    -->    2531        SP1 RTM
-- 1798        RTM CU4    -->    2710        SP1 CU1
-- 1806        RTM CU5    -->    2714        SP1 CU2 
-- 1812        RTM CU6    -->    2723        SP1 CU3
-- 1818        RTM CU7    -->    2734        SP1 CU4
-- 1823        RTM CU8    -->    2746        SP1 CU5
-- 1828        RTM CU9    -->    2757        SP1 CU6
-- 1835        RTM CU10   -->    2766        SP1 CU7
-- RTM Branch Retired     -->    2775        SP1 CU8     -->  4000       SP2 RTM
--                               2789        SP1 CU9
--                               2799        SP1 CU10    
--                               2804        SP1 CU11    -->  4266       SP2 CU1        
--                               2808        SP1 CU12    -->  4272       SP2 CU2    
--                               2816        SP1 CU13    -->  4279       SP2 CU3    
--                               2821        SP1 CU14    -->  4285       SP2 CU4    -->                5500        SP3 RTM
--                               2847        SP1 CU15    -->  4316       SP2 CU5
--                               2850        SP1 CU16    -->  4321       SP2 CU6                   
Posted in Microsoft, SQL Server 2008 | Tagged | 2 Comments

September 2011 SQL Server 2008 Instance Level Diagnostic Queries

Since it is late September, I thought it would be a good time to release an updated set of Diagnostic queries that focus completely on SQL Server instance level metrics. These queries go a little deeper into the Instance level metrics than the combined Diagnostic Information Queries.

My previous DMV Diagnostic Queries are split between a number of instance level queries in the first half of the script, and then a number of database specific queries in the second half of the script. This is problematic if you have a large number of user databases running on your instance, since you would end up running the instance level queries multiple times (if you decided to run the complete diagnostic set for each user database).

Another problem is that many people who ran the complete set of old diagnostic queries would forget to change their database context to a specific database for the database specific queries, leaving it pointing at the master database. This meant that they would get a lot of pretty useless information about the master database.

This new set of Instance Level Diagnostic Queries is designed to be run first when you are investigating the configuration and performance of a SQL Server instance. Then, guided by the results of these queries, you will be able to run an upcoming set of separate Database specific diagnostic queries against the most interesting databases on the instance.

Many of these queries are DMV queries that require VIEW SERVER STATE permission in order to run. After all of this introduction, the September 2011 SQL Server 2008 Instance Level Diagnostic Queries are available to download from DropBox here.

The idea here is that you should read the comments for each query, then run each query one at a time, and look at the results as you look at my comments on how to interpret the results.

Posted in SQL Server 2008, SQL Server 2008 R2 | Tagged , | 6 Comments

SQL Server MVP Deep Dives, Volume 2 Available at PASS 2011 Summit

Volume 2 of the SQL Server MVP Deep Dives book is now available for pre-order from Amazon and from Manning. This book has all new content, rather than just an update or refresh of Volume 1. Just like the first volume, all author royalties are being donated to a charity, which in this case is Operation Smile.  Nearly 60 SQL Server MVPs contributed chapters, and did technical reviews of other chapters in the book. I wrote Chapter 31, which is “Hardware 201: Selecting and Sizing Database Server Hardware” .

If you are going to be at the PASS 2011 Summit, it will be available at the bookstore. There are supposed to be at least two book signing events for this book during the Summit, with many of the authors in attendance. I fondly remember the Volume 1 book signing event at PASS 2009, which was in the Expo hall, with the authors standing at a long table, signing copies and talking to people as they filed by. It was a lot of fun, even though I got writers cramp…  I hope to see lots of people at PASS this year, and if you want me to scribble an autograph on a book, just ask me!

 

image

 

image

Posted in Microsoft, PASS, SQL Server 2008, SQL Server 2008 R2, SQL Server Denali | Tagged | 1 Comment