Quantcast
Channel: performance – DBA Diaries
Browsing all 15 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

Using sp_who2 to help with SQL Server troubleshooting

If you haven’t used sp_who2 before then it is a great utility to help in diagnosing a problem with your database application.What is sp_who2 ?It’s a stored procedure which is installed with SQL Server...

View Article



Image may be NSFW.
Clik here to view.

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

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 ServerTRUNCATE TABLE – We will presume that...

View Article

Image may be NSFW.
Clik here to view.

An Introduction to 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...

View Article

Image may be NSFW.
Clik here to view.

An Overview of SQL Server Task Scheduling

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...

View Article

Image may be NSFW.
Clik here to view.

Reducing SQL Server CXPACKET Wait Type

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...

View Article


Image may be NSFW.
Clik here to view.

The OLEDB Wait Type and How to Reduce It

In this post, I look at the OLEDB wait type.Books Online lists this asOccurs when SQL Server calls the SQL Server Native Client OLEDB Provider. This wait type is not used for synchronization. Instead,...

View Article

Image may be NSFW.
Clik here to view.

Using DBCC FREEPROCCACHE to Clear SQL Server Procedure Cache

It is possible to clear out the entire SQL Server procedure cache using DBCC FREEPROCCACHEThe procedure cache is where SQL Server will cache execution plans after they have been compiled. The benefit...

View Article

When are Innodb Table Statistics Updated?

Innodb statistics are used by the query optimizer to assist it in choosing an efficient query execution plan. They are estimated values relating to each Innodb table and index.But what updates them?...

View Article


Image may be NSFW.
Clik here to view.

10 Database Performance Monitoring Tools You Can Get For Free

Database performance monitoring is something every DBA worth their salt should be doing on a regular basis.It should be adopted as a proactive task to help identify issues early on before they become...

View Article


Image may be NSFW.
Clik here to view.

How to Produce CSV Format Using T-SQL

There may be some requirements where you need to produce a csv output from a table. There are some good, efficient ways to do this and there are also some less efficient ways. Let us now look at one...

View Article

How to Find Buffer Pool Usage Per Database in SQL Server

As a DBA it’s important to understand what the buffer pool is doing and which databases are using it the most. Data in SQL Server is stored on disk in 8k pages. The buffer pool (Aka “buffer cache”) is...

View Article

Image may be NSFW.
Clik here to view.

How to List CPU Usage Per Database in SQL Server

As a DBA there may be a time when you want to try and ascertain how much CPU time each of your databases is consuming. This is useful to complement high CPU investigations or to just try and understand...

View Article

Image may be NSFW.
Clik here to view.

How to Find I/O Usage Per Database in SQL Server

If you’re looking at performance and trying to understand I/O on a per database level in SQL Server, sadly there is not a report in Management Studio that you can run from those available. It will need...

View Article


Image may be NSFW.
Clik here to view.

SQL Server 2016 New Features – Query Store

In this series of posts covering the new features in SQL Server 2016, I’m moving on to looking at the Query Store. This tool provides a way to track query execution plan performance over time to help...

View Article

Image may be NSFW.
Clik here to view.

SQL Server 2016 New Features – Live Query Statistics

SQL Server 2016 Live Query Statistics provide a way to look into the execution plan to see what parts of the query are currently running. The advantage of this feature is that for a slow query, instead...

View Article

Browsing all 15 articles
Browse latest View live


Latest Images