Archive for category: MS SQL Server

SSRS Traverse Folders & Download RDL Files

07 Mar
March 7, 2012

A few times in the past I ran into a situation with SQL Server’s SSRS, were I needed to download all the RDL files off the server, while also maintaining the folder hierarchy information.

There are many off-the-shelf scripts out-there online to help you download all your RDL files (along with security settings and other configuration files), this article goes through a couple of simple methods that can be used to retrieve the RDLs.

Read more →

SQL Server Connection Reset for Connection Pooling

26 Feb
February 26, 2012

Recently one of our Data Warehouse SQL server instances started throwing a bunch of alerts (severity level: 20), the alert error message looked like this:

The client was unable to reuse a session with SPID [SPID], which had been reset for connection pooling. The failure ID is 29. This error may have been caused by an earlier operation failing

In this post I will go through the initial steps to diagnosing this issue, as well as introduce the new (SQL Server 2008+) Connectivity Ring Buffer feature, which lives in the sys.dm_os_ring_buffers DMV, and captures any server-side initiated SQL Server connection closures.

Read more →

SQL Server PowerPivot 2012 Demo Video

22 Feb
February 22, 2012

A cheeky wee demo of SQL Server’s PowerPivot Excel Plugin, this introduction video quickly goes through how easy it is to connect to a data-source using PowerPivot, build the relationships between different tables, write a simple DAX query, and eventually use your newly created “mini” model in a Pivot Table with some vertical and horizontal sliders.

Read more →

SQL Server TOP statement, Table Scans and Locks

21 Feb
February 21, 2012

This post describes an interesting situation were SQL Server locking might occur on a table that has not been indexed carefully, and how you can resolve this issue.

Read more →

SQL Server English Thesaurus for FULLTEXT Search

07 Feb
February 7, 2012


SQL Server offers Full Text Search capabilities integrated within it’s framework, Full-Text Search offers very fast search capabilities over large text columns, along with advance search features such as Stemming or Thesaurus, as well as Infection (tense) Searches and Proximity Search, to name a few.

Out of the box, SQL Server’s FullText Search currently does not ship with a thesaurus for any language, here I present an English thesaurus that can be used to stem English language searches.

Read more →

SSRS on Mobile Phones (Mobile BI)

24 Jan
January 24, 2012

Mobile is a growing platform for BI integration, there are many out of the box BI solutions that offer some (sometimes limited) BI integration, I have yet to trial a full BI platform that has mobile OS compatibility natively integrated in its rendering engine

Read more →

Create On-The-Fly SQL Tables

24 Jan
January 24, 2012

In this post I will show you a quick example of how to write an on-the-fly table in SQL Server.

Read more →

Convert SSRS Charts to Highcharts (Dynamic) Graphs

21 Jan
January 21, 2012

SSRS is an awesome framework as part of a whole BI solution for report authoring, delivery and interaction. One problem though is that the reports produced through Visual Studio or Report Builder are too static, there is no hover-over effect in SSRS reports, and you cannot do dynamic filtering once the report finished rendering.

This posts goes through building a converter that takes the ATOM output of an SSRS chart (1 y-axis Line Graph), and returns a dynamic Highcharts graph the represent the same data points.

Read more →

SQL Server Execution Completion Estimation

16 Jan
January 16, 2012

A simple T-SQL command that checks the progress of a particular SQL request, such as the progress of DBCC SHRINKDATABASE.

Read more →

SQL Server Table Variable vs Temporary Table vs CTE

12 Jan
January 12, 2012

Breaking SQL queries up into temporary physical or virtual “units” is done for many reasons, including performing complex SQL logic, re-using data for multiple DML/ETL operations (for example, multiple INSERTs), or simply just for better SQL code readability/maintainability.

This posts discusses the 3 available options in SQL Server for holding temporary data, these are SQL Table Variable, SQL Temporary Table and the CTE (Common Table Expression) SQL Syntax

Read more →