Category: Blog

  • Adding SQL Server 2025 to my Laptop

    I wanted to do some testing of SQL Server 2025 on my laptop. I have written before how I avoided installing SQL Server on the laptop and use containers instead. This post looks at adding a new version on the default port.

    This page on MSLearn shows how to run the SQL Server 2025 container. I started here, when searching for “SQL Server 2025 container” on Google.

    2025-06_line0100

    It was nice to see this updated for 2025, and if I scroll down, I can see the docker container to pull. This is the important thing for me to add a new version of SQL Server.

    2025-06_line0101

    I could go to this URL to see all the tags, since I don’t want just latest. I want to know what version to run: https://mcr.microsoft.com/en-us/artifact/mar/mssql/server/tags

    In this case, I want this tag: 2025-CTP2.1-ubuntu-22.04

    Installing the New Version

    If you read my previous article, I put a folder for each version on my system. In my case, I use c:\data. I’ll make a new folder for SQL 2025.

    Note: I tried to copy this folder and subfolder and then delete files, but got permission errors on stratup. I made new folders and things worked.2025-06_line0104

    Once in here, I’ll create sub folders for my mappings.

    2025-06_line0105 

    I will then copy over the docker-compose.yml file. In my case, I have all the 2022 stuff. I need to edit things.

    2025-06_line0106\

    Most things are fine here, but I’ll update the name and image. These need to use the 2025 values. Here are my edits.

    2025-06_line0107

    I save this, and then I copy/paste the two stop/start batch files. I’ve opened these in code and changed 2022 to 2025. I’ll show one file below, but basically I change the CD command in both.

    2025-06_line0108

    That’s it. If my SQL 2022 container that runs on the default port is stopped, I can double click the start2025.cmd file. Once I do that, I see the image coming down.

    2025-06_line0110

    As soon as that completes, the container starts. I can connect with SSMS to the local host. Same as my 2022 instance, whose container is stopped.

    2024-07-16 20_35_33-000012

    Once I connect, I see the new, default, instance of SQL Server 2025.

    2025-06_line0113

    I do have to remember to start/stop containers, but I love having multiple default instances Winking smile

  • Monday Monitor Tips: Searching Procedures

    A customer was asking about how to track all the stored procedures that execute on their system. We have a section in Redgate Monitor that’s set to look at stored procedures, and you can easily find information about them.

    This is part of a series of posts on Redgate Monitor. Click to see the other posts.

    Finding Stored Procedures

    If I go to the SQLServerCentral_Test system on monitor.red-gate.com, I can scroll down and see the top queries for the time period selected. Here’s an example of a query. The main query window shows SQL, but these are parts of procs.

    2025-05_0124

    If I expand to the full query, we see this is part of a proc. That’s good, in that if the query causing problems is part of a procedure, I can track that down.

    2025-05_0125

    However, what if I know people are reporting a problem that is related to this proc. Can I find it knowing the name? I can’t in the Top Queries.

    2025-06_line0098

    However, we’ve added a Top procedures item to the right. That’s the place to focus on if you use stored procedures. And you should, since they create a looser coupling between your schema and the various business things your app needs to do.

    2025-06_line0096

    On this test system, there are relatively few procedures running, but on many systems in production, this is a large list of things. To the right (not shown) there are various metrics that help you determine which of these items might be stressing your system because of execution counts, duration, CPU, etc.

    2025-05_0123

    If I know I have a procedure, I can search using the box. Here, I’m searching for UserA, but you might be searching for FinanceReport, hoping to find which of the FinanceReport_A, FinanceReport_B, FinanceRepot_Prep, etc. procs is using resources.

    2025-05_0122

    Expanding any of these (clicking the arrow) gives you more detail, as you would get in the Top Queries section.

    Summary

    Tracking down which queries are stressing your system and why can be hard. We added the focus on procedures as this is an easier way for some customers to determine what part of their workload is causing issues. In the top queries, sometimes procedures get lost, so this section lets you drill down into how your system is performing.

    Redgate Monitor is a world class monitoring solution for your database estate. Download a trial today and see how it can help you manage your estate more efficiently.

  • Sabbatical 3 Review

    I’m back. My last day of work was Jun 27 and I came back a few days ago, on Aug 13. Just over six weeks away and I am very grateful to Redgate for allowing me the break from work. This was my third sabbatical, and it was mostly unwired, which was new.

    Or as my wife said last week, I was practicing for retirement.

    I think I was, as I didn’t have firm plans when I started and tried not to feel pressured to get things done, but I did have a nice mix of being productive and relaxing. Here’s a look back.

    Week 1

    Week one started with expenses. I know I was off, but I had a lot of expenses in June with travel to multiple places and I needed expenses done. I spent a few hours Monday getting those done and submitted, as well as playing a little guitar and relaxing.

    The week had me at the gym, swimming outside for the second time this summer, doing some yoga, and a little yard work, but mostly relaxing. It had been a long May and June, and I took it easy, spent time with my wife, cooked for the kids, and tried to unwind.

    This was also almost time for volleyball tryouts, so I was at the gym, running some practice sessions.

    Week 2

    Week 2 was a bunch of medical appointments. I had a yearly checkup, a dentist, and an ortho appointment that diagnosed golfer’s/tennis elbow. I’ve been bothered for months, but hadn’t done much about it. Not great news, but it did slow me down from doing too much work this week. My wife and spent time running errands around my appointments, we got some supplies for our basement, which was being finished, and I relaxed more. I did some chores around the ranch, but not too many.

    Learned how to play “While My Guitar Gently Weeps”, although it’s rough. Need more practice.

    We also booked some trips this week for the sabbatical, which have us something to look forward to.

    I spent some time this week with volleyball tryouts eating up partial days.

    Week 3

    Despite my elbow, I had to go to work this week on the ranch. I wrote about this earlier, but this was roof replacement week for our riding arena.

    A long week.

    Week 4

    We finished midday on Sunday with the roof and Monday morning my wife and I were off to Cancun. The plan was Monday – Friday, but we were enjoying it and decided to stay until Sunday.

    Expensive, indulgent, but we had a good time at Secrets the Vine, adults-only, all inclusive resort. An amazing view from our room and good food and drinks all week (too many).

    2025-08_0137

    I wouldn’t do it again, but despite a good time and enjoying the week with friends, I prefer more movement on vacations, so I’d choose something else. But I’m a weird, type-A, keep moving person.

    Week 5

    Mostly chores, trying to not aggravate my elbow. I had purchased a few things, like a brush cutter, so I got those things assembled and did some work around the ranch. I also built a tire rack, organizing the spare tires in the shed.

    2025-08_0139

    Some gym time, some chores, and some maintenance. I managed to get a couple sprinklers working that had been broken and spent an afternoon at the gym fixing some chairs for the club.

    Week 6

    I had a quick trip to Chicago for work, coming off sabbatical for an event at Wrigley Field. I had never been, so I was willing to do this. My wife was supposed to come for a 2 day trip, but she cancelled with our other plans so she could work. As a result, I was in town for about 26 hours, and enjoyed myself. A beautiful view from across the street.

    2025-08_0136

    It was weird to be back at work and sit in the airport and make a bunch of notes from the event. It’s been awhile since I was typing that much.

    I turned around 24 hours later to head to Big Sur, CA with my wife and our oldest. We’d agreed to take him on a trip and we spent 5 days there, bleeding into this week.

    It was a fun trip, more our style with biking, hiking, and moving around a bit. It’s a beautiful part of the country and the weather was amazing. Here we are a Bixby Bridge.

    2025-08_0138

    Overall

    Overall it felt like was retired. I had things to do, but no real time pressure. I didn’t let the 6 week limit drive me, but just moved around day to day. Taking my time on things and not worrying about what got finished and what didn’t.

    I could have done more, but it was a very relaxing time and I feel ready to get back to work.

  • Advice I Like: Naps

    Learn how to take a 20-minute power nap without embarassment. – from Excellent Advice for Living

    I don’t like naps. In fact, I try to avoid them and keep going, even when I’m tired. I’d rather power through things and then go to bed early and get rest.

    That being said, there are some times when traveling that I’ve decided to just give in and nap. Turn off distractions, leave my phone out of reach, and just sleep. I’ve even done that a few times during the work week at home when I’m exhausted. Getting 20-30 minutes of rest can be refreshing.

    If I sleep. Sometimes I end up laying there and not sleeping and then I feel like I’ve wasted my time.

    This is good advice, and I should follow it more often, not just when land multiple time zones away from home.

    I’ve been posting New Words on Fridays from a book I was reading, however, a friend thought they were a little depressing. They should be as they are obscure sorrows. I like them because they make me think.

    To counter-balance those, I’m adding in thoughts on advice, mostly from Kevin Kelley’s book. You can read all these posts under the advice tag.