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

SQLStudies

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.

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

0 comments, 58 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, 123 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

2 comments, 107 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,241 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, 114 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

1 comments, 157 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

3 comments, 2,178 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,496 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

1 comments, 228 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, 264 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, 188 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, 285 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, 823 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,624 reads

Posted in SQLStudies on 8 May 2018

SQL Homework – May 2018 – Create a database

I’ve really got to make a plan here at some point. So far I’ve been just putting down things as I think of them. In September I had you set up a home lab, and in October I had you download and attach some sample databases. What would have been… Read more

2 comments, 139 reads

Posted in SQLStudies on 2 May 2018

SQL and Azure Maze

Something fun for the end of the month. Here are a handful of mazes for you to enjoy. I found them on http://www.printactivities.com/ which has a bunch of great resources for teachers (and bloggers looking for something fun/relaxing for their readers). Click on the images for larger versions of the… Read more

0 comments, 1,620 reads

Posted in SQLStudies on 30 April 2018

What is a DBA?

If you’ve worked in the data industry for more than few minutes then you’ve probably heard the phrase The DBA is dead or some variation on it. In fact, you’ve probably heard it more than once. It’s a common topic of conversation, for obvious reasons, and has been for a… Read more

0 comments, 181 reads

Posted in SQLStudies on 25 April 2018

Command shell steps in SQL Agent jobs only process a single command.

I was working on a SQL Agent job recently that required a series of command shell commands. And it would not work. Days I spent fighting it. I eventually went to sqlhelp. And while no one was able to give me an easy answer directly, Randolph West ( Read more

1 comments, 392 reads

Posted in SQLStudies on 23 April 2018

Exploring system tables, views, SPs etc

I wanted to spend a few minutes highlighting a couple of important tools for figuring out what information you have available to you within SQL Server. sys.all_objects and sys.all_columns. Note the All. These system views are almost exactly the same as sys.objects and sys.columns but with the single… Read more

0 comments, 665 reads

Posted in SQLStudies on 18 April 2018

I’ve gotten a transaction log full error but when I look it’s not full??

Every now and again I’ll get an error telling me a transaction log is full. This can be for any number of reasons (make sure you are taking log backups on your full recovery databases) but many of my co-workers (DBAs and others) get really confused when they check and… Read more

2 comments, 2,073 reads

Posted in SQLStudies on 16 April 2018

Older posts