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.

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,820 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,445 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,905 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,870 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, 179 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,183 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, 658 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, 219 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,280 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,528 reads

Posted in SQLStudies on 6 June 2018

SQL Homework – June 2018 – Alter a database

Here we are again. The beginning of another month. At the beginning of each month I put out a SQL Homework post with the intent of getting junior DBAs/database developers to try new things, mid-level DBAs/database developers to practice things they should already know, and Sr DBAs/database developers a boost… Read more

0 comments, 173 reads

Posted in SQLStudies on 4 June 2018

Updated query to view data in the error log

This is one of my favorite scripts. It pulls all of the data from the error log and dumps it into a temp table. I did one version here but it was pretty specific to I/O errors. I also gave some homework to find/build a script like it. So if… Read more

2 comments, 221 reads

Posted in SQLStudies on 31 May 2018

An interview with Brent Ozar

I was talking about interviews (although not the job kind) with a friend and it reminded me of the time I did an email interview with Thomas LaRock (b/t) and then one that I did for someone else. This got me thinking it would be… Read more

5 comments, 2,522 reads

Posted in SQLStudies on 30 May 2018

Interview questions: What’s the first thing you would do if a user reports slowness.

We’ve been doing a fair amount of interviewing recently and one of our big questions is What do you do if a user reports slowness? Like many of our questions, it’s huge and open-ended. I mean there are so many possibilities that could be wrong and depending on your experience… Read more

8 comments, 3,833 reads

Posted in SQLStudies on 28 May 2018

The public role

A common misunderstanding is that the CONNECT permission lets you do more than just connect to a database. It doesn’t. Connection only. So how come there are some things that everyone can do once they are connected to a database? Well, it’s the public role. Everyone is a member and… Read more

2 comments, 376 reads

Posted in SQLStudies on 23 May 2018

What are the system databases?

I get to help with technical interviews every now and again, and one of the questions we always ask is “What are the system databases, and what are they for.” It’s a nice easy softball of a question. Or at least so I always thought until I started using it.… Read more

4 comments, 417 reads

Posted in SQLStudies on 21 May 2018

The trials and tribulations of REVERTing from impersonation

Impersonation is a highly useful tool in your toolbox. With the EXECUTE AS clause you can allow your stored procedure to do things that the user doesn’t have permission to. EXECUTE AS LOGIN/USER gives you the ability to pretend you are someone else test/view their permissions. I frequently use… Read more

1 comments, 283 reads

Posted in SQLStudies on 16 May 2018

Blogging and when to keep your big mouth shut

I’ve been blogging for a while now. I’ve thought about blogging quite a bit. I’ve even done quite a few blogs about blogging. I’ve talked about blogging problems, and I’ve talked about deciding what to blog about. I even have my own list of blogging ideas posted publicly… Read more

1 comments, 424 reads

Posted in SQLStudies on 14 May 2018

Each session should be able to have its own temp table, but there can be problems.

You should be able to create a #temp in every session. That’s the idea, right? It’s one of the things that differentiates a global temp table from a local temp table. But there can be some difficulties with that.

If you are working with reusable code that uses temp… Read more

1 comments, 897 reads

Posted in SQLStudies on 10 May 2018

Why I blog: TSQL Tuesday #102

It’s TSQL Tuesday again! This month our host is Riley Major (b/t) and the subject is Giving Back. He’s given us two options here (as well as the side option of your favorite 2017 improvement). Pick a way that you’d like to give back… Read more

2 comments, 1,701 reads

Posted in SQLStudies on 8 May 2018

Newer posts

Older posts