Thursday, 25 April 2019

So long to clarity!

I can't quite believe that this blog started out back in 2015. It might not be that long compared to many others but hey for me, I'm amazed its been going for this long! However, all good things do come to an end so I've decided that for SQL Clarity it's time to call it quits.

I initially got into blogging about SQL Server for a bunch of reasons and I genuinely set out to do some good things with it but over time the blog changed direction almost on an article by article basis and if I'm quite honest, the main reason is that I've simply stopped enjoying it.

Looking back there have been some awesome moments. I loved doing the Q&A sessions and I so wish I'd done more. Huge thanks to Sergei, Kevin and Kenneth for their contribution, it was a great experience. There were other posts as well where I received great feedback (positive and negative) and got to interact with some awesome people, for that as well I say a huge thanks!

But over time the blog has lost its direction and I guess it's original purpose has been well and truly lost along the way as well. So much so that recent articles have been very difficult to write and planning future articles has become too much of a chaotic exercise. So it's time to stop blogging.

So with that, thanks to everyone who has read, commented or shared any of my posts over the last few years - I'm still amazed at the feedback, genuinely I really am. I'm sure at some point I'll be blogging again but for SQL Clarity - that's all folks.

Thanks for reading!




Thursday, 21 March 2019

Presenting

It seems quite fitting that my last post, dipping into the cookie jar paid reference to my battles with anxieties and yet this post is all about me presenting for the first time, as I did last week at the Manchester and Leeds Data Platform User Groups. OMG I still cant believe it!!!!

Anyway.

It wasn't that long ago that I wouldn't have been able to achieve this, and not for the lack of wanting either as it's been a bit of a dream of mine for a long time. So as you can imagine I'm feeling quite elated by the whole experience! I took an awful lot from both sessions too, met some amazing people, had some great discussions about all sorts of things and also took away some great advice and feedback about presenting in general and my session too.

So for this post I thought I'd jot down some of the things I learnt about presenting and hopefully, if you're contemplating doing it some time, it might help a bit.

Nerves
My dad told me many, many times that if you don't feel nerves there's something wrong with you, you're just not human. He's not wrong, and if I'm totally honest as I headed over the M62 motorway on that Wednesday afternoon towards Manchester I couldn't help but think, "WHAT ARE YOU DOING?!?!".

I've come to not exactly embrace nerves, far from it, but I certainly accept them for what they are. If I couldn't care less about something then the chances are I wouldn't be nervous at all but when something means something, there they are. With that in mind I try not to be too concerned on trying to overcome them but instead use them to ensure I've prepared as well as I can and that I'm focused on what I'm trying to achieve, I guess it might be called "channeling the energy" if you're into that sort of thing.

TL/DR: Everyone gets nerves, so don't try to battle them and instead use them to focus/channel that energy into remembering what you're achieving.

Practice doesn't make perfect, but it makes you much better.
Things go wrong, fact. Preparation is without question key but there's always something. For the second session I forgot a key prop (chocolates) that I use to make a joke about bribery being such an evil word. I'd prepared everything, done the session (with chocolates) the night before but yet here we are.

I didn't even realise until the slide came up, talk about a "DOH" moment but then again, what could I do? So I apologised to the audience, made a mental note to not do that again (I promise), and carried on. The lesson for me was that it's impossible to prepare for every single little eventuality of "what could go wrong" so instead I focused (yeah, that again) my preparation on the good bits; I knew my slides (mostly), knew the code sections and also my lines (that's how I sort of viewed them but instead of being too rigid tried to develop a bit of flow and allow a natural conversation).

Above all, prepare best you can, don't fear the what if's and if something doesn't go to plan, don't beat yourself up, there's next time.

TL/DR: Don't waste time fearing mistakes, they happen to everyone. Relax. You know your stuff.

Self-Doubt and Imposter Syndrome
Another fact, I've never been to a session where the presenter knew everything.

It's true, but yet my old mate imposter syndrome was determined to make me question absolutely everything, even just standing up there. I went through it, seriously I did. Do you think you're some sort of expert? What happens when someone asks you a question and you don't know, what if somebody spots a mistake, what if you've got no idea what you're talking about?! You don't belong up there!!!

Oh yeah, that shit is real.

Imposter syndrome is nasty. It's as if your very own self becomes hell-bent determined to make you doubt pretty much everything that you're trying to do and it's going to come at you at every imaginable angle to try to stop you. Lovely isn't it?

Unlike nerves this is something to overcome, do not accept imposter syndrome.

I don't know or pretend to understand the psychology of it abut what I do know is that there is nothing trying to get in my way and stop me from achieving something - apart from my own self-doubt. A coach of sorts once told me that in those situations remind yourself that you have every single right to be where you are, you've done the hard yards (or metres) so look back on them and know you've earned it. [another cookie]. I love those words (thanks Mr Fisher).

Another thing that sprung to mind, and I can't remember if it was Paul Randal, Gandalf or some other wise old soul who said to remember that everyone who you look up to has been in the very same place where you are now. They might be very established speakers but at one point, they were right where you are now. I took a lot from that.

To lead off that; nerves, self-doubt, imposter syndrome, they effect absolutely everyone. The reason why you are where you are is because you've earned it, now is your time.

TL/DR: Your own self-doubt is yours, so own it, you're exactly where you deserve to be. You've done the hard bit, self-doubt doesn't know what its talking about.

Breaking the ice
The first five or so minutes is a quite a rollercoaster. I turned to humor, for Manchester I had a joke about it being my first time speaking, only that was a lie, it wasn't like I'd driven over and words started coming out of my mouth. I also have a particular slide, my "about me - part two", that shows I'm quite happy to poke fun out of myself. I quite like laughing and to date, it's always got a bit of a laugh from the audience as well.

The fun filled game EVERYONE is playing!!

For me the first few minutes are a great opportunity to give a pretty informal introduction to who you are and what your session is about. After the intro I used a bit of a quiz element (I sort of borrowed this idea from Paul Andrews Azure Icon Game), "fun facts about guillotines" to promote a bit of audience interaction. That really helped, it was very light hearted, a bit of a laugh (if you can laugh about guillotines), and it just broke the ice a little more.

TL/DR: The audience are real people. They know and appreciate what you're doing, they're there to support you so get to know them a bit.

Learn from the experience
Doing two sessions on two nights actually turned out to be a great decision, despite a lot of self-doubt telling me it was a ridiculous idea. I got a lot of feedback after night one so being able to put that into practice straight away was a big help, wish someone had said don't forget the chocolates.

I also got a lot from the questions being asked in the session and actually a couple of them I made mental notes to include the following night (cost - optimisation relationship). They were really excellent points and for me, improved the session for next time. Leeds was no different, I got asked about what query tools I use so when I next present the session, there's a slide on that (with some new bits I've learnt about recently)! 

