Tag: T-SQL Tuesday

  • T-SQL Tuesday #133–What I Learned From Presenting

    tsqltuesdayThis month Lisa Griffin Bohm is the host and thanks to her from hosting. She was one of the last people I pressured lightly to host. She came up with a very creative invite. She is asking us to share something technical that we learned, that wasn’t related to the actual presentation.

    While I’ve presented many times on various topics, and seen many more talks, I often go for a specific reason. At work it might be because I need to go, but at events, I usually pick a session based on the topic or presenter. Since most do a good job talking about their topic, I had to really think about this one.

    A Couple Choices

    I’ve got two that came to mind as I pondered what wasn’t related to the topic. One is small, with minor impact to my work. The other had a much larger impact to me.

    The first is a story where I was researching for a talk on Always Encrypted in 2016, I ran into an issue I hadn’t expected. This was Microsoft’s first big change to encryption options since 2005, and I was excited about it. I knew about the restrictions with data types, collation, etc, but they seemed to be acceptable to me.

    As I was building demos and working on how to show certificate movement, I created certificates in various ways, I created some in text files using the common PFX format. Little did I know that SQL Server can’t read these. Instead, you need to convert them to PVK, which isn’t well known. Many people use the .cer or .pfx, but for whatever reason, SQL Server doesn’t support those.

    The second story was while rehearsing for a talk at Build. Once again, I was speaking, but delivering only a small piece of a multi-person talk with a few Microsoft employees. Donovan Brown was one of them, and as we worked on timing, transitions, and tailored my section to fit, we had time to chat a bit. This was in the mid days of Visual Studio Team Services, which become Azure DevOps a short time later.

    As I was talking about some of the challenges I’d had in TFS, Donovan showed me a Java app he was maintaining as a side project, which was being built, tested, and released from VSTS. I was surprised, as Microsoft was still mostly focused on their own technology. He showed me some of the any language, any platform, any framework philosophy that was being used to make Azure DevOps a complete platform, not a Microsoft one. I was surprised, and I’ve continued to be as I watch new capabilities and features appear, few of which are tied to Microsoft products.

    That greatly impacted my career, and continues to do so today as I work with more and more customers that use non-Microsoft technologies.

  • T-SQL Tuesday #132 Pandemic Coping

    tsqltuesdayThis year, 2020, has been crazy. What started as a normal year for me, including a sabbatical, turned into a crazy, shutdown, lockdown, stuck at home pandemic around the world.

    My world changed a lot, as I cancelled a trip at the beginning of March, and all subsequent ones. Coaching volleyball stopped, and most events were cancelled, big changes for me.

    At the same time, my daughter came home from college and spent the rest of the semester with us and my oldest switched from teaching in person to being at home and finding a place he could virtually teach.

    This month, Taiob Ali asks us how we are dealing with these changes.

    Coping

    At first, I was coping fine with things fine. I live on a large ranch, my wife works from home, and I’ve been doing so for nearly 20 years. I have an office and am used to working here regularly. We are healthy and financially secure, and mostly it was a pain dealing with the changes in the world.

    As part of the Redgate Community Circleww, we started to think about how to help others, and came up with different ideas. One of mine was to publish some coping tips. At first, I was trying to help others, but over time, I found these to be invaluable to me.

    I get these from Action for Happiness for the most part, though I add some myself. I work through these in my life, often a few days in advance, and then write about them. I was thinking to stop these after June, but many people responded they liked them, and I’ve continued ever since then, which seems like a long time.

    I’ve also found these help me. During August, I struggled with the length of the changes, and the fact that looking forward another 6 months, I couldn’t see an end to the pandemic. The weight of the length of this weighs on me.

    Physical Health

    I’m in my 50s and exercise regularly, usually doing yoga or going to the gym 20+ days a month. My diet is OK, probably better than average America, but not great. Still, while my routine was interrupted in March, with less stuff than I’d like:

    2020-11-09 13_34_53-MapMyRun

    I got better in April and was in a good routine through June.

    2020-11-09 13_35_13-MapMyRun

    Mostly life was good until the end of October.

    I had a trip planned to visit family, but cancelled. My wife got sick, then I did, then my daughter. A week later one of my sons got sick. We had been diagnosed with COVID, and it was both scary and hard. The symptoms weren’t that bad, but all of my energy was sapped. I spent most of two weeks in bed or with very light chores around the house.

    2020-11-09 13_37_35-MapMyRun

    Since then, I feel better, but there are still some gaps in my health. I have no worry of dying, but I am worried about long term physical ability.

    Wear a mask, try not to get it, and if you don’t believe in masks or the disease, you’re a moron. Don’t leave me a comment on what you believe as a non-epidemiologist or non medical professional. Pardon my language, but fuck off.

    Mental Health

    I’ve struggled. Despite working at home for a couple decades, I’m used to changing my environment, going to see others, traveling, and more. Seeing my children depressed from school changes, not seeing the kids I coach, not getting to the gym, not going to restaurants and movies, it got to me.

    The longing for a change of environment, and not seeing the same four walls of my office weigh on me. The struggles I see on the news, especially from so many people losing jobs, businesses, and more are hard. I have a lot of empathy and realize I am incredibly blessed.

    I’ve made an effort to chat with others. To reach out at times, and ask for support from my wife and a few close friends.

    My mental health as suffered, even as I try to cope. I continue to work on this regularly, talking more, and trying to find the good things in my life as much as I can.

    Professional Growth

    I had hoped to do more learning, expecting that this pandemic would be less than six months. On one hand, I greatly underestimated the struggles of being at home all the time. On the other, I got some things done.

    I’ve had different goals this year, and I have spent some time learning more about Power BI, DAX, and visualization. I’ve read more business/non-fiction books this year than in the past. I’m making progress on goals. Not as much as I’d like, but some.

  • T-SQL Tuesday #131–An Analogy

    tsqltuesdayThis month the T-SQL Tuesday invitation is from Rob Volk, the last of the crew that I pushed to host last year at a SQL Saturday. I managed to get four people to agree to host, and all did so. Rob is the fourth this year, and I’m grateful for him and the others for doing this.

    In any case, this month’s invitation asks us to explain what we do. The title is data analogies, which makes sense as most of us participating work with data and so we likely all get asked what we do and we talk about databases. I’ve often said I worked with computers, then I work with databases if someone asks more. Few people want more depth.

    However, while I do work with data, that’s not really the main part of my job. It’s more an adjunct responsibility that I enjoy.

    A Newspaper

    When I started SQLServerCentral with my partners and worked for myself, I had no shortage of people asking me what I did. At Boy Scouts, Volleyball practices, scholarship committees, and more, I was regularly asked what I did for a living. I tried a number of ways to explain the site, but eventually settled on this.

    “I run a newspaper.”

    I really do. I have a daily publishing newsletter that contains information for subscribers. Ads, sometimes funnies or puzzles, and articles they want to read. I have a daily deadline of getting things ready, but fortunately, I don’t have a lot that is time sensitive. It’s hard enough to keep up with a schedule without worrying about article A publishing tomorrow and article B needing to go out the next day.

  • Automation Ideas for T-SQL Tuesday #130

    tsqltuesdayThis month we have another great T-SQL Tuesday topic, and again, a host that I pressured into writing the invitation. Elizabeth Noble (@SQLZelda) and I were talking DevOps last year at a SQL Saturday, just as she was effecting some change at her employer. At an event later in the year, I challenged her to host, and here we are, with a great topic, Automation.

    That’s this month’s invitation. Elizabeth describes the process of using automation to smooth out their deployments to SQL Servers. They slowly built a CICD pipeline and migrated projects over and over to save her time.

    This month, what have we done to automate things? I have a few stories.

    Automating Data Collection

    One of the things that I am passionate about is the SQL Saturday events. I loved that PASS maintained a site, and made a feed of event data available, but over time, we’ve lost some data and I don’t think there is much impetus to maintain this over time.

    As a result, I build an automated process to grab data from the feeds and save it as an XML file on my local machine. I have the basic code up at GitHub, though I need to improve and refactor it a bit. These files change as the organizers update them, so I need a good merge process. Right now I tend to delete all 1-2KB files periodically, as the file is built once the event is approved. However, until all the speakers and sponsors are scheduled the file size is just a few KB. Most events are > 100KB once they are set.

    This is a basic way of grabbing some data, and I’m looking to build a few more data collection processes to grab data in my life and keep it around, just in case some service I use goes kaput.

    Automatic Databases

    I work at Redgate, and one of the things I’ve been spending more time doing is the automation of databases for development with the latest code and test data. This is a challenge, but a few of the things that I’ve done with Redgate that help are as follows:

    1. Use Powershell to automate the creation of SQL Clone images.
    2. Use PowerShell to update SQL Monitor alert values and add instances
    3. Use Flyway in a container to deploy changes
    4. Use our SQL Change Automation cmdlets to deploy changes to databases

    All of these items can be automated so that a user just needs to run a script, or sometimes just click a button.

    I’m slowly getting the PoSh code up on GitHub as I build demos and help customers get things done. Right now, getting organized is the biggest part of my job, because I find these questions coming over and over.

    I’m a bit proponent of DevOps and automation. Use tools and computers to do the tedious, repetitive work. Keep your day focused on solving problems and building/improving scripts.