SQL Server Blog

SQL Server articles, tips, and technical insights from the Kutech team.

28 May 2017

What is a Key Lookup?

I was asked this the other day and it’s actually something that I’m surprised hasn’t come up before as people all seem to know it’s a bad thing, but many people don’t know why and don’t even know what one is in the first place.



Therefore I thought I would give a quick explanation for anyone still unsure what a Key Lookup is actually doing and why it’s considered bad.

Read more
21 May 2017

Piecemeal Database Restore

This is a direct follow up from my last post about filegroups because without those we wouldn’t be able to perform what is called a Piecemeal database restore and, trust me, this is something you want to know how to do.

Read more
14 May 2017

What Are Filegroups

Well, let’s be honest here… in a nutshell a Filegroup is… wait for it… a group of files.



Bet you didn’t see that one coming.



However, it’s their uses which are actually worth discussion because they provide some useful functionality as a whole.

Read more
7 May 2017

SQL 2016 Install Sets Multiple TempDB Files

This is something that I’ve been hoping would make an appearance in SQL Server at some point, and also why I included my last post about tempDB contention. It’s the ability to choose the number of tempDB files during install rather than having to add them yourself at a later date.

Read more
30 April 2017

Contention and Multiple TempDB Files

We all know that tempDB is the scratchpad for SQL Server and is used for all manner of things from, obviously, housing our temp tables through to being used for memory spills during query execution.



However, where some people can fall down is that they don’t realise that tempDB can easily get overwhelmed and therefore can suffer badly from contention.

Read more
23 April 2017

Creating a Partitioned View

This is an alternative to native table Partitioning, and something I would potentially rather use instead whether I have Enterprise Edition or not.



Partitioned Views are also available in any edition, which is always a bonus.

Read more
9 April 2017

Handy Trick in SSMS

This is a quick post about something I only found out recently and which has made my life so much easier in many circumstances. It’s something I also imagine you’ll soon use a lot too if you don’t already.

Read more
2 April 2017

Bug: Implementing Incremental Statistics

I’ve covered Incremental Statistics over a couple of posts now and although they are a fantastic feature, there is a bug which you need to be aware of. Luckily it’s by no means a showstopper, more just an annoyance.

Read more
An unhandled error has occurred. Reload 🗙