TL/DR: Take all the learning points that you can from the experience.

Enjoy it
Yes I had nerves, yes I suffered greatly with imposter syndrome, yes I was absolutely dreading it.

At the same time I rehearsed, I had an approach in mind, used some bits and pieces to gradually get into delivering the presentation. I didn't aim for perfection, I really didn't need the pressure. Some minor things went wrong, I forgot a couple of bits but hey, these things happen, mental note, carry on.

TL/DR: We get the best rewards when we go out of our comfort zone and "DO IT".

I'm no expert, full stop, but I learnt stacks from what was an absolutely brilliant experience. Am I glad I did it? Too right I am and now I'm focusing on the next step! Is that a scary prospect? Too right. Is that, or any element of self-doubt going to stop me?

Hell no.

Tuesday, 12 March 2019

Dipping into the cookie jar.


This post going to be a bit of a personal story, in this case very little to do with SQL Server but when I read the topic of this months T-SQL Tuesday I felt very compelled to write something. Over the last week or so I've reviewed and rewritten quite a lot of it, the first drafts were way too lengthy (yup, even more than this!). This is the final version that I am writing out, and I'm sticking to it!

10 years ago I suffered my first anxiety attack.

I was in a meeting at work at the time; became very dizzy, nauseous, numb and had horrific stomach and chest pains. I remember trying to control my breathing which became very panicked and I had an overriding feeling that at any second I was going to black out. I didn't, I managed to leave the meeting but walked into the door frame as the dizziness became quite severe. I don't remember much else from that day.

I know a short time later, maybe the next day, at the doctors I was told it was an anxiety attack, which was a bit of a relief at the time as I was convinced it something "serious" - at the time I was sure I was having cardiac issues and hadn't even contemplated, or been aware of anxiety. Despite the tablets that I was given (which I didn't take for long) and being told to take some time off (I went back almost straight away) I pretty much filed it away and carried on, until the next attack happened.

This occurred on the downwards escalator in a local department store, same symptoms but I remember panicking much earlier. Same again, I don't remember much else apart from booking in again at the GP's.

The next couple of months were extremely difficult. I was given medication that made me feel ill, referred to counselling sessions that on the whole I viewed as being quite upsetting and each day became progressively more of a struggle to get through than the last. The attacks came and went, sometimes very mild, sometimes not, but they were there and all the time I was surrounded by feelings of weakness, guilt, denial perhaps and if I am honest, some degree of shame too.

I don't know when the tipping point arrived or indeed what originally sparked it, in truth it was more of a progressive process but what I can write about was a train of thought that I slowly began to realise more and more. This is one of my "dipping into the cookie jar" moments.

You see whilst anxiety had left me feeling like I was a weak person and although the days felt like a struggle here I was day after day fighting it, albeit without fully realising but it's true, every day I was getting up and doing what I needed to do to get through it. Inner strength I came to understand isn't something that we know is there, at least not until we really need it and even then we might not fully realise it.

But realise it I had, I started to draw on it and bit by bit I began to see and understand the things that I needed to change. This newly found "clarity" is what actually inspired the name of this blog; it took some time but now I had accepted where I was, I understood that is was perfectly okay to not be okay but I also knew where I wanted to be and how I was going to get there.

A big part of that process was drawing upon that strength to have the courage to speak to others, those close to me. To use the cookie jar analogy; I needed help to open it, perhaps I needed to have the top loosened for me, and I certainly needed help to reach those cookies that were at the very bottom of the jar, but that's what we did.

