Well it seems like TSQL Tuesday #68 is providing me with a real good reason to get back into my blogging again. It been a while – due to various life events – but I think it’s time to dust off my virtual pen and start a (hopefully)… Read more
Well, it was only a few days ago that I blogged about some major Azure SQL Database enhancements. Primarily, in that post,I was referring to new features that were made available in the new V12 preview portal, specifically for moving “On Prem” database to Azure SQL… Read more
Recently I’ve become quite interested in the latest incarnation of Azure SQL Database.
For those that are unaware of some of the latest developments of this product, there was a new preview portal opened up towards the end of 2014.
This latest offering – know as version… Read more
And so another year passes, and as I’ve never wrote a “year in review” post before now seems like a good time to start.
2014 has been a pretty hectic year for me, both personally and professionally. The project that I’ve been working on for the past few… Read more
Today I awoke to find an email from Microsoft informing me that I’d been awarded an MVP. Wow.
I had to re-read the email several times over the course of the next hour to ensure it was true. Also checking the date – to make sure it was… Read more
I’m sure we’ve all heard and read about the differences between table variables and temporary tables. In case you haven’t here’s one of many articles that you can read on the subject.
Anyway, there is a business process in one of my databases that calculates results via… Read more
Saturday June 14th 2014 seen the Christchurch, New Zealand SQL SERVER user group host its second SQL Saturday (#316).
We learnt a lot from running our first SQL Saturday back in August 2013 – which was SQL Saturday #252
For the second year in a row we hosted… Read more
Well, it seems like even if you’ve worked with SQL SERVER for a while, you’re always lightly to learn something new.
Today I discovered that in order to use the “Import / Export Wizard” we don’t even have to open management studio.
Just type “dtswizard” into the run… Read more
I noticed something odd recently when looking at sys.dm_exec_requests. Specifically the system processes listed in that DMV – well at least I thought it was odd
Normally, I join with sys.dm_exec_sessions and filter out anything that is a system process (WHERE [sys].[dm_exec_sessions].[is_user_process] = 1 )
However, this time… Read more
Are people familiar with the saying “If there’s an elphant in the room, introduce it“? – if not, then to sum up here goes – “An important and obvious topic, which everyone present is aware of, but which isn’t discussed, as such discussion is considered to… Read more
While I was writing my last blog post about the new SQL SERVER 2012 CHOOSE statement, it also came to my notice that we additionally have the IIF statement.
Again, this was added in 2012.
I’d assume that most people would be familiar with this… Read more
I love coming across features of SQL that I’ve not used before and one happened today – the CHOOSE statement – introduced in SQL SERVER 2012.
So what does it do?
Well basically a label can be applied at a specific index in a list.
Here’s a demonstration script… Read more
Well, it’s the first TSQL-Tuesday of 2014 and one of my New Years resolutions for 2014 is to contribute to each TSQL-Tuesday of the year – lets see how we go!
Well, the subject of this months TSQL-Tuesday is Automation – which is quite obviously something that any… Read more
I remember a fair few years ago when I was relativly new to TSQL creating a stored procedure that used several temporary tables and had faily complex logic.
Occasionally during development the stored procedure would fail with errors – aside from the fact that the stored procedure… Read more
Just a quick post on a seemingly trivial matter that others may find useful.
The post was prompted by the Simple-Talk article on SQL SERVER 2012 keyboard shortcuts
Anyway, I installed SQL SERVER 2012 sometime ago on my laptop and ever since the CTRL-R keyboard shortcut key has… Read more
Well, these are exciting times for the Christchurch SQL SERVER User Group.
After a period of fragmentation where our meetings seemed to be at random intervals – mainly due to certain major events outside our control – such as earthquakes, the city… Read more
As part of any SQL SERVER install that I do, I turn on Remote admin connections (using sp_configure) and open the relevant firewall port – normally 1433 for a default instance – Although this can be altered
As we know, you can open a dedicated administrated connection using… Read more
Did you know that you can actually combine multiple SET operations into a single ALTER DATABASE statement.
It’s true, you can!
Mostly I never see this done.
Maybe it doesn’t make sense! maybe it’s just more readable if a single ALTER DATABASE statement contains a single SET operation!… Read more
Recently, quite out of the blue I started seeing this error when I tried to log into my SQL instance using SQL SERVER Management Studio (SSMS)
Now, I could RDP to the server and connect to the local instance using SSMS, however any attempt to connect to the… Read more
Sometimes I come across what I call unusual coding practices. Developers usually have pressure on them to deliver and this often results in simply delivering code that works – with very little attention to best practice , performance or security.
Sometimes this lack of attention to best practice… Read more