Troubleshooting memory problems in SQL Server 2008 - webcast now available
02 February 10 09:24 AM | Christian | 2 comment(s)

My session from SQLBits V in November 2009 titled “Strapped for Cache: Troubleshooting memory problems in SQL Server 2008” is now available as free webcast from the SQLBits website: http://tinyurl.com/yb2t2v5

Brent Ozar also posted a great write-up of the session on his blog which you can find here: http://tinyurl.com/ybqrccj

The presentation was based on information that I wrote in the memory chapter of my latest book, Professional SQL Server 2008 Internals and Troubleshooting so if you find the session useful you might want to check out the rest of the content in the book.

Regards,

Christian Bolton  - MCA: SQL Server 2005, MCM: SQL Server 2005/2008, MVP
Technical Director
http://coeo.com - SQL Server Consulting & Managed Services

image

Removing large numbers of peer to peer conflicts in SQL Server 2008
04 January 10 11:24 AM | Christian | 1 comment(s)

SQL Server 2008 introduced conflict detection for peer-to-peer replication which works great and we’ve configured automatic resolution for one of our customers where the server at HQ always wins any conflict.

The architecture suffers from lots of benign conflicts that are always resolved correctly so we don’t interrupt replication when one occurs.  The problem is that we now have over 500,000 conflicts logged for one of the tables due to a nasty nested trigger problem.

The built-in Microsoft Replication Conflict Viewer is used to view and remove old conflicts but can’t handle that many so I had to do some tracing to get the system SP’s involved to run them directly.

To save anyone else the hassle of investigating this, here is the stored procedure:

-- Deletes all rows in the conflict table
exec sp_MSdeletepeerconflictrow
@conflict_table = N'[dbo].[conflict_dbo_<tblName>]'

 

Regards,

Christian Bolton  - MCA: SQL Server 2005, MCM: SQL Server 2005, MVP
Technical Director
http://coeo.com - SQL Server Consulting & Managed Services

SQLPASS London UG on 24th Nov with Christian Bolton and Simon Sabin
23 November 09 02:50 PM | Christian | with no comments

Simon Sabin and I will be presenting at the next London UG tomorrow night at:

NYSE Euronext
Cannon Bridge House
1 Cousin Lane
London
EC4R 3XX

(nearest tube is Cannon Street)

We’ve got some great content to cover so if you’re around it will definitely be worth a visit. The meeting runs from 18:00-21:00. Here is the agenda:

Optimising tempdb and Temporary Object Re-use
Presented by Christian Bolton, Technical Director, Coeo, Ltd.
Microsoft Certified Architect (MCA), Master (MCM), and MVP for SQL Server
This session will cover how and why you should configure tempdb, how to troubleshoot tempdb issues, and how to detect resolve, and mitigate allocation contention issues by creating multiple data files, optimizing temporary object reuse, and using trace flag 1118.

Strategies for Generating and Optimizing SQL Server Query Plan for Maximum Performance
Presented by Simon Sabin, SQL Server Consultant
Microsoft MVP for SQL Server
This session will explore useful techniques for improving queries in Microsoft SQL Server. There are always a large number of tips and techniques applicable in narrow classes of programming tasks, each one offering a small improvement in performance. Knowing as many of these tuning tricks and techniques as possible expands your options when tuning for performance. In addition, knowing an effective process for analyzing query performance and behaviour is an essential skill for any SQL Server professional.

You can register here: http://www.sqlpass.org.uk/

 

Regards,

Christian Bolton  - MCA: SQL Server 2005, MCM: SQL Server 2005, MVP
Technical Director
http://coeo.com - SQL Server Consulting & Managed Services

Coeo SQLBits 5 sessions now available
23 November 09 12:05 PM | Christian | 1 comment(s)

Thank you very much to the SQLBits organizers for the best SQLBits ever at the weekend! The get better every time but this time they put the conference into a different league. Well done guys!

We’ve uploaded the slides and demos scripts for all four of the Coeo sessions to our website for you to download here: http://coeo.com/sql-server-events/sql-server-conferences.html

As a reminder, here are the titles and agendas:

Strapped for Cache? Troubleshooting memory problems in SQL Server 2008 By Christian Bolton

  • Physical vs. Virtual Memory SQLBitsStrappedForCache
  • What uses SQL Server’s Virtual Memory?
  • MemToLeave
  • What happens when SQL Server starts? 
  • SQL Server’s Memory Model
  • Memory Nodes, Clerks, Caches, and Pools
  • Data Cache, Plan Cache
  • Best Practices

Virtualising SQL Server By Justin Langford

  • Business and technical drivers
  • Why virtualise? SQLBitsVirtual
  • Project goals, benefits and pitfalls
  • Virtualisation planning
  • Special aspects of SQL Server's resource requirements
  • SQL Instance design
  • Virtualisation Design and implementation
  • Considerations for solution design
  • Using Virtualisation to provide High Availability
  • Configuration optimisations
  • Potential issues and solutions
  • Troubleshooting SQL Server on virtualised platforms

Vital Statistics By Christian Bolton

  • The need for Statistics SQLBitsVitalStats
  • What they are and what they look like
  • How and when statistics are created
  • When to manually create statistics
  • How and when statistics are updated
  • What you should be doing
  • New features for SQL Server 2005 and 2008
  • Upgrading SQL Server

Server Consolidation with SQL Server By Justin Langford

  • Business and technical drivers
  • Why consolidate?
  • Type of consolidation (physical, storage, geographic)
  • Planning and considerations SQLBitsConsolidation
  • Key considerations (SQL Server behaviour/ characteristics in shared environments disk/ CPU/ memory)
  • Designing SQL instance and common configurations
  • Guiding principles for consolidation Design and implementation
  • Consolidation process
  • Migration Techniques
  • Potential issues and solutions
  • Shared components (schedulers, buffer pool, procedure cache, disk IO, tempdb)
  • Using Windows Server Resource Manager or Resource Governor

The sessions were also filmed by Microsoft so I’ll update this post with the links when they’ve been edited and made available.

Regards,

Christian Bolton  - MCA: SQL Server 2005, MCM: SQL Server 2005, MVP
Technical Director
http://coeo.com - SQL Server Consulting & Managed Services

Webcast Now On Demand: The 5-Minute SQL Server Healthcheck
16 November 09 08:59 PM | Christian | 5 comment(s)

I joined Kevin Kline from Quest on Thursday for a webcast on "The 5-minute SQL Server Healthcheck" which is now available online.  I hope you find it useful!

 

http://www.quest.com/events/listdetails.aspx?contentid=10581&technology=34&prod=&prodfamily=&loc=

 

Regards, 

 

Christian Bolton  - MCA: SQL Server 2005, MCM: SQL Server 2005, MVP
Technical Director
http://coeo.com - SQL Server Consulting & Managed Services

Coeo presenters at SQLBits V
13 November 09 01:28 PM | Christian | with no comments


We’re very proud to be sponsoring SQLBits again next week in Newport, Wales and thrilled to have been invited to speak at the event once again.  We’re delivering 4 sessions in all so I wanted to give them a quick plug before you all start building your agendas: 

Friday 20th November

2:40pm-3:40pm
Strapped for cache? – Troubleshooting memory problems in SQL Server 2008Christian Bolton
Learn the terminology, architecture, features, and best practices that can help you understand, troubleshoot and avoid memory
problems in SQL Server 2008.

4:00pm-5:00pm
Virtualising SQL ServerJustin Langford
This session provides attendees with details on how to approach a SQL Server virtualisation project.  Discussing topics central
to server virtualisation such as performance and scalability considerations.

Saturday 21st November

2:40pm-3:40pm
Vital StatisticsChristian Bolton
In this session I will be exploring the role that statistics play in query optimization covering how and when they are created, what they look like, how they are updated, and what scenarios will benefit from you creating them yourself.

4:00pm-5:00pm
Server consolidation with SQL ServerJustin Langford
This session will provide attendees with an insight into running a SQL Server consolidation project.  We will cover the crucial points to ensure successful server consolidation from both technical and business perspectives.

Regards, 

Christian Bolton  - MCA: SQL Server 2005, MCM: SQL Server 2005, MVP
Technical Director
http://coeo.com - SQL Server Consulting & Managed Services