Some significant changes were indeed made, there were many ups and downs for sure but over time things got much better. I became used to stepping out of my comfort zone because at times it was the only way, sometimes needing that a gentle nudge of encouragement and offer of support. It always humbles me to witness how supportive people are when it's just in their very nature, every day you'll see people helping others with their challenges. And I always say to people not to trivialise the challenges they're going through; whether its seemingly big or seemingly small a challenge is exactly that, a challenge.

Over the years I've faced many things, not least when exactly a month ago today when my Dad passed away. But through everything I've learnt that all of us, we really are a lot stronger than what we know. Sometimes we need to draw upon both positive and negative experiences but there's always that inner strength that lies within us. Sometimes we have to reach out; sometimes for the help, sometimes to help somebody else but between us, we really can get through anything.

Thank you for reading

Monday, 4 March 2019

Speaking in March

Most people who know me know of my love of talking and also my love of working with SQL Server. Next month I'm combining the two as I'm readying myself for speaking at a couple of local-ish user groups in March (meetup links further down) with the rather awesomely named session, "Guillotines, Sat-Nav and the Query Optimiser"

Intrigued..? You should be!

The magnificent two date world tour kicks off with the Manchester Data Platform User Group on Wednesday the 13th of March and the next night we head back to sunny Yorkshire for the Leeds Data Platform User Group meeting on the 14th. I say "we", just to clarify there's no tour bus or anything, it's just me travelling back and forth on the M62 whilst listening to and shouting at TalkSport presenters.

Anyway, this will be the first time I've spoken at a SQL event or meeting so naturally it's a pretty scary prospect but at the same time I genuinely can't wait. It's been an aspiration of mine for quite a while so actually getting round to doing it feels like quite an achievement, or at least it's getting there.


So if you'd like to know a little bit more about guillotines (who doesn't?!), query optimisation and you like pizza then why not head over? If you've never been to a user group meeting before then here's an ideal opportunity to see what they're all about. It's very easy for me to list the reasons why you should (nice people, guillotines & pizza) but seeing for yourself is without question the best way so go ahead and get yourself signed up.

I'm really looking forward to meeting everyone there, huge thanks to the organisers of these meetings, I hope you know how genuinely appreciative everyone is for these events and see you all soon!

Here's the links:
Manchester Data Platform User Group, Wednesday 13th March.
Leeds Data Platform User Group, Thursday 14th March.

Friday, 4 January 2019

2019

I have some mixed feelings about 2018 so thankfully this post has nothing to do with looking back, not in the main anyway, but more around what I'll be doing in 2019.

First, there's blogging. I didn't get round to getting anywhere near the amount of posts that I wanted to last year which is disappointing. I've always taken great enjoyment in writing so that is something that I want to change right away. Firstly I'm moving the more technical posts over to DTA IT, it makes sense and leaves SQL Clarity to host more of my thoughtful posts - or waffle as I like to call it. I've also enlisted some much needed help on the blog/community side of things which will undoubtedly make masses of difference.

Then there's speaking. I've always enjoyed talking about SQL Server and just before Christmas put in to speak at a couple of user groups next year; Manchester, Leeds and Nottingham. It's something that I have intended to do but had never taken the jump, now, I cannot wait. The session is about the query optimiser with a side of guillotines and satellite navigation - really, come along if you'd like to know more.

Training others is something I've always been passionate about and through DTA I'll be kicking off an exciting new project in the next couple of weeks. I don't want to give anything away now but it very much relates to a back to basics approach to training material that I'll be offering. The courses through DTA have also been revised and reduced to three core elements; administration, performance management and querying - all of which are aimed "from the ground up".

Mentoring deserves a mention as it's something that has been on my mind for a while. It probably warrants a separate post but in the meantime what I will say is that whilst it's an activity that I will still be undertaking I'll be working to a much more structured approach and I've also learnt to step away when it isn't working, this should allow me to spend more time actually mentoring!

For my own development I'm focusing on a few things, Bob Wards Pro SQL Server on Linux is a highly recommended purchase as the Linux space will become much more critical for SQL Server; as will containers and Kubernetes - I also recommend Chris Adkins blog post to get you going on that front.

There's an awful lot to learn and even more to do but I'm very focused on having a very successful 2019, and I wish anyone who happens to read this the same, all the best!

Thursday, 11 October 2018

SSMS 18.0 - Actual vs Estimated Rows

Last week Microsoft released SQL Server Management Studio 18.0 into public preview, here's a link so you can read about the new and improved functionality it offers.

One significant change is the addition of actual vs estimated row counts onto the showplan operators in execution plans (only actual, not estimated...which kinda makes sense).

Here I'm running a very simple bit of code on some DMV's (namely exec requests and sessions) to demonstrate this addition.

Here's an execution plan in a previous version of SSMS:

But in new SSMS we get some extra info:

