With SQL Server versions 2008R2 and 2012, you can access the registry to get the settings for the current instance of SQL Server.  Here is how it works using the dynamic management view (DMV) called dm_server_registry. From there you get get at all sorts of information about the current SQL Server instance.  Give dm_server_registry a try.

First for this example, and a few to follow we need to create the database that we are going to play around in. Next a review of the OVER clause as it is support prior to SQL Server 2012. Which produces the following output. Which gives you the average revenue and sum or the revenue for each department.  In the …

ROWS PRECEDING and FOLLOWING in TSQL 2012 Read more »

One of the new Dynamic Management Views introduced in SQL Server 2012 is the dm_server_services which returns info on the services running that are associated with SQL Server. select * from sys.dm_server_services;   Give it a try.   Looking this over, the first thing that comes to mind is to to use this to be able to detect if the SQL Server Agent Process is …

New DMV in SQL Server 2012 sys.dm_server_services Read more »

There is no more Business Intelligence Development Studio (BIDS) in SQL Server 2012, instead it has been replaced with the SQL Server Data Tools that uses the core of Visual Studio 2010, with the Report Builder and Report Designer built in to the new Visual Studio. The UI has changed colors, and looks a bit sharper, but overall you have …

No more Business Intelligence Development Studio in SQL 2012 Read more »

After several attempts to install SQL Server 2012 on Windows 7, I was getting the following error. “SQL Server Setup has encountered the following error: Value cannot be null. Parameter name: doc.” After 4 retries with different options I finally tried running setup.exe “As Administrator” based on suggestions that I found when searching on the error.  Still no luck. Next …

SQL Server 2012 – Setup Problems – Value Cannot Be Null Read more »

I spent the day today at SQL Saturday in Vancouver BC.  I met some fabulous SQL Server professionals, and presented 2 sessions.   The first Session was on Unleashing Common Table Expressions in SQL Server.  This was the second time that I presented this one, the first was at a SQL Saturday, the first time was SQL Saturday 108 in …

A great day at SQL Saturday in Vancouver BC Read more »

In preparation for my presentation at SQL Saturday in Vancouver BC tomorrow, I have updated the SQL Server Health Reports. As I was preparing for my presentation I discovered a few areas that I wanted to improve on the layout, sorting and overall presentation. Too late for the presentation tomorrow, but I started on the next new report to add …

SQL Server Health Reports – Updated Read more »

It has been a busy week getting ready for  SQL Saturday Vancouver, planning sessions to present at future training’s and determining new material to present. Today I submitted 4 sessions to Seattle Code Camp for their June session. Using SSRS 2012 Reports to Analyze SQL Server Health Unleashing Common Table Expressions in SQL Server SQL Server Performance for Developers What’s …

4 Sessions Submitted to Seattle Code Camp Read more »

The SQL Server Health Reports have been updated.  As part of preparing for my SQL Saturday 114 presentation next weekend in Vancouver BC, I have updated the  SQL Server Health Reports one more time.   The latest update included lots of minor UI fixup making the reports look better.  Including more summary detail on the main Health Report.   Also, additional details …

SQL Server Health Reports Updated Read more »