New book close to release and a return to blogging
13 November 09 10:18 AM | Christian | with no comments
I've been pretty rubbish at blogging over the last 9 months or so but I've got a good excuse; I’ve been hard at work putting together a new book with a few other SQL Server bods and I’m very pleased to say that we are just about done JThe book is called Professional SQL Server 2008 Internals and Troubleshooting.  We designed it in two parts: Part 1 deals with internals information on SQL Server, Windows, and Hardware to enable you to work effectively with the troubleshooting tools covered in Part 2 which include SQLDiag, PerfStats, SQLNexus and the Management Data Warehouse.The book will be published under the Wrox brand owned by Wiley and it’ll be one of the first releases in their jazzy new format.  We’ve just finalized the cover which you can see below and its available for pre-order on Amazon now with an expected release date of around 22nd December (if everything stays on track).

Now that’s out the way I’m looking forward to getting back to blogging.  We’ve got some amazing stuff in the book but there’s still a ton of stuff I just didn’t have time to include which gives me lots of ideas for blog posts! Watch this space...

Professional SQL Server 2008 Internals and Troubleshooting 

 

 

 

 

 

 

 

 

 

 

 

 

  

    

Order from amazon.com: http://tinyurl.com/yerhl7t

Order from amazon.co.uk: http://tinyurl.com/ydtubhf

I'll blog more about the book's content closer to the release date!

 

Christian Bolton  - MCA: SQL Server 2005, MCM: SQL Server 2005, MVP
Technical Director
http://coeo.com - SQL Server Consulting & Managed Services

SQL Server Standard 'Lock pages in memory' workaround coming soon...
24 April 09 10:47 AM | Christian | with no comments
Bob Ward just announced at European SQL PASS that you'll be able to use the 'lock pages in memory' workaround in SQL Server Standard Edition to resolve working set trimming issues. In the next CU releases for SQL Server 2005 and 2008 you'll be able to enable it with a trace flag. Up to now its only been available on Enterprise Edition much to the chagrin of Standard Edition customers so I'm sure it'll be a popular move! He's just promised to try and blog on it this afternoon. Regards, Christian Bolton - MCA: SQL Server 2005, MCM: SQL Server 2005, MVP Database Architect http://coeo.com - SQL Server Consultants & Remote DBA Services
FREE one-day seminar on Optimising SQL Server Performance
08 March 09 01:54 PM | Christian | with no comments

I’m going to be joining Quest Software on 24th March for a seminar on Optimising SQL Server Performance at the Quest offices in Maidenhead, Berkshire.  Attendance is FREE and you’ll get a chance to try out Quest’s product range with hands-on-labs:

BOOK YOUR PLACE HERE: http://www.quest-software.co.uk/ExpertsDay-Performance-032409-Coeo

A Day with the Experts Seminar: Optimising SQL Server Performance

As a database administrator you must be able to proactively diagnose and resolve bottlenecks and scalability issues that threaten productivity. Since production database environments constantly change, DBAs have a lot of to keep track of:

  • Establish benchmarks to understand the load and throughput their database systems can handle
  • Collect metrics and monitor activity around the clock
  • Perform real-time and historical analysis to detect issues and determine proper action plans
  • Maintain operational integrity and end-user satisfaction, while avoiding costly production slowdowns

Join Quest Software for a full-day seminar and lab featuring SQL Server MVP Christian Bolton, and SQL Server expert Iain Kick as they explore many of the challenges around SQL Server performance optimisation. They will offer tips, tricks and methodologies for improving and maintaining performance in your environment.

When -  24th March
Where -  Quest Software, Ascot House, Maidenhead Office Park, Maidenhead, Berks, SL6 3QQ

Time -  09:00- 16:00

Agenda:

  • 08:30- 09:00 Registration & Coffee
  • 09:00- 10:00 Got Performance Headaches? Get Permanent Relief: Detect, Diagnose and Resolve the Pain
  • 10:00- 11:00 What are you Waiting For?
  • 11:00- 12:00 Ensuring the Health of your SQL Server Environment
  • 12:00- 13:00 Complimentary Lunch
  • 13:00- 16:00 Hands on LAB with our technical experts

*Afternoon drinks & refreshments provided.

