Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
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.

Pass TV

Recently Adam Machanic (b/t) was telling me about an interesting effect of the top operator. When I asked for an example he pointed me to a few of his sessions from various Pass Summits. They are amazing and I recommend watching them, but they… Read more

3 comments, 192 reads

Posted in SQLStudies on 17 June 2015

Rename a database

Renaming a database isn’t something you do frequently but it does have bit of a gotcha. First of all let’s go over how you actually rename the database. It’s pretty simple.

SSMS
Right click on the database name in the object explorer and select rename or highlight the name and… Read more

3 comments, 159 reads

Posted in SQLStudies on 15 June 2015

Modifying the “New Query” template.

TLDR; Search for and modify the sqlfile.sql file.

During a recent T-SQL Tuesday Boris Hristov (b/t) taught me about SET NOEXEC ON in his post Teaching and Learning. The NOEXEC Thing. When this setting is turned on queries in the current window are compiled but not… Read more

7 comments, 2,027 reads

Posted in SQLStudies on 11 June 2015

A walk-through of creating the Activity Tracking template using Extended Events.

It’s the second Tuesday of the month and that means T-SQL Tuesday time! T-SQL Tuesday is a blog party started by Adam Machanic (b/t) over 5 years ago. Each month a different blogger will present an idea to blog on. Side note: If you are having… Read more

2 comments, 1,406 reads

Posted in SQLStudies on 9 June 2015

Clean up all (most) of the orphans on an instance

Recently we have been doing a number of instance moves as part of a large upgrade project. And as anyone who’s done many of these types of moves knows, orphans are a big pain. You backup your database from one server and restore it to another and all of a… Read more

3 comments, 1,261 reads

Posted in SQLStudies on 3 June 2015

Yet one more quick and easy performance tuning setting

I blogged in the past about two simple commands that can be a big help in performance tuning SET STATISTICS IO and SET STATISTICS TIME. Well I learned a new one recently. Client Statistics Unfortunately there is no t-sql command to turn it on but it’s not terribly difficult.

Query->Include… Read more

1 comments, 180 reads

Posted in SQLStudies on 1 June 2015

Multiple Windows Groups with different default databases

A question came up at work the other day, mostly as a mind game, but you never know it might actually come up at some point. So here is the idea.

  • UserA is a member of Group1, Group2 and Group3.
  • Group1 is set up as a server principal with a…

Read more

2 comments, 909 reads

Posted in SQLStudies on 28 May 2015

Default database

What?
The default database is one of the options when creating a login in SQL Server. This is the initial database that the login will connect to when logging in. Unless of course you specify a different database in your connection string.
 
How?

-- Creating a login with a…

Read more

1 comments, 171 reads

Posted in SQLStudies on 26 May 2015

Adding new users & groups in windows

I do a lot of testing with security in SQL Server. And of course to do a thorough job of it I need not just SQL Server logins but Windows logins. And that means I need to be able to create and delete windows users and groups. I could do… Read more

2 comments, 264 reads

Posted in SQLStudies on 20 May 2015

Extending your metadata with Extended Properties

Ever wanted to put a comment on a table? Or maybe even a column? How about an expiration date on a object? Well as it happens you can. Extended properties allow you to add a name/value property to a number of the objects in SQL Server. In fact if you… Read more

8 comments, 5,014 reads

Posted in SQLStudies on 18 May 2015

Test first; Mileage may vary;

I went to a SQL Saturday recently and saw a number of great sessions. If you haven’t been to a SQL Saturday before I highly recommend it. It’s a day of free training and networking put on by Pass. The training is done by members of the community who… Read more

2 comments, 164 reads

Posted in SQLStudies on 14 May 2015

TSQL Tuesday #66: Monitoring

If a user is going to call me about problem, I’d much rather know about it ahead of time. In fact my favorite problems are the ones I’ve already fixed before the users ever notice it. In order to manage this amazing feat you have to monitor your instances, your… Read more

1 comments, 4,462 reads

Posted in SQLStudies on 12 May 2015

Notes on Presenting

As you may know I’m preparing to write my first presentation. I have a great abstract and an outline of the presentation itself. Next step is creating the Powerpoint slides. Then practicing the presentation itself. So while going to my latest SQL Saturday I decided to take the opportunity… Read more

8 comments, 150 reads

Posted in SQLStudies on 6 May 2015

Building a job to monitor other jobs

The other day Tom Roush (b/t) and Tim Radney (b/t) were having a discussion on twitter about using scheduled windows tasks to run SQL Processes. Now why would you ever want to do this? Well if you are running SQL Server Express… Read more

5 comments, 5,582 reads

Posted in SQLStudies on 4 May 2015

Running Powershell scripts remotely.

I’ve only recently started to play with Powershell (PoSH) but even I’ve begun to discover what a huge number of tasks it can perform. Currently I’m working on a task to run SSIS packages remotely by using Invoke-Command to run DTEXEC on a remote machine. I’ll be posting the final… Read more

2 comments, 478 reads

Posted in SQLStudies on 29 April 2015

What SQL version is my SSIS package?

When SSIS first came out there were huge numbers of jokes and posts about all of the problems and how everyone thought DTS was much better and did they really have to switch? Over the years I’ve come to appreciate SSIS. It is a very powerful and useful tool that… Read more

2 comments, 418 reads

Posted in SQLStudies on 27 April 2015

Backup before you restore

You should always be recoverable. If you haven’t heard that before, take note of it. It’s important.

A while back I wrote about Operational Recovery. This is when there isn’t a disaster but you still need to restore some or all of a database. Someone forgot the WHERE clause… Read more

3 comments, 149 reads

Posted in SQLStudies on 22 April 2015

The hidden security of msdb

To be fair it’s not actually hidden, just not so well known.

Have you ever wondered how to grant permissions to create/modify jobs? How about SSIS packages?

Every database has the following built in roles:

  • db_accessadmin
  • db_backupoperator
  • db_datareader
  • db_datawriter
  • db_ddladmin
  • db_denydatareader
  • db_denydatawriter
  • db_owner
  • db_securityadmin

 
However the msdb database has… Read more

3 comments, 208 reads

Posted in SQLStudies on 20 April 2015

Adding, altering or removing multiple columns from a table

I was recently asked to do some fairly heavy modifications to a table. It involved adding 6 new columns, removing 4 old ones, renaming 4 and then altering the datatype for those 4. I find these kinds of requests rather entertaining in a simplistic sort of way. I try to… Read more

2 comments, 181 reads

Posted in SQLStudies on 16 April 2015

Remotely shutting down an instance

This month for T-SQL Tuesday Mike Donnelly (b/t) decided to pick a topic to fit in with Ed Leighton-Dick’s (b/t) #SQLNewBlogger challenge. His highly open ended topic is to learn something new and blog about it. A great topic for a… Read more

1 comments, 4,680 reads

Posted in SQLStudies on 14 April 2015

Newer posts

Older posts