Daily Coping 3 Jun 2021

I started to add a daily coping tip to the SQLServerCentral newsletter and to the Community Circle, which is helping me deal with the issues in the world. I’m adding my responses for each day here. All my coping tips are under this tag. 

Today’s tip is to exercise outside today in some way.

I wrote this a few days ago because exercise today may be tough. I’m flying to Ft Lauderdale this morning and driving to Key West, so hopefully things will go smooth and I’ll have time to go for a walk by the ocean tonight.

However, when I saw this tip, I decided to go back to one of my routines from lockdown last year. I did yoga outside, taking a break from work and setting up in the sunshine. A little hot, but being out in nature is very refreshing.

Posted in Blog | Tagged , , | Comments Off on Daily Coping 3 Jun 2021

More Remote Work

I’m taking a vacation. A real, honest, get away from home without commitments vacation.

And to a new place!

I’m heading to Key West today, a place I’ve never been. I wanted to go earlier this year, but other things got in the way. However, a friend in FL was heading down for a break and we decided to join them. My sister-in-law heard, and she’s meeting us as well.

It’s almost a week in the sun, though I will need to work a couple days. I’ll take today off to travel and tomorrow to lay in the sun, but for a few days next week I’ll still be in FL and working.

Looking forward to a little writing while I’m staring out at the ocean.

Posted in Blog | Tagged , | 1 Comment

Creating a Symmetric Key–#SQLNewBlogger

Another post for me that is simple and hopefully serves as an example for people trying to get blogging as #SQLNewBloggers.

This is a series on working with the various encryption technologies in SQL Server.

One of the encryption technologies in SQL Server is using keys to encrypt or decrypt data. This post looks at the symmetric key, which is part of the way that you can do the actual encryption of your data in SQL Server. I have a post the discusses how this works, but this post just looks at the use of creating the key.

Note: You may need to create a database master key first, and you can follow the link to do that. If you need an overview of encryption, read A Basic Encryption Primer for SQL Server.

The CREATE Statement

There is DDL For symmetric keys in the form of:

There are also the OPEN and CLOSE commands. For this post, we will look only at the CREATE statement.

The basic statement requires a name, an algorithm, and an encryption mechanism. You cannot create a key that is unprotected in some way. Each of these has different possible values.

You also can optionally add a KEY_SOURCE and an IDENITY_VALUE, which are used to recreate this key if it is removed (or in another database). You can also use a provider, if you have an EKM provider configured. Your CREATE would use the EKM provider and the name of the key from the provider to use in operations. If I want someone else to own this key, I can provide a user name or an application role.

Here is the minimum key create (and the select and drop to check it).

CREATE SYMMETRIC KEY SteveKey
  WITH ALGORITHM = AES_128
  ENCRYPTION BY PASSWORD = 'sdfs'
GO  
SELECT * FROM sys.symmetric_keys AS sk
GO
DROP SYMMETRIC KEY SteveKey
GO

This uses a specific algorithm, which I must provide. There are a number of choices, but in terms of practical choices in 2021, likely really only the AES ones make sense. For the encryption scheme, that depends on what you’ve set up in your system, but you can choose from

  • password
  • symmetric key
  • asymmetric key
  • certificate

You choose the type and enter it, with the name of the object or the = with a password.

That’s really the extent of creating a symmetric key. Any details with an EKM provider really come from the name used in the CREATE PROVIDER command.

SQLNewBlogger

This is something I’ve done a few times to learn how it works and practice implementing encryption. Ultimately, the key management makes most of the column level encryption seem silly, and really I’d do this in the application layer to ensure communications are protected.

I took 20 minutes to write this up, copy some links, and showcase this. If you want to work in this area, do this as well. Practice this and write about what you’ve learned, the good, the bad, and the problems.

Posted in Blog | Tagged , , , | Comments Off on Creating a Symmetric Key–#SQLNewBlogger

Back to Basics, Reaching for the Clouds, and Leveling Up

The three themes for speakers at this year’s PASS Data Community Summit are: Back to Basics, Reach for the Clouds, and Level Up. The goal here is content that covers a wide variety of areas, with many fewer restrictions from previous years. Perhaps the big thing to note for this year’s event is:

Free.

That’s right, this year’s Summit is free for the general conference. That should boost attendance, and it might mean some incredible audiences for this year’s speakers. I’d recommend you submit something and take a chance, as there are opportunities ranging from 10 minute lightning talks to 2 1/2 hour half day sessions. This is a great chance to speak at the largest Microsoft Data Platform focused conference out there. There are also pre-conference sessions. They’ll cost something, but with all the proceeds going to the speakers, I’m looking to support someone that will teach me a few new skills.

We all need fundamentals, and the idea in Back to Basics is practical, day-to-day solutions. All of us build those on a regular basis. What creative, solid solutions have you implemented at work? What code or configuration do you rely on to keep your business moving? Those are the topics to share with others.

The cloud has really started to prove it’s a fantastic solution for many organizations. Not for everything, but for many things. The modern data professional needs to know about the cloud, and when to move or not move. Many of us have been excited by the cloud, and plenty forced into adopting it, but there are lessons and experiences to be shared here. Good and bad.

Level Up is the internal Redgate Software conference, where we look to improve skills. It’s a theme here where we try to help people advance their careers in some way, whether that’s a technical skill, a soft skill technique, or a new way of thinking. I’m glad to see that among the tracks, we have both a Professional Development and a DE&I (diversity, equity, and inclusion) track. Both are ways to help us round out our ability to work in a team. I hope to see lots of “Level Up” type sessions, both technical and non technical, delivered this fall.

I wasn’t sure there ever would be a Summit again, and I am glad that we have a chance to get a large group of incredibly talented speakers and attendees that all care about data, databases, and building better systems, reports, and employees. I’m excited by the free online Summit, and I look forward to a hybrid event in 2022 when we get the chance to connect and smile in person again.

Steve Jones

Listen to the podcast at Libsyn, Stitcher, Spotify, or iTunes.

Posted in Editorial | Tagged , , | 3 Comments