If we look at the Table Valued Function on the far right of the plan (because that's where plans start) we can see a time statistic (0.00s) and under that "69 of 70 (98%)", hovering over the operator to bring up the tooltip shows what the numbers mean:


We can see here for this operator that the actual number of rows is 69 whilst the estimated was 70 (a 98% accuracy) so any skew in row counts are now much more visible, this is really useful when it comes to really big numbers in execution plans.



In this example (from the same query) we've got the actual number of rows displayed correctly (2) but its estimated value doesn't match what is seen in the tooltip (69 vs 8.3666). Worth noting that the values do get rounded so 8.3666 would be displayed as 8. 

Originally I thought it had got the 69 in the tooltip wrong but in looking for a bug I'd actually missed the glaringly obvious; because SQL Server has to times rows by the number of operator executions; 8.3666 x 8.30662 = 69, so no bug, just me not looking hard enough!

I like this release of SSMS, I really do and despite all my love for Operations Studio, now renamed to Azure Data Studio it's great to see the continued development of Management Studio.

Tuesday, 2 October 2018

Embracing Learning

The recent release of SQL Server 2019 offers new and improved features for data professionals. There's already lots of information out there about the latest bells and whistles; here's a link to start with and if you haven't already then you can download yourself a copy and have a good look around. 

If we look at the added functionality or support for different technologies between the 2016 and 2019 releases then clearly there's a lot of learning required to stay up to date; new introductions like Linux, containers, Kubernetes, R, Python, Apache Spark and lots more provide quite a list of new capabilities for DBA's and developers to put to use within their data platforms so gaining a good understanding of these technologies is becoming more and more vital.

But staying up to date can be difficult, especially in a technical landscape that is rapidly evolving as it is in current times but it's also a time where embracing the learning opportunities out there will undoubtedly be massively beneficial for those willing to invest in their career management.

I say "willing" because ultimately it is a choice, and with all the learning material being made available from vendors and from within the community it should be a very straightforward choice to make. Whilst it's not going to be free; it is going to take some time, money or more commonly both, the benefits far outweigh any personal contribution (or if you prefer to view it, sacrifice) that you'll be making. 

The main point that I want to put across is that right now, more than ever, it's become absolutely essential for anyone working in a data environment to take ownership of their personal development.

Some may be unsure where to start, which isn't surprising considering the rate of change but that's no reason to simply sit back either. Have a think about some of the factors that go into learning roadmaps; job requirements, your personal career aspirations, areas of interest, new technologies and of course, marketability all need to be considered (yes, the latter does matter) and then map to what training material is out there. It's virtually impossible to not find what you're looking for and if you're stuck for ideas - hey, ask away!


An early SQL conference.

So if you are just watching and waiting take the release of SQL Server 2019 and use it as the perfect opportunity to kick start your personal development journey; go through the release material, explore the new features and supported technologies, check out the changes to existing features, read blogs, watch videos, buy or download some books and attend events like conferences and user groups - there's plenty of choice out there to fit any favoured learning style and many require nothing more than an hour or two of your time. Above all, investing in yourself is the most rewarding investment you can ever make.

Sunday, 12 August 2018

SQL Server DBA: The worst days

In a recent blog post Steve Jones posed the question; what was the worst day in your career? Great idea by the way.

A couple of experiences that occurred early on in my DBA career sprung to mind. There was the rather nasty corruption of a critical but not highly available application database that happened mid-afternoon which led to a very manual and overnight full restore (legacy system means very legacy hardware).  

The subsequent post-restore checks were also quite lengthy meaning the entire recovery process concluded at around 5.30AM the next morning, which actually wasn't that far from my estimated ETA of a working system. Operationally the effects weren't too bad; transactions were captured using a separate system and then migrated into the restored database when it came back online. I'll never forget the post incident discussion either; no finger pointing, no blame whatsoever just a well done to all for having a successful recovery operation and a genuine interest in how we could further minimise any impact in future. 

Then there was the time the execution of an application patch with a slight (and undiscovered until then) code imperfection brought down an entire production server, that just happened to be attempting to process some rather critical financial workloads from various systems at the same time. In truth it was a completely freak event that had happened on a combination of very old systems that were considered flaky at best.

The systems were brought online quickly enough but tying together the results of the various processes that may or may not have worked took hours and hours of querying with lots of manual updates. It might sound terrible, but because of the coordinated effort between different teams and individuals it had actually taken a fraction of the time that it could have done and not only that, data was confirmed to be 100% accurate.  

Want another corruption tale? Why not. How about the time a system database on a 2005 instance went all corrupt rendering the instance completely useless? Of course it never happens to a system that nobody cares about, no, yet another critical system. The operational teams went to plan B very quickly but even better, a solution that avoided large restores was implemented quickly so the downtime, although handled well, was still significantly reduced.

Looking back there's plenty more, I think it's fair to say that disaster is a real occupational hazard for database professionals. And yet despite being labelled "worst days" I actually look back on them with a large degree of genuine fondness. 

You see disasters are always going to happen when databases are involved, it's a fact and how we deal with them at the time is equally as important as how we learn from these events. In each of these examples a recovery plan was in existence for both technical and operational viewpoints, as well as that everyone involved knew what was happening, what to do and critically not to add any additional pain to the situation but to arrive at the solution as quickly as possible.

Learning from these events meant asking the right questions and not taking a viewpoint of blame. How can we prevent this, how can we make a recovery process more robust and what can we implement technically and operationally to improve our response times and also critically, when can we schedule the next Disaster Recovery test? 

Worst days? In one sense most definitely yes. Nobody wants to be in the middle of a technical disaster that's going to take hours to resolve but a solid recovery plan, collaborative effort to a solution and an open forum to analyse and learn from the event makes these memories much less painful!

Building a DevOps culture

In my last post I described some of the reasons why organisations fail to implement a successful DevOps methodology. Often there is a misunderstanding of what actually DevOps is but often existing working cultures can be the thing hindering progress.

From webopedia: "DevOps (development and operations) is an enterprise software development phrase used to mean a type of agile relationship between development and IT operations."

Being a consultant I often work in the "space" between different technical roles which gives me an ideal view of how well companies are utilising DevOps practices or sometimes, where they're going wrong.

For me the most crucial part is building strong collaborative working relationships between teams. In the database world this isn't just between developers and DBA's but also any team who in some way interacts with SQL Server. This includes support teams, testers, release and change teams, architects and technical management.

How we seek to build these relationships is pivotal. As I mentioned in the last post, forced collaboration is a common approach that ends up being counter productive. Organisations in their rush to build a DevOps culture can be too rigid in how they look to develop increased inter-team working, often over-formalising and creating very process driven activities. 

Instead organisations should look to encourage rather than dictate and I've seen many successful ways that this achieved, often in a management hands-off style that lets technical teams freely integrate and discuss innovative ways of doing things in much more open forums. When consulting with database professionals we explore common pain points that are shared between teams and how solutions to which are in some way, arrived at by leveraging one another's expertise. 

I say in some way because often the the issue isn't strictly technical but comes down to process instead. Release and change management are great examples of this; developers naturally want to make more and more frequent changes to systems which is against the better nature of traditional DBA's. 

Understanding each others objectives is the first stage of developing a collaborative effort to build upon existing processes (not work around them) to help each other achieve common aims. The word I never use is compromise and it should never feel like that. All involved should feel like they are building solutions together and not feel like that are to required to relinquish something to get there.

This is a common side effect where the approach to DevOps is unbalanced where teams are becoming involved at different stages. Instead organisations must involve all parties as early as possible and avoid maintaining those traditional silos. 

Increased cross functional teams means that teams work much faster together and this effects both development and problem management. One of the obstacles for moving to a platform of more frequent deployment is the risk of introducing much more failure to production systems. Done correctly, a DevOps methodology negates this by increasing the stability of systems and reducing the complexity of releases to environments which in turn makes faults much easier to not just to recognise but also rapidly back out from. 

It sounds like a case of everyone wins and typically I would honestly agree with that statement. A DevOps methodology has benefits for both teams and businesses alike; better employee engagement, much more personal development opportunities, increased productivity, more stable environments, more frequent enhancements and improved response times to defects.   

Issues that are preventing a DevOps methodology from being implemented can be often be resolved from a cultural perspective. A key starting point for organisations is to encourage collaborative relationships early on and for teams/individuals to seize the initiative and start talking about common pain points, desired solutions and building shared knowledge.

Wednesday, 8 August 2018

Reasons why DevOps implementations fail.

Over the last few years we have seen a monumental rise in the number of organisations adopting a DevOps working culture. This trend shows no signs of slowing down whatsoever and whilst many are now realising the benefits of these working practices many are also struggling with the adoption and in some cases it's either stopped completely or not even started.
There's a number of reasons of why this happens and I've seen some common causes, which is actually a good thing because we can recognise where these are occurring or even prevent them before they start to become a problem.

No clear direction.
It's very difficult to drive to a destination if you don't know where you're actually going (trust me on this, I've tried it). This is obviously very reasonable advice however many DevOps projects fail because of a lack of direction. It's actually a common issue with many buzzing trends, particularly in IT where organisations rush into a technology stack or movement just for the sake of doing it. Inevitably this often always leads to failure.

