My Humble SQL Tips

I'm keeping this blog as a repository for SQL tips and tricks I have learned over my time working with SQL Server.

Saturday, 5 October 2013

Automating Sliding Partition Windows - Part 2

›
Sliding Partition Window Concept Before we continue, let’s remind ourselves of what the Sliding Partition Window is and what it gets u...
2 comments:
Tuesday, 24 September 2013

Automating Sliding Partition Windows - Part 1

›
Introduction Table partitioning, as it was introduced in SQL Server 2005 Enterprise Edition, is an incredibly useful feature. It enhances ...
2 comments:
Sunday, 18 August 2013

DMV Queries Tied to My Custom Index Stats Tables

›
I've mentioned a set of DMV queries that I use in a previous post on this blog . I've been chopping and changing the base set of que...
Wednesday, 7 August 2013

Defragging Indexes Without Losing Index Stats - Part 5

›
The stored procedure /********************************************************************************* UPDATE: Bug fixes and increased ...
1 comment:
Wednesday, 3 July 2013

A Script to Fix Orphaned Users

›
I find that one (well, actually, one of many) really annoying things of restoring databases to different servers is the orphaned user! I am ...
2 comments:
Tuesday, 4 June 2013

Defragging Indexes Without Losing Index Stats - Part 4

›
Generate UPDATE STATISTICS scripts In the  previous post of this series I provided the script that both determines the indexes that need ...

Script out the indexes in a database

›
I'm just about to begin a big performance improvement project. I'll be starting with an evaluation of indexes. This will involve  sy...
Thursday, 23 May 2013

Defragging Indexes Without Losing Index Stats - Part 3

›
In Part 1 and Part 2 of this series I discussed synchronizing index maintenance and index usage statistics logging as an important part of...
Wednesday, 22 May 2013

Defragging Indexes Without Losing Index Stats - Part 2

›
In my last post , I introduced the concept of synchronizing index maintenance and index usage statistics logging as an important part of a D...
Sunday, 12 May 2013

Defragging Indexes Without Losing Index Stats - Part 1

›
Introduction As part of my regular performance tuning and maintenance schedule I rely heavily on queries that interrogate the DMV  sys....
‹
›
Home
View web version

About Me

Thomas Mucha
View my complete profile
Powered by Blogger.