Category: Editorial

  • Fixing Poor Programming Practices

    I see a lot of poor programming practices in real-world code. I’m sure I’ve written a few myself. I’m also sure that many of you see the same thing and sometimes wonder how that code got deployed.

    One of the things I told myself over the last few years was that I had to accept the reality of situations. It’s easy to complain and say that code should be written differently or entities should be modeled in another way, but I (or you) can’t change that situation today. And it ignores the fact that we are stuck with this environment and we have to move forward from here, not try to rewind the clock and go back in time to design things better at the start.

    Today I’m wondering how you’ve adapted to poor practices and fixed them. Do you have stories to share that might help others deal with their situations? Post comments below, and to help, I’ve got a few stories from my past. Both of these deal with third-party software products that (poorly) use a SQL Server database.

    One company purchased a new accounting package with very poor security practices. The installation noted that the software needed to use the sa account. I couldn’t think of a reason why an accounting package needed sa on an instance, especially as we were installing this on a production server with another database.

    I called the support line and we discussed what was happening. They said that for the accountants to add new users, they needed to add a login and thus needed sa. This was in an older version of SQL Server, but that still didn’t make sense. It was lazy developers not understanding the security model and wanting sysadmin to make things easy. We showed them that we could add a login ourselves and a public user mapped in the database, which the software would pick up and allow finance people to assign rights. Poor practice mitigated.

    In another piece of software, we found a view being used that was querying other views and tables. As you might expect, performance was poor. We decided to “fix” the view with better code, but first, we created a new schema (with our company name) and added their view to this schema. That way we kept their code around. We rewrote their view to run more efficiently, and if we had a support call, we’d replace our better view with the original one from the previous schema. We even had a proc in our schema to do that for us. Of course, our view was kept in our VCS, as it should be.

    If you’ve got stories, let us know in the comments today.

    Steve Jones

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

  • Happy New Year 2024

    We start the New Year on vacation, at least, I hope most of you are relaxing today, spending time with family or friends, and getting a break before we go back to earning a living.

    If you didn’t read Friday’s editorial, you should, and spend part of today getting your 2024 plan together.

    For me, my 2024 plan is to work on growing more of my skills with my employer’s products. While I’ve been at Redgate for 16+ years, we’ve had a lot of rapid change in the last year with Flyway and TDM, and I need to make sure I can help customers with the best recommendations on how to implement the products. I still expect our Solutions Engineers to know the ins and outs of switches, options, and parameters better than I do. However, I need to ensure I’m not too far behind them and know all the capabilities as they’re added. And with weekly DevOps releases, they’re being added quickly.

    I also want to spend more time experimenting with and learning about AI. I don’t know I want to make that my career area, but I do think it’s a tool that will help me in my career, and so I’ll be spending my 10% time there.

    Lastly, the overall framework for my career in 2024 is balancing life with travel. 2023 was hard and I want to be sure I don’t overload myself.

    Happy New Year, and work on your 2024 plan.

  • The 2024 Plan

    Today is the last working day of 2023. Next week we start with the New Year’s holiday on Monday and then many of us go back to work, starting a new year. This is the time of year where many people make New Year’s Resolutions, most of which will be abandoned by March. Some of you might keep to your goals, but it is hard to make substantial changes in your life all at once, especially based on a calendar date.

    Instead of making a resolution this weekend, I would suggest that you think about your career and sketch the outline of a plan. Having a plan is a good way to approach the new year, one that I think might be better than setting goals without a plan. It’s easy to set goals, but without a concrete approach to attacking those goals, I think it becomes difficult to meet them, and more importantly, difficult to drive your career in the direction that makes it better for you.

    I heard some good advice from Brent Ozar at SQL Saturday Boston 2023. He said a good way to build a plan is to think where you would like to be in a year. What would you like to know? Or what skill would improve your career? What do you think would impress your boss? I’m sure most of you working in technology would like to make more money or find a better employer but those are the results after becoming a better data professional, not the plan.

    In a year, I think you can easily spend 50 hours working on your career, in an hour a week. Two hours a week is doable, but it can be hard to do more with a busy life, especially if you have family. However, you can make a couple of scheduled times a week to spend 15, 30, or 60 minutes on something in your career. Consider it a hobby and discuss how and when you’ll find time with your partner and family. Put the times on your calendar and take the time to sit at a computer.

    As for what you work on, look at my questions above, and pick a technology/language/framework/tool/platform/etc. and start typing. Write code, build a server, read what others have written, and practice answering questions that others have asked on your topic, even if you don’t post the answer in a forum.

    In the beginning, it will be hard. You’ll feel like you aren’t accomplishing anything. You might feel like you’re just wasting time, but you’ll learn things and slowly you will be able to actually get something done. Whether you want to train AI models, write better T-SQL, or learn to manage Availability Groups like an expert.

    My last piece of advice is to write. Journal, blog, make notes, but write about what you’ve learned. Whether these are notes for yourself to review before an interview or published blogs that build your brand. Document your journey and I am sure you will be very proud of yourself on this date next year.

    Steve Jones

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

  • Some Relief But Still Some Concern

    Years ago Andy Warren and I were talking about the Database Weekly newsletter and what we wanted to include in each edition. We knew there wasn’t enough news on a weekly basis, so we decided that we’d add blogs from various individuals as well as press releases, patches, and other items related to databases and SQL Server. At some point, we realized we were getting older and one of the unfortunate things that happen is people pass away. We thought about including obituaries as well since we knew a lot of people and we wanted to remember them. We did and this evolved into sqlmemorial.org, which I maintain out of a repo online.

    I got a notice to renew the domain recently and I realized that I hadn’t updated this site in quite some time. That’s a relief and I was glad that I haven’t gotten any notes about anyone in the data community dying.

    At the same time, I worry that I’ve missed someone who participates in the #sqlfamily online, at events, or just has developed a brand and presence in our community. I see a lot of news, but I get busy like most of us and am not always in touch with all communities around the world. Since the decay of Twitter and the scattering of places where people congregate online, it seems there is less interaction and less of a place to see news posted and re-posted by others. I used to hear about a lot of people passing on from Twitter, but these days that doesn’t happen.

    Hopefully, because people aren’t leaving our community that often.

    I remember when Jim Gray was lost and my surprise at his death. I didn’t know him, but I had seen him speak. To me, Robert Davis, Euan Garden, and Brian Moran were shocking. Those were people I’d had many conversations with, shaken their hands and hugged them, and shared meals with them. Tom Roush probably touched me the most, though I knew him through his cancer treatment and I wasn’t shocked when he passed. I know quite a few of the people on the list at SQLMemorial, but not as well as knew those gentlemen.

    I’m at the age where I see more funerals than weddings. I’ve had friends pass, some far too young, and I try to remember that as I go through life, appreciating the good things I experience.

    If you know of someone who has passed, please send me a note, a link to an obituary, or write your own statement of their life and include it in an email. Fork the SQL Memorial repo and submit a pull request so we can remember their life.

    Steve Jones

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