Category: Blog

  • THAT Conference 2024 in Wisconsin Dells

    THAT ConferenceI’m headed back to Wisconsin Dells next week for THAT! Conference 2024. This is my second time in Wisconsin and third THAT overall. This time I didn’t submit, but Redgate is sponsoring the event and they asked me to deliver a session. I’ll be talking about Best Practices for Seamless Database Deployments on Tuesday morning, but there are a bunch of other good sessions taking place on Tue-Thur.

    Each time I’ve gone, it’s been an enjoyable experience, learning about various developer and database technologies from others. It’s a fun family atmosphere and I recommend this conference as one to consider if you want to learn about any development topics.

    Last year I learned about Rust and hummus in one talk, about containerized builds, and TDD. I also learned about Mind Over Milkshakes, which inspired that piece.

    If you’re near Madison, this is a short drive. It’s worth checking out THAT and trying the conference if you want a family friendly developer event.

  • Monday Monitor Tips – Adding Redgate Monitor Custom Metrics from SQLMonitorMetrics

    This post talks about adding custom metrics from the sqlmonitormetrics.com site automatically and how this works (and how it doesn’t).

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

    What is SQL Monitor Metrics?

    SQLMonitorMetrics was a site that Redgate built years ago to hold various community submitted metrics that users of Redgate Monitor (formerly SQL Monitor) might care about or be interested in using. Myself, Grant, and a number of other MVPs and SQL Server experts submitted our own metrics in various categories.

    At some point an integration was created to make the install of these metrics easy. This post shows how to do this and not to do this below.

    How to Auto Install Metrics

    The proper way to install metrics is to start in Redgate Monitor. Go to the config screen by clicking the gear in the upper right.

    2024-07-02 14_37_58-Global Dashboard — Mozilla Firefox

    Next, in the Alerts section pick the custom metrics and alerts item. Click this.

    2024-07-02 14_38_43-Configuration — Mozilla Firefox

    This brings up a list of your custom metrics. In the text at the top, it says you can install a metric automatically, but you need to click the link my cursor is highlighted on below.

    2024-07-02 14_39_14-Custom metrics and alerts — Mozilla Firefox

    This brings me to the sqlmonitormetrics site. I’ll click find a metric. I could also click the Custom Metrics at the top.

    2024-07-02 14_40_42-Redgate Monitor Metrics - Custom metrics to use in Redgate Monitor — Mozilla Fir

    I’ll select the first one for this post, but you can filter, search, or scroll around to find one.

    2024-07-02 14_40_51-Custom Metric Archives - Redgate Monitor Metrics — Mozilla Firefox

    The page for the custom metric has a button at the top. Please read the page and test the SQL to see what’s returned before you click this, but when you’re ready, click the button.

    2024-07-02 14_42_59-Detecting Connection Timeouts - Redgate Monitor Metrics — Mozilla Firefox

    When I do this, I’m returned to Redgate Monitor, this time on the Create Custom Metric page, with the fields filled in. As with anything, be sure you review and check to be sure this is what you want.

    2024-07-02 14_43_49-Custom metrics — Mozilla Firefox

    That’s it. When you’re done, click create and your metric and/or alert will be set up.

    How Not to Install Metrics

    This works, but it’s a pain. If I go directly to https://sqlmonitormetrics.red-gate.com/ and then find a metric, such as the number of active backups and restores, I see this, an inactive button:

    2024-07-02 14_45_56-Number of active backups and restores - Redgate Monitor Metrics

    Because I didn’t start from Redgate Monitor, I can’t get this automatically.

    If I scroll down, I see all the fields (in bold) and the entries. I can copy/paste all of these into the form, but this is a slow way to add metrics.

    2024-07-02 14_46_45-Number of active backups and restores - Redgate Monitor Metrics

    Don’t do this. Go to Redgate Monitor and start there (as shown above).

    Summary

    This post shows how to automatically add custom metrics written by others from the sqlmonitormetrics website. This is a good way to add common checks to your system that others use.

    If you see something missing, submit it, or ping me and I’ll write it or find someone else to do so.

    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.

  • Friday Flyway Tips–Comparison Defaults

    One of the little details that I find matter more and more in enterprises is understanding why a tool behaves a certain way. OSS/home-grown ones often have limited docs, but vendor tools should have great docs. Today I learned about how to easily find Flyway comparison defaults, which is the topic of this post.

    I’ve been working with Flyway Desktop for work more and more as we transition from older SSMS plugins to the standalone tool. This series looks at some tips I’ve gotten along the way.

    The Defaults

    Do you know all the SQL Compare defaults? Would you realize it if someone changed them? Do you think they’re the same in Flyway? I actually don’t know about the latter question, and I’m not digging through and comparing the options.

    In any case, I saw an internal discussion recently about documentation and someone pointed out that we have this page that discusses where you change options. It’s good for that purpose, but it doesn’t list the defaults.

    However, at the bottom, there are links:

    If you click through, then you get a list of default options. There is first a link to the full list of options (SQL Server, Oracle) as well as a link to SQL Compare options (SQL Server, Oracle).

    The SQL Server page looks like this:

    2024-07-15 14_44_38-SQL Server comparison options - Flyway - Product Documentation

    Note the sentence just below the image, which links to all the options. The second link is for the SQL Compare option explanations. Below this, you see the default options. This is a table of options, which looks like this image. Note this says certain options are set to true and all others false.

    2024-07-15 15_00_11-SQL Server comparison options - Flyway - Product Documentation

    If I click through to the full list, I see this:

    2024-07-15 14_44_58-SQL Server comparison settings - Flyway - Product Documentation

    I can see all the settings and if they are required. I also see an example of the TOML file below this, where I can set these and store them in version control.

    2024-07-15 14_45_06-SQL Server comparison settings - Flyway - Product Documentation

    If you want to change behavior of the comparison engine in Flyway, or double check if someone else has changed something, this is the place to check.

    Note, if you are looking to induce certain behavior, changes should be made in a TOML file for the project and flow through a PR process for approval and into a pipeline. Don’t edit these options directly, or change them in a pipeline.

    Flyway Enterprise

    Try Flyway Enterprise out today. If you haven’t worked with Flyway Desktop, download it today. There is a free version that organizes migrations and paid versions with many more features.

    If you use Flyway Community, download Flyway Desktop and get a GUI for your migration scripts.

    Video Walkthrough

    I made a quick video showing this as well. You can watch it below, or check out all the Flyway videos I’ve added:

  • A New Word: Solysium

    solysium – n. the unhinged delirium of being alone for an extended period of time – feeling the hours stretch into days until a weird little culture begins to form inside your head, with its own superstitions and alternate histories and a half-mumbled dialect all your own – whose freewheeling absurdity feels oddly liberating but makes it that much harder to reacclimate to the structures and ambiguities of normal social life.

    I don’t find myself alone too often. Not for an extended period of time. As an introvert, I like my alone time for sure, but I also like the energy of other people around. I just prefer some quiet times where no one is talking to me.

    I don’t know that I develop solysium, with a culture in my head. I certainly game some interactions, or reply a conversation, usually wishing I’d said something smarter or wittier.

    For me, I like the world, I like interacting with people and I appreciate the social structures I’m in. I am comfortable in a lot of US social situations, but I can find something fascinating or interesting when I’m in Italy or Germany or England or anywhere else. The differences, even if they’re not something I’d do or like, are amazing. They keep the world a special place.

    From the Dictionary of Obscure Sorrows