-->
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.

Archives: May 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, 272 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,643 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,941 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, 407 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, 453 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, 308 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, 443 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, 919 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,734 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

4 comments, 212 reads

Posted in SQLStudies on 2 May 2018