Got Performance Headaches? Get Permanent Relief: Detect, Diagnose and Resolve the Pain
Presented by Iain Kick, Quest Software

This session will focus on techniques and tools for detecting, diagnosing and resolving performance issues in SQL Server. It can often take years of on-the-job experience as a DBA to learn how to understand when a problem is occurring, diagnose its root-cause, and then resolve it using manual techniques.

Iain will show you:

  • How to use native tools such as PerfMon and SQL Profiler to find issues
  • How to use Graphic Explain Plan, Transact-SQL Showplan, DMVs for SQL Server 2005 and 2008
  • When to use Trace Flags

We will then present a methodology using Quest tools to automate the process of detecting, diagnosing and resolving performance issues in SQL Server.


What are you Waiting For?
Presented by Christian Bolton, Coeo Ltd

Think about what happens when you issue a query to update a row:

  • The optimizer creates an execution plan
  • The query is executed
  • The row will be read from disk into memory
  • The update will be written to the transaction log
  • The row will be changed in memory
  • Confirmation will be sent back to the client

Imagine if you could measure the amount of time that was spent waiting for things within each of these stages. It probably won’t surprise you to hear that you can and not only is monitoring waits possible, but it can actually form a very effective part of a performance tuning strategy. Wait time is effectively dead time, and if you can reduce the amount of time you spend waiting, you’ll be able to achieve better overall performance. This session covers how SQL Server waits work, what types there are, and how to view and track them directly through DMV’s. It also covers common scenarios and their associated wait types.


Ensuring the Health of your SQL Server Environment
How are all your SQL Servers doing?


It seems like the answer should be simple. But in reality, this is one of the most painful questions to which you must respond. Because if you have more than a couple servers, you could easily spend a full day or more gathering information due to the massive number of metrics you need to examine.

Guess what? You don’t have to dig into data to check the system health for all your SQL Servers. During this session we will present a solution for you to gain visibility across your entire environment and check its health at any given time. You can use this methodology in your own environment to ensure ongoing performance of your databases.

Regards,

 

Christian Bolton  - MCA: SQL Server 2005, MCM: SQL Server 2005, MVP
Database Architect
http://coeo.com - SQL Server Consultants & Remote DBA Services

Advanced SQL Server Troubleshooting seminar at SQLBits
25 February 09 10:29 AM | Christian | with no comments

The next SQLBits conference is coming up next month and Coeo are once again running a 1-day pre-conference seminar on Advanced SQL Server Troubleshooting for just £250 or £199 if you book before the end of February.

 

Overview

This full-day workshop provides participants with the opportunity to learn about advanced SQL Server support topics in a very approachable way. Low-level SQL Server components are illustrated by following the ‘life of a query’. This helps to consolidate understanding of SQL Server architecture and provides a context from which to delve further. 

 

Part 1 – SQL Server internals and advanced concepts including:

Memory grants and cache usage I/O considerations and diagnosing problems SQL Server waits and wait types Troubleshooting latch waits

Query plan optimisation and execution

 

Part 2 - Troubleshooting tools and methodology to support effective problem identification and faster issue resolution:

A methodology for effective troubleshooting Data collection with PSSDiag SQLNexus for data analysis

 

Key Benefits

The Advanced Troubleshooting workshop provides attendees with a comprehensive understanding of key SQL Server internal knowledge and troubleshooting tools. Attendees will benefit from: 
  • Reduce time to resolution for SQL Server problems
  • Fewer occurrences of issues through proactive troubleshooting
  • Established troubleshooting methodology

 

Target Audience

This is an advanced workshop designed for IT Professionals who design, administer or maintain critical platforms based on SQL Server. Attendees should spend or plan to spend most of their time working with SQL Server.

 

Booking Link

http://book.registrationisopen.com/book.aspx?cust=sqlbits&eid=sqlbits20090301jl

If you have any questions or problems with registration drop us a mail at info@coeo.com

 

 

Regards,

 

Christian Bolton  - MCA: SQL Server 2005, MCM: SQL Server 2005, MVP
Database Architect
http://coeo.com - SQL Server Consultants & Remote DBA Services

Filed under:
More Posts « Previous page - Next page »