SQL Clone
SQLServerCentral is supported by Redgate
Log in  ::  Register  ::  Not logged in


My name is Kenneth Fisher and I am Senior DBA for a large (multi-national) insurance company. I have been working with databases for over 20 years starting with Clarion and Foxpro. I’ve been working with SQL Server for 12 years but have only really started “studying” the subject for the last 3. I don’t have any real "specialities" but I enjoy trouble shooting and teaching. Thus far I’ve earned by MCITP Database Administrator 2008, MCTS Database Administrator 2005, and MCTS Database Developer 2008. I’m currently studying for my MCITP Database Developer 2008 and should start in on the 2012 exams next year. My blog is at www.sqlstudies.com.

What are my permissions?

Permissions are a common concern. One of the most frequent requests I get is I need X, Y and Z permissions. And all too often the conversation goes like this:

Dev: I need write permission to this database.
Me: Ok.
Me: Checks their current permissions.
Me: You already have that… Read more

0 comments, 97 reads

Posted in SQLStudies on 16 August 2018

Complicated linked servers and a bunch of head-desks: T-SQL Tuesday #104

Wayne Sheffield (b/t) is our host this month for the long running blog party (104 months now and running!) started by Adam Machanic (b/t). In this case Wayne is asking us to talk about a time when we hit a brick wall Read more

0 comments, 96 reads

Posted in SQLStudies on 14 August 2018

Putting Object Explorer etc on the right side of SSMS rather than the left.

A while back I was given the advice Move your tabs (Object Explorer etc) to the right side of SSMS. Now I didn’t do it at the time, but recently I decided they were right and I should give it a shot. It’s taking some getting used to, but… Read more

0 comments, 180 reads

Posted in SQLStudies on 8 August 2018

T-SQL Formatters

The other day I was given a truly horribly formatted piece of SQL. Something a bit like this only worse, and with plenty of dynamic SQL.

CREATE TRIGGER [Sales].[iduSalesOrderDetail] ON [Sales].[SalesOrderDetail] 






    DECLARE @Count int;

    SET @Count = @@ROWCOUNT;

    IF @Count = 0 




Read more

3 comments, 140 reads

Posted in SQLStudies on 6 August 2018

SQL Homework – July 2018 – Set up database mail

This month’s homework is pretty simple to say, not necessarily easy to do. Set up database mail.

Why database mail? Well, since last month’s homework was setting up a SQL Agent job, it would be nice to have an easy way to send messages about a jobs progress, success, or… Read more

0 comments, 169 reads

Posted in SQLStudies on 1 August 2018

#SQLCareer 2/4 July 25th 2018

Earlier this month Steve Jones (b/t) suggested that it might be helpful if those of us that work in the IT/database field shared four random days out of our lives. This is one of them. Number two in fact. The first one was the day after… Read more

0 comments, 1,214 reads

Posted in SQLStudies on 30 July 2018

#SQLCareer 1/4 July 19th 2018

Earlier this month Steve Jones (b/t) suggested that it might be helpful if those of us that work in the IT/database field shared four random days out of our lives. Today wasn’t exactly normal, it was my first day back from a 10-day vacation, (Alaskan cruise.… Read more

1 comments, 127 reads

Posted in SQLStudies on 25 July 2018

Processes can dramatically improve your work until they don’t.

As always with something like this, I like to start with a definition so we are all starting in the same place. From dictionary.com.

  1. a systematic series of actions directed to some end.
  2. a continuous action, operation, or series of changes taking place in a definite manner.

Really a… Read more

0 comments, 92 reads

Posted in SQLStudies on 23 July 2018


Recently someone mentioned the LOADHISTORY option of RESTORE. It’s not horribly hard to find in BOL but it wasn’t the easiest thing (at least for me) to understand at first.


Specifies that the restore operation loads the information into the msdb history tables. The…

Read more

2 comments, 2,224 reads

Posted in SQLStudies on 18 July 2018

Counting NULLs

Recently I was doing one of Kendra Little’s (b/t) SQL Server quizzes. Specifically the Quiz: COUNT() in SQL Server. As always I enjoy these quizzes and in this particular case it gave me an idea for a post.

How do NULL values affect the COUNT… Read more

4 comments, 826 reads

Posted in SQLStudies on 16 July 2018

Balancing Security Concerns.

I have a presentation I do every now again on security basics that I’m actually quite proud of. One of the sections at the end is on best practices, where I mention a few important security best practices broken down as follows:

  • Least Maintenance
  • Least Least Surface Area
  • Least…

Read more

2 comments, 1,763 reads

Posted in SQLStudies on 12 July 2018

Code I’d Hate To Live Without: T-SQL Tuesday #104

It’s TSQL Tuesday again! This time our respected host is Bert Wagner (b/t). Quick aside, if you haven’t seen his vlogs before take some time and watch a few. They are entertaining, informative and best of all short :). I’m really enjoying the work Bert! Keep… Read more

