• Skip to main content
  • Skip to primary sidebar

DBA Diaries

Thoughts and experiences of a DBA working with SQL Server and MySQL

SQL Server Performance

The OLEDB Wait Type and How to Reduce It

January 13, 2013 by Andy Hayes Leave a Comment

reduce oledb wait type

In this post, I look at the OLEDB wait type. Books Online lists this as "Occurs when SQL Server calls the SQL Server Native Client OLEDB Provider. This wait type is not used for synchronization. Instead, it indicates the duration of calls to the OLE DB provider." "OLEDB" stands for Object Linking Embedding Database. OLEDB is an API used by SQL Server when retrieving … [Read more...] about The OLEDB Wait Type and How to Reduce It

Reducing SQL Server CXPACKET Wait Type

December 4, 2012 by Andy Hayes 10 Comments

cxpacket wait type parallelism

In my last post, I wrote about how SQL Server schedules tasks to be executed. It's important to be  able to understand this when when trying to analyse wait types and statistics in SQL Server. For this post, I will be looking at the CXPACKET wait type and what you can do to reduce it. This is one wait type that can be misjudged. I mentioned before that the wait types … [Read more...] about Reducing SQL Server CXPACKET Wait Type

An Overview of SQL Server Task Scheduling

November 25, 2012 by Andy Hayes 1 Comment

In my previous post, I touched upon SQL Server wait types and in order to understand wait types in SQL Server, it's important to know first how the server schedules tasks. On each CPU core, only a single thread or "worker" can be running at any given time. Each CPU, be it logical or physical inside your SQL Server is assigned a scheduler and it is responsible for managing … [Read more...] about An Overview of SQL Server Task Scheduling

An Introduction to SQL Server Wait Types and Stats

November 10, 2012 by Andy Hayes 1 Comment

sql server wait types and stats

Ok, so in this post, I wanted to go over SQL Server wait types and statistics  - what they are and how to check them. My idea is then to start a series of posts which go into more detail about individual SQL Server wait types, their causes and how to improve them. At the time of writing this post, I do not know about all of the wait types in SQL Server and there are many of … [Read more...] about An Introduction to SQL Server Wait Types and Stats

How to Delete Millions of Rows using T-SQL with Reduced Impact

October 9, 2012 by Andy Hayes 27 Comments

In this post, I talk about deleting millions of rows in SQL Server whilst keeping impact low. Deleting millions of rows in one transaction can throttle a SQL Server TRUNCATE TABLE - We will presume that in this example TRUNCATE TABLE is not available due to permissions, that foreign keys prevent this operation from being executed or that this operation is unsuitable for … [Read more...] about How to Delete Millions of Rows using T-SQL with Reduced Impact

« Previous Page
Next Page »

Primary Sidebar

Categories

  • All Articles (82)
  • Career Development (8)
  • MySQL Administration (18)
  • MySQL Performance (2)
  • SQL Server Administration (24)
  • SQL Server News (3)
  • SQL Server Performance (14)
  • SQL Server Security (3)
  • SQL Tips and Tricks (19)

Top 10 Popular Posts

  • Using sp_change_users_login to fix SQL Server orphaned users
  • MySQL SHOW USERS? – How to List All MySQL Users and Privileges
  • How to shrink tempdb
  • How to Transfer Logins to Another SQL Server or Instance
  • How to Delete Millions of Rows using T-SQL with Reduced Impact
  • T-SQL – How to Select Top N Rows for Each Group Using ROW_NUMBER()
  • New T-SQL features in SQL Server 2012 – OFFSET and FETCH
  • How to Kill All MySQL Processes For a Specific User
  • Using exec sp_who2 to help with SQL Server troubleshooting
  • How to move tempdb

Recent Posts

  • How to Setup MySQL Master Master Replication
  • How To Use SQL to Convert a STRING to an INT
  • How to set up MySQL Replication Tutorial
  • How to Use SQL CASE for Conditional Logic in Your SQL Queries
  • Using ISNULL in SQL Server to Replace NULL Values

Search

Connect

  • Twitter
  • Facebook
  • Google+
  • RSS

About

  • Cookie Policy
  • Disclaimer
  • About
Copyright ©