Organisations need to fully understand what a DevOps culture is, its objectives and its close relationships with their existing business processes and frameworks. A common misconception is people often viewing DevOps as a direct replacement for ITIL when in actual fact it's more of a cultural change built on top of ITIL principles. By fully understanding DevOps the benefits of adoption become much more viable and ultimately the path to it's success becomes much simpler.     

Adopting a silo approach to DevOps.
I often see individual teams being very successful in implementing components of DevOps practices only for other teams being behind in terms of adoption and/or understanding. The classic case is the Developer and DBA; the developer is pushing for much more frequent releases (a realised benefit of DevOps) but then the DBA, who perhaps isn't on board, is then trying their best to slow down all of these changes to their production databases. In the words of Bon Jovi, "we're half way there".

This lack of cohesion or a shared direction can result in a significant bottleneck and the DevOps practices start to creak a little. Then other unintended side effects start to creep in, such as blame and finger pointing (some of the things that a healthy DevOps culture seeks to eliminate) and then it can all start to fall apart. 

DevOps for databases is one particular area that is so heavily reliant on lots of people in different roles working together in a collaborative manner. An organisation must identify this and start to encourage teams to engage and build with each other in the early phases of a DevOps implementation, but organisations also have to be very careful in how they seek to develop this collaborative culture...

Forced collaboration.
I believe collaboration underpins the entire DevOps methodology so it makes perfect sense for organisations to work towards developing much closer working relationships between teams however organisations can also over-formalise things, even making the activity seem very process-driven which often leads to much less buy in from individuals, even entire teams.