1 comments, 3,317 reads

Posted in SQLStudies on 10 July 2018

SQL Homework – July 2018 – Create a SQL Agent Job

For this month’s homework let’s try something a bit different. SQL Agent jobs are a very powerful tool frequently used for backups and maintenance but can also be used for batch processes, exports, etc. To be fair there is better job scheduling software out there but SQL Agent is quite… Read more

0 comments, 1,857 reads

Posted in SQLStudies on 2 July 2018

SQL Puzzle – FizzBuzz3d

I thought for the end of the month it would be fun to do another T-SQL Puzzle. In this case a slight upgrade of the FizzBuzz puzzle using T-SQL. So here are the rules:

Argh: I made a mistake in my rules so I’m correcting them. New text in… Read more

10 comments, 1,820 reads

Posted in SQLStudies on 27 June 2018

Be our guest, be our guest, put our database to the test.

When I think of the public role I often think of the guest database principal (user) at the same time. They aren’t really the same though. For one thing while you can’t remove either one, you can disable the guest and in fact for user databases this is recommended.


Read more

3 comments, 157 reads

Posted in SQLStudies on 25 June 2018

Strings vs Identifiers

A common mistake, and one I make frequently myself is to use a string in place of an identifier, or vise-versa. So to start, let’s have some definitions, shall we?


a linear sequence of characters, words, or other data.


a sequence of characters used to identify or refer…

Read more

3 comments, 3,133 reads

Posted in SQLStudies on 20 June 2018

Misleading errors: “Server is configured for Windows authentication only.” But it’s not!

In general, the errors SQL gives are highly useful. Of course every now and again you get one that’s just confounding. The other day I saw the following error in the log:

Login failed for user ”. Reason: An attempt to login using SQL authentication failed. Server is configured for…

Read more

3 comments, 622 reads

Posted in SQLStudies on 18 June 2018

The identity column, the insert and the linked server.

tl;dr; When doing an insert across a linked server you have to include the list of fields to be inserted into if there is an identity column involved.

A couple of years back I did a list of things I’d learned in my 15 years of experience with identity columns Read more

1 comments, 195 reads

Posted in SQLStudies on 14 June 2018

Moving to Azure: A change in processes – TSQL Tuesday 103

For this month’s t-sql Tuesday our host Bjoern Peters (b/t) wants us to describe our experiences with Azure SQL Database or Azure SQL Managed Instance. Well, unfortunately, although I am very excited about it, I don’t have access to Azure SQL Managed Instance yet. So that… Read more

3 comments, 2,240 reads

Posted in SQLStudies on 12 June 2018

What queries are getting blocked?

Monday Grant Fritchey (b/t) put up a great post EXTENDED EVENTS, THE SYSTEM_HEALTH SESSION, AND WAITS that talks about how the system health extended event session pulls, among other things, queries that have to wait for more than 30 seconds for a resource. He shows us… Read more

0 comments, 2,487 reads

Posted in SQLStudies on 6 June 2018

Older posts