How to UNPIVOT table in SQL Server / UNPIVOT table example in SQL Server
Szymon Wójcik:Recently I’ve had a similar case when I needed to unpivot multiple related columns at the same time. It turned out that running multiple UNPIVOTs is actually slower and creates more...
View ArticleMonitoring native Windows deduplication job progress with Power Shell
I am a big fan of Windows data deduplication since I first saw it in Windows Server 2012 RC. You can never have enough of the disk space, right? :) It has its downsides (mostly maintenance-related –...
View ArticleMultiple UNPIVOTs versus CROSS APPLY analyzed
Few days ago I posted a bookmark to a blog post where an example of multiple UNPIVOTs was given. I stated that such scenario – UNPIVOT of multiple groups which contain related data – is not optimal and...
View ArticleSetting up linked servers using Windows Authentication and how to solve...
This post will cover a topic of connecting linked servers using Windows Authentication. Linked server is a hot topic since longer than I am able to imagine (namely SQL Server 7.0) but it needs a bit of...
View ArticleRemote stored procedure execution through linked server
I am recently doing a lot of experiments with linked servers. Last one included enabling remote stored procedure call and it’s really quick – it only requires RPC Out to be set to true in the linked...
View ArticleLinked servers’ antipatterns
After previous post about using Windows Authentication for linked servers I realized there are more common points with regards to linked servers that might be identified as antipatterns. I’ll describe...
View ArticleSQL SERVER – How to Access the Previous Row and Next Row value in SELECT...
Szymon Wójcik:After reading forementioned article by Pinal Dave I wanted to compare those methods and I even managed to make the CTE version to run in acceptable time – around 0.5 seconds on 20k...
View ArticleMiscellaneous linked server creation – aliases, other database providers and...
After publishing recent posts regarding linked servers I noticed there are still some topics about linked servers that are interesting but not so straightforward. So, I decided to describe them details...
View ArticleLate start into 2014
Long time no post. There’s a number of reasons for that, all of them “overridden” by my laziness. :) I had a strong resolution of keeping good progress with the blog, but reality proved otherwise....
View ArticleBenchmarking database servers on desktop hardware
Long time no post, again. I have about 10 drafts started that will probably never see the light of day since I abandoned them. On the other hand, I was quite busy last 18 months overclocking everything...
View Article