This causes obvious problems, not least the silo approach mentioned in the previous point, so organisations have to find the balance on being almost relaxed in how they let relationships build and at the same time provide a certain degree of steer. This isn't as easy as it sounds and it is certainly reliant on strong leadership. In my experience successful implementations have been led by those that enable positive change rather than those who try to dictate it.
Rushing into new tools.
New tools are awesome, fact and in a DevOps ecosystem there are so many to pick and choose from that each bring new ways of doing things and [hopefully] improving productivity. The advantages are great, without a doubt but often tools can be implemented way too early without a focus on the underlying processes. This can significantly reduce the effectiveness of what a particular toolset/platform is trying to achieve; a release management tool for example won't improve a change/release process if the process is fundamentally flawed.

The most successful DevOps implementations focus on people and process first, leveraging the strengths and principles of existing frameworks and building strong collaborative working practices. New tools are going to be an important factor of a system designed with DevOps principles in mind but they need to be leveraged correctly and for the right reasons.


These are some of the common pitfalls that I've seen occur during DevOps implementations, many of which are deeply rooted in the working culture, not the technologies. There is undoubtedly so much to gain by adopting the principles and often it requires organisations to step back and observe their working practices first and spend time exploring the benefits of working with DevOps.

In my next post I'll cover how to address some of these issues and offer some insights into the benefits of building collaborative relationships between data professionals.

Sunday, 11 February 2018

The DBA and the Data Platform





I've been consulting now for well over a year, it's been a fantastic experience so far; I've had the pleasure of meeting and working with some truly incredible people and it's also been amazing to be helping organisations get the most from their SQL Server platforms.

The last 12 months have been extremely interesting considering the current technical shift towards a seemingly endless list of new platforms and capabilities. For many organisations this shift has fundamentally changed how they do things (or going to do things) and many are going through their own journey of digital transformation understanding these new technologies and how to leverage them to improve their existing processes.

Right at the centre is data, nowadays considered to be a companies greatest asset, so how we use data or to be more exact how we extract more value from it is a frequent aim of these transformation projects. As a result the data professional roles within an organisation have changed too and many teams and individuals are having to broaden their technical skill set to design, deliver and support these new capabilities.

There is no truer example of this than the role of DBA but yet the question still remains on which direction(s) they should be focusing their future on? By that I mean development; which skills should they be learning, what certification, what products, platforms etc? It's easy to see why it's confusing; there are lots and lots of new technologies available to us but that also means there is no consistent path for administrators to set out on. 

It was easier in the not so distant past; the DBA role tended to come in two distinct flavours; development or operational, but now the line between the two has became far less apparent and in many cases non-existent. The DBA role has without question become much more rounded containing core elements from both "sides" but it goes beyond that. Modern approaches to database administration have reduced the footprint of the operational side of the role so a more DevOps orientated DBA is an essential part of the roadmap, for organisations and individuals alike.

This shared roadmap is actually an integral component of an evolving data platform. I've worked with many different organisations at different stages of development but a key component in each has always been a collaborative working practice between data professionals and I'd say the success of a platform depends on it. Over the past year I've worked alongside many different teams; architects, DBA's, developers, release analysts, change and testing specialists, when working together they all have a great influence of the effectiveness of a data solution. 



Whilst it's fair to say organisations should be encouraging this type of working practice it is very much dependent on individuals to pursue and implement it. For DBA's this means engaging with other teams much more frequently, understanding their skills and processes but also adding their own expertise and skill set to produce a much more co-operative function. 

It might not fully answer this common question of what next for DBA's, there's a lot of factors involved, not least your personal career aspirations but it does show how when looking for your next phase of self development the paths that you need to take could be very close to your current role. 

Your skills as a DBA will always be of paramount importance towards availability, security and performance, but by widening your technical scope by working much more closely with those around you not only improves you as an data professional but also the overall effectiveness your data platform. The starting point is to seek out these opportunities; start building relationships, start knowledge sharing and developing new ideas and different ways of working. 

In many ways the data platform is a reflection of the people tasked with shaping it. If we choose not to broaden ourselves, learn new ideas then at some point we come to a standstill, especially in this rapidly evolving technical landscape. If that happens a data platform stops growing, not in terms of data quantity but most certainly in terms of both capability and perhaps most critical of all, value. 

This puts a big emphasis on self-development but we've always had that, it's nothing new. The key is to seek out those opportunities, start close and work with teams that you will probably already have a working relationship with. As these relationships grow so does the collaborative skill set and as a result business processes improve and technical solutions get faster and more productive.

This also cuts down reactive measures, less time fire fighting means more time delivering enhancements and of course, more learning. Any learning process shouldn't have a cut off point, the more we broaden our horizons the more the effective we become and in turn, our products, our services and our platforms keep on evolving.

This is the true nature of a technical platform and we as data professionals play such an important part not just in the support or development of them but towards shaping their growth, effectiveness and their value. Perhaps the key to all of this is realising the value of our own development alongside it.   

Friday, 17 November 2017

Interview advice for DBAs?

