-->
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: June 2015

Zero to Speaker pt 2

A few months ago I wrote a post about the fact that I had actually submitted a session to PASS Summit. Well as I’m sure you are aware the selected sessions have been announced. They were officially announced Friday but I actually received my result email on Thursday evening.… Read more

6 comments, 1,264 reads

Posted in SQLStudies on 29 June 2015

Which user function do I use?

Earlier this week I was scripting out a table with some legacy columns (InsertDate and InsertBy for example). If you have created these type of columns before you have probably put a default on each. InsertDate is pretty easy, probably something like GETDATE() or GETUTCDATE(). But what do you… Read more

1 comments, 1,874 reads

Posted in SQLStudies on 24 June 2015

Copying a TDE database from one instance to another

I got my first real world experience with a TDE (transparent data encryption) database recently. For those who don’t know TDE encrypts all of the data at rest. So the database files are encrypted and the backup is encrypted. The data is automatically decrypted as you read it and encrypted… Read more

9 comments, 577 reads

Posted in SQLStudies on 22 June 2015

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, 471 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, 470 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

10 comments, 2,515 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

4 comments, 1,977 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,505 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, 411 reads

Posted in SQLStudies on 1 June 2015