Earlier today I saw an interesting book being advertised on a social media channel I use regularly. The books subject matter was around interview questions for the DBA and had been gathered by a bunch of people who had interviewed at various organisations and presumably the book (because I haven't read it) is being aimed as the how-to-get-that-DBA-job manual.

I'm not going to single the book out because I hope that the author had genuine good intentions when writing it however having on been on both sides of the interview table I can honestly say that an interview guide for this type of role isn't actually going to help as much as having two particular things; relevant skills and experience.

For a technical I'm sorry to say that is all you need. If you've simply studied on the "popular" interview questions and their corresponding answers and you don't have any technical understanding then I'm afraid to say you'll be worked out in a matter of seconds by whoever is conducting the interview and it's probably going to end very quickly.

The other thing to bear in mind is that no interviews are ever the same. Some favour intensive technical tests whilst others can be very informal but in both cases they're designed to and will assess your actual abilities and no matter how hard you try, you cannot take any shortcuts, no matter how well they're advertised!

Sadly this particular book isn't on its own; there are quite literally hundreds of books, ebooks and web articles out there that quite frankly are setting you up to fail and it's wrong. So if you are looking for a new role in the SQL platform please avoid the temptation for taking the fast route, because it's not going to happen.

Now it's fair to say actually preparing for an interview is very different and there are certain things you can do to help your cause, it's pretty high-level advice though; make sure you can talk about (and back-up) your skills listed on your CV, give examples that relate to your previous and/or current job(s) and research the subject matter that you might not be as clued up on if the job description asks for it.

The last point is crucial. I don't mean look into the top 5 interview questions about Always On but if the job asks for it and you haven't had too much exposure then look into the technical guides that are out there and spin up some test scenarios. You can't know everything, the interviewer should be aware of that and a candidate who makes that sort of effort does stand out in an interview, that I can assure you.

So if you are looking for a role right now in the data platform don't forget there are also a wealth of people in the community that there to help just avoid anyone who is offering a clear short-cut that will only end up leading to a dead end.

Saturday, 23 September 2017

Microsoft Visual Studio Dev Essentials

The last article that I posted was about my thoughts on the future of the DBA role and the direction that it and many others are going. If you haven't read it then please give it a read as it's been really interesting to read other peoples views and opinions on this topic and of course, huge thank you to anyone that has taken the time to do so already.

The TL/DR version of the post is that whilst job roles will be changing to keep with all of the technical advancements going on around us this isn't necessarily something to be worried about and it's actually quite an exciting time for us with lots of new these avenues to explore.

That's all fine but how do we go about gaining these new skills and will it be cost-effective to do so? Keeping our skills up to date has been of paramount importance to IT professionals and traditionally it's been down to the individual to shell out for courses and training material just to stay constant. Now there has been a bit of shift in regards to training and thankfully it has swung very much in the favour of those seeking to learn the technologies that are now becomign more common place.. 

Behind this shift are the very same organisations advancing and pushing their platforms into the commercial spaces. The bottom line is that as well as offering these technical solutions they also need people to be able to both use and support them. The more people that can do that the more adoption rates increase and with pay-as-you-use services such as the cloud this is vital.

In a nutshell, this means that they're giving us lots of training, mainly for free!

I don't want to sound like a TV/radio advert and say things like "THIS OFFER WON'T BE HERE FOREVER" but there is a little bit of truth to this. Whilst there are skills shortages in areas such as the cloud platforms these really won't last forever, particularity with adoption rates on a such a steep upward curve. Whilst I'm sure any free training options won't disappear, it does make a lot of sense to get on board now.

One option that I would certainly recommend you go look at is Microsoft Visual Studio Dev Essentials. Although the same suggests is very development focused it's definitely been designed and put together for anyone working in Microsoft's Data Platform. 

There's a bunch of goodies to download such as Visual Studio (surprise, surprise!), Developer Editions of Microsoft R and SQL Server, plans for Office Online and Power BI and crucially a trial subscription for Microsoft Azure.

Then there's the training options:


Now the image is a little blurry (maybe there's some copy and paste courses for me?!) but this is what you get:

3 months of online training with Opsgility (Microsoft Azure training),
3 months of full access to Pluralsight (um, everything!) ,
2 month subscription to Linux Academy (makes sense with SQL 2017 etc),
3 month subscription to WintellectNOW (for developers) and the various courses offered by Microsoft's Virtual Academy.

That is a lot of free training material and when you factor in all the resource available already out there like tutorials, labs and of course the community contributed materials, all in all it makes for one superb learning platform.

Choice is great but I would also recommend pausing for just a second before you hit the activate button on the training modules! Before you do make sure you have a good look at what courses are on offer, what interests you and start to formulate a plan for your learning. It doesn't have to be a strict timetable but being smart upfront will avoid any waste, after all, if you activate each training option at once and you are already pushed for time then some bits will be missed, it's bound to happen (and that would be a shame).

It is worth mentioning for those wondering if it's similar to an MSDN subscription then yes, it's very similar to a cut down version, last time I looked MSDN offers some of the same but for double the subscription period so if you want a paid option, or your organisation will pay for one then it might be worth going down that route.

It's a good time for many reasons; SQL Server 2017 now has a generally availability date of the 2nd of October and with it's native support for Linux, languages like R and Python then as always training is going to be really important and right now there is a lot of material out there for us to start exploring new areas and that is exactly what organisations like Microsoft want (and need), and as such they're heavily supporting it.

It's a really important time to be involved in the data platform right now and with things changing very quickly it makes a lot of sense to be both keeping up with changes and learning more about them. I'll post again shortly and explain some of the areas that I am focusing on but for now, I highly recommend if you haven't already take the time to learn a bit more about Azure or Linux or whatever appeals to you to advance your career as a data professionals.

As always, really interested to hear others views.

Wednesday, 30 August 2017

The future of the DBA role.

For quite some time now there has been a lot of talk on the various social media platforms regarding the future of the DBA role and whether or not it still has a place in the not so distant future.

I've actually wrote this post a few times but it's always ended up being a very lengthy read of epic proportions so I've decided to hack it to bits and get straight to the point(s) and hopefully open it up for some more discussion because I think it's a very hot topic still and I'm really interested to hear peoples opinions on where the role is heading.




Lets get straight to the point; is there a place for the DBA role? The answer to that is most definitely yes, whilst databases exist there will always be the need for administration, but as core administrative tasks are being automated there will be less for DBA to do along these lines.

One example I hear of why the DBA will still be very important is performance tuning, after all in cloud platforms you are literally going to pay for poor performance but then with the likes of automated index management and the arrival of the adaptive query processing family in SQL 2017 we can see that the time we spend on tuning activities could well be shrinking as well.

This is really where the concern is coming from but perhaps this is the wrong way of looking at things. Instead of worrying about what we're going to be doing, or rather not doing, we should be looking at how the technical landscape is changing and looking at the opportunities that lay within it.

Now I'm not saying for that we should all become data scientists (and nobody else is by the way), data science is hard but it is a great example of an emerging area within the data platform that we may seek to explore for own careers, in fact there is no real reason why anyone shouldn't spend at least a bit of time familiarising themselves with the technology and its capabilities. This goes for a lot of functionality now present within SQL Server; it's native support for R and Python, the likes of Always On and In-Memory OLTP becoming more prominent and the rise and rise of PowerShell automation, we can even run on Linux now and of course there is that cloud thing that everyone is talking about.

All of these technologies are integral parts of the Microsoft's vision for an ever widening data platform and as organisations look to implement them and leverage their advantages it is the DBA that can be at the forefront of this technical transformation, if they want to be.

This for me is the real point. The changing technical landscape is only a threat to those unwilling to explore new areas and learn new skills and this certainly doesn't apply exclusively to DBA's, whatever your involvement in IT this technical shift effects you and to put it bluntly, you can either go with it, or be left well behind. 

For DBA's there could be some areas that are out of the comfort zone, perhaps the Dev/BI stacks or architecture but thankfully there is an abundance of training material out there which doesn't cost a small fortune or in some cases anything at all, not to mention all the support coming from within the technical communities. The decision really is yours how you'd like to advance.

Now it is fair to say that organisations won't be simply moving to a new platform overnight, after all how many companies are still on SQL 2005 for example (if you need upgrading, give me a call) but rather than sit back and worry about what might happen and even worse do nothing about it, it's time to start looking at how the emerging technologies can benefit not just the organisations that you work with but how they can benefit you as a data professional.

Sunday, 16 July 2017

A question on index and statistic columns.

This post is a question around how SQL Server creates statistics for a new index or in other words - how can the columns for an index and it's statistics be the opposite away round from one another?!

Here's what I originally found when having a poke around a database; it's a pretty basic clustered index (with names blanked out to protect the innocent).


We can see that the leading column is a varchar(20) type and the next one is varchar(50). Now let's have a look at the statistics for this particular index, just for info this is the only index on the table.


This time the the leading column is the varchar(50) which is then followed by the varchar(20) column, hmm. Now column order is pretty important and interestingly enough the varchar(50) column is actually the more selective of the two so I wondered if this why perhaps the statistics are in a different order. 

In order to test this I've used an old SQL 2014 test database that's been hanging around on a dev instance of mine. It has a very simple table composing of an ID field, first name and last name. Incidentally the first name and last name columns are varchar fields with lengths of 20 and 50.

Here's a new clustered index based on the first and last name columns:


After I have created it (yeah I know the name sucks btw) I'll check the statistics:


That seems fine, or at least the order is the same as the index, which we'd expect. 


Now lets recreate the index but modify the column order so it looks like this, with the last name now the leading column:


Now if I check the statistics...


They are in a different order to how I have just defined my index. 

Now originally I did wonder if the statistics had been manually altered, however just to rule that out if you try to change the columns of statistics in SSMS, you get the following:


Now of course this is with a clustered index, what happens if I try the same with a non clustered index?


Here is my new index where once again I have altered the column order. The statistics this time look like this:


Okaaay, this time the statistics reflect the column order of the non clustered index that I've just created. This makes (at least in this example), the statistic creation process different between a clustered and non-clustered index.

So the question, why the difference? Has SQL Server decided on the best column order for statistics for the clustered and non clustered indexes or has the creation process for the clustered index just not picked up on the column modification or does it even use another method when creating stats?