<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Home on LeeMarkum.com</title><link>https://leemarkum.com/</link><description>Recent content in Home on LeeMarkum.com</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Thu, 05 Feb 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://leemarkum.com/index.xml" rel="self" type="application/rss+xml"/><item><title>Privacy Policy</title><link>https://leemarkum.com/privacy-policy/</link><pubDate>Thu, 05 Feb 2026 00:00:00 +0000</pubDate><guid>https://leemarkum.com/privacy-policy/</guid><description>&lt;h2 id="privacy-policy"&gt;Privacy Policy&lt;/h2&gt;&#10;&lt;p&gt;This privacy policy describes how we collect, use, and protect your personal information when you use our website and services.&lt;/p&gt;&#10;&lt;h3 id="1-information-we-collect"&gt;1. Information We Collect&lt;/h3&gt;&#10;&lt;p&gt;We collect information that you provide directly to us, such as when you create an account, make a purchase, or contact us for support. This may include your name, email address, mailing address, phone number, and payment information.&lt;/p&gt;&#10;&lt;h3 id="2-how-we-use-your-information"&gt;2. How We Use Your Information&lt;/h3&gt;&#10;&lt;p&gt;We use the information we collect to:&lt;/p&gt;</description></item><item><title>Fixing Missing SQL Agent Jobs After a Migration</title><link>https://leemarkum.com/archive/2024/10/fixing-missing-sql-agent-jobs-after-a-migration/</link><pubDate>Mon, 07 Oct 2024 00:00:00 +0000</pubDate><guid>https://leemarkum.com/archive/2024/10/fixing-missing-sql-agent-jobs-after-a-migration/</guid><description>&lt;p&gt; &lt;/p&gt;&#10;&lt;p&gt;I&amp;rsquo;ve been doing migrations fairly continuously for the past 18 months. PowerShell has been my primary mechanism for many parts of the process, including copying jobs from the source SQL Server to the target. That has worked almost without incident each time. However, recently, an app team noticed that there were SQL Server Agent jobs missing on their new 2022 SQL Servers.  Because the first couple of missing jobs also existed on their Development environment, they were able to recreate those jobs in production. They naturally expressed concern that other jobs may be missing.&lt;/p&gt;</description></item><item><title>How to Check SQL Server Security Part 3</title><link>https://leemarkum.com/archive/2022/12/how-to-check-sql-server-security-part-3/</link><pubDate>Wed, 14 Dec 2022 00:00:00 +0000</pubDate><guid>https://leemarkum.com/archive/2022/12/how-to-check-sql-server-security-part-3/</guid><description>&lt;p&gt; &lt;/p&gt;&#10;&lt;p&gt;In the previous two parts we&amp;rsquo;ve reviewed investigating logins to SQL Server, which operate at the top server level. We&amp;rsquo;ve also reviewed looking at logins at the database level. Today, I&amp;rsquo;ll be showcasing another couple of ways to view SQL Server security information.&lt;/p&gt;&#10;&lt;p&gt; &lt;/p&gt;&#10;&lt;p&gt;Open source provides a lot of fantastic scripts and software. One of the more popular ones is the First Responder Kit. In that collection of scripts is sp_Blitz. This script is great because it provides a lot of information. The script results can also be problematic, because it provides so much information. On my little SQL Server I use for testing scripts and writing demos, sp_Blitz returned 68 rows across 8 priority levels or categories of issues. Again, wonderful if you want to see all the things! But, what if you&amp;rsquo;re trying to focus on a particular type of issue, like security? What do you do then?&lt;/p&gt;</description></item><item><title>How to Check SQL Server Security Part 2</title><link>https://leemarkum.com/archive/2022/12/how-to-check-sql-server-security-part-2/</link><pubDate>Tue, 13 Dec 2022 00:00:00 +0000</pubDate><guid>https://leemarkum.com/archive/2022/12/how-to-check-sql-server-security-part-2/</guid><description>&lt;p&gt;In a &lt;a href="https://leemarkum.com/archive/2022/04/how-to-check-sql-server-security-part-1/"&gt;previous post&lt;/a&gt; we started reviewing SQL Server security at the server level by looking at Logins. Is that enough though? It definitely isn&amp;rsquo;t! We need to look at the users at the database level as well. So, let&amp;rsquo;s do that.&lt;/p&gt;&#10;&lt;p&gt; &lt;/p&gt;&#10;&lt;p&gt;Again, the internet is awash with scripts and options so let me give you a place to start.&lt;/p&gt;&#10;&lt;p&gt;&lt;a href="https://github.com/sqlstudent144/SQL-Server-Scripts/blob/master/sp_DBPermissions.sql"&gt;Kenneth Fisher&amp;rsquo;s sp_DBPermissions&lt;/a&gt;&lt;/p&gt;&#10;&lt;p&gt;From the comments in the stored procedure, &amp;ldquo;This stored procedure returns 3 data sets. The first data set is the list of database principals, the second is role membership, and the third is object and database level permissions.&amp;rdquo;&lt;/p&gt;</description></item><item><title>Speaking at the PASS Data Community Summit</title><link>https://leemarkum.com/archive/2022/12/speaking-at-the-pass-data-community-summit/</link><pubDate>Thu, 01 Dec 2022 00:00:00 +0000</pubDate><guid>https://leemarkum.com/archive/2022/12/speaking-at-the-pass-data-community-summit/</guid><description>&lt;p&gt; &lt;/p&gt;&#10;&lt;p&gt;My favorite thing that happened this year was that I was a speaker at the PASS Data Community Summit in November. I presented an online live stream at the world’s largest SQL Server conference, and I did it while in-person at the conference in Seattle! Speaking at the Summit has been a bucket list type item for me for many years.&lt;/p&gt;&#10;&lt;p&gt; &lt;/p&gt;&#10;&lt;p&gt;There is a sense of deep humility in being chosen to present at this conference. The SQL Server community is vast and full of really smart people. Because of this, being chosen to speak is a big honor. I had put in a lot of effort over the last year or so trying to give back to the community that has helped me so much over the years. The Summit has a wide range of topics and technical levels. There is something for everyone who works with SQL Server.&lt;/p&gt;</description></item><item><title>SQL Server Indexing Basics - 7 Lessons Learned</title><link>https://leemarkum.com/archive/2022/11/sql-server-indexing-basics-7-lessons-learned/</link><pubDate>Tue, 01 Nov 2022 00:00:00 +0000</pubDate><guid>https://leemarkum.com/archive/2022/11/sql-server-indexing-basics-7-lessons-learned/</guid><description>&lt;p&gt;SQL Server indexing basics are critical to query and server performance. Resources, like CPU and disk, are affected by the indexes that you have, or the ones you&amp;rsquo;re missing.&lt;/p&gt;&#10;&lt;p&gt; &lt;/p&gt;&#10;&lt;p&gt;In the StackOverflow2013 database we&amp;rsquo;re going to look at Badges and users. Specifically, I want to start by seeing what badges a user has and when that user received them. Some badges, because of the type of badge it is, can be awarded more than once.&lt;/p&gt;</description></item><item><title>6 Reasons to Learn PowerShell</title><link>https://leemarkum.com/archive/2022/10/6-reasons-to-learn-powershell/</link><pubDate>Tue, 04 Oct 2022 00:00:00 +0000</pubDate><guid>https://leemarkum.com/archive/2022/10/6-reasons-to-learn-powershell/</guid><description>&lt;p&gt; &lt;/p&gt;&#10;&lt;p&gt;SQL Server professionals may be reluctant to start using PowerShell.&lt;/p&gt;&#10;&lt;p&gt; &lt;/p&gt;&#10;&lt;p&gt;After all, you already know T-SQL well and can do a lot with that to manage SQL Server.&lt;/p&gt;&#10;&lt;p&gt;I’ve been using PowerShell to manage SQL Server for the last 5 years and it has revolutionized how I interact with SQL Server. For example, I recently needed to update a SQL Agent job across the entire production environment. That&amp;rsquo;s almost 100 SQL Servers. I have a Central Management Server with folders for each product in my employer&amp;rsquo;s portfolio. Then there are folders for Dev, Staging and Prod. I could have manually clicked into the first product family then the prod folder and right clicked that to make a connection to all the SQL Servers in that prod folder. Then I copy paste my script in there to run it against those prod servers I&amp;rsquo;ve connected to.&lt;/p&gt;</description></item><item><title>Getting Started With SQL Server</title><link>https://leemarkum.com/archive/2022/09/getting-started-with-sql-server/</link><pubDate>Mon, 19 Sep 2022 00:00:00 +0000</pubDate><guid>https://leemarkum.com/archive/2022/09/getting-started-with-sql-server/</guid><description>&lt;p&gt;I see a lot of questions on data related Reddit forums and data science groups on LinkedIn about how to get started with SQL. Certainly these people mean that they want to learn the SQL language. I don&amp;rsquo;t think you can do that long term without setting up a home lab. You need your own place to experiment beyond what you can do in an online tutorial where you&amp;rsquo;re typing into a web browser, for example.&lt;/p&gt;</description></item><item><title>SQL Server 2019 CU 16 Introduces Problems for Log Shipping</title><link>https://leemarkum.com/archive/2022/08/sql-server-2019-cu-16-introduces-problems-for-log-shipping/</link><pubDate>Mon, 01 Aug 2022 00:00:00 +0000</pubDate><guid>https://leemarkum.com/archive/2022/08/sql-server-2019-cu-16-introduces-problems-for-log-shipping/</guid><description>&lt;p&gt; &lt;/p&gt;&#10;&lt;p&gt;As a data professional managing SQL Servers, you need to be thinking about Windows and SQL Server patching.&lt;/p&gt;&#10;&lt;p&gt; &lt;/p&gt;&#10;&lt;p&gt;You want to stay up to date, but you also have to be careful because sometimes staying fully up to date comes with the risk that a new patch might break a feature you are using. This is possibly the case for SQL Server 2019 CU 16. If you&amp;rsquo;re using Log Shipping on a database that has TDE enabled and compression is enabled on those backups, then you need to take heed.&lt;/p&gt;</description></item><item><title>One Key Mistake When Installing SQL Server</title><link>https://leemarkum.com/archive/2022/07/one-key-mistake-when-installing-sql-server/</link><pubDate>Fri, 22 Jul 2022 00:00:00 +0000</pubDate><guid>https://leemarkum.com/archive/2022/07/one-key-mistake-when-installing-sql-server/</guid><description>&lt;p&gt;There’s one sure-fire way to set yourself and your applications up for failure when using SQL Server. I&amp;rsquo;ve seen all kinds of people do this.&lt;/p&gt;&#10;&lt;p&gt; &lt;/p&gt;&#10;&lt;p&gt; &lt;/p&gt;&#10;&lt;p&gt;It will cost you performance and create maintenance headaches down the road.&lt;/p&gt;&#10;&lt;p&gt; &lt;/p&gt;&#10;&lt;p&gt; &lt;/p&gt;&#10;&lt;p&gt;Let me explain what it is and why it causes trouble.&lt;/p&gt;&#10;&lt;p&gt; &lt;/p&gt;&#10;&lt;p&gt; &lt;/p&gt;&#10;&lt;p&gt;Hit next, next, next on the installer, accepting all the defaults, and leave it that way.&lt;/p&gt;&#10;&lt;p&gt; &lt;/p&gt;&#10;&lt;p&gt; &lt;/p&gt;&#10;&lt;p&gt;Racing through the installer accepting defaults will:&lt;/p&gt;</description></item><item><title>3 ways to verify that a backup has taken place</title><link>https://leemarkum.com/archive/2022/07/3-ways-to-verify-that-a-backup-has-taken-place/</link><pubDate>Wed, 20 Jul 2022 00:00:00 +0000</pubDate><guid>https://leemarkum.com/archive/2022/07/3-ways-to-verify-that-a-backup-has-taken-place/</guid><description>&lt;p&gt; &lt;/p&gt;&#10;&lt;p&gt;As data professionals responsible for SQL Server, it is drilled into our heads that we need to take backups. But, how do we know we actually have backups available to us when we need them? How can we verify that a backup has been taken? Some types of auditing that an employer has to undergo might require proof of backups. How will you provide it?&lt;/p&gt;&#10;&lt;p&gt;Here are 3 ways I can think of off the top of my head.&lt;/p&gt;</description></item><item><title>SQL Server 2012 End of Support Migration Plan</title><link>https://leemarkum.com/archive/2022/07/sql-server-2012-end-of-support-migration-plan/</link><pubDate>Tue, 12 Jul 2022 00:00:00 +0000</pubDate><guid>https://leemarkum.com/archive/2022/07/sql-server-2012-end-of-support-migration-plan/</guid><description>&lt;p&gt; &lt;/p&gt;&#10;&lt;p&gt;Today is end of support for SQL Server 2012. May it rest in peace.&lt;/p&gt;&#10;&lt;p&gt; &lt;/p&gt;&#10;&lt;p&gt;Migrating a SQL Server can be a lot of work. There are so many things to think about. It&amp;rsquo;s a pain.&lt;/p&gt;&#10;&lt;p&gt; &lt;/p&gt;&#10;&lt;p&gt;&lt;a href="images/Man-Looking-Stressed-pexels-andrea-piacquadio-3752834-300x200.jpg"&gt;&lt;img src="images/Man-Looking-Stressed-pexels-andrea-piacquadio-3752834-300x200.jpg" alt="upgrading SQL Server"&gt;&lt;/a&gt;&lt;/p&gt;&#10;&lt;p&gt;Live view, upgrading SQL Server&lt;/p&gt;&#10;&lt;p&gt; &lt;/p&gt;&#10;&lt;p&gt; &lt;/p&gt;&#10;&lt;p&gt; &lt;/p&gt;&#10;&lt;p&gt; &lt;/p&gt;&#10;&lt;p&gt; &lt;/p&gt;&#10;&lt;p&gt; &lt;/p&gt;&#10;&lt;p&gt; &lt;/p&gt;&#10;&lt;p&gt; &lt;/p&gt;&#10;&lt;p&gt; &lt;/p&gt;&#10;&lt;p&gt;Let me offer you a template of steps to get you started on your planning.&lt;/p&gt;&#10;&lt;p&gt; &lt;/p&gt;&#10;&lt;p&gt;Here’s a quick overview of my process:&lt;/p&gt;&#10;&lt;p&gt; &lt;/p&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;Run Database Migration Assistant against the source SQL Server to get a report of incompatibilities and breaking changes in relation to my target version and edition.&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;p&gt; &lt;/p&gt;</description></item><item><title>A Look Back at SQL Server 2012</title><link>https://leemarkum.com/archive/2022/06/a-look-back-at-sql-server-2012/</link><pubDate>Mon, 27 Jun 2022 00:00:00 +0000</pubDate><guid>https://leemarkum.com/archive/2022/06/a-look-back-at-sql-server-2012/</guid><description>&lt;p&gt; &lt;/p&gt;&#10;&lt;p&gt; &lt;/p&gt;&#10;&lt;p&gt;SQL Server 2012 extended support ends July 12, 2022 – no more patches of any kind. I hope this isn&amp;rsquo;t news to you, and you&amp;rsquo;re already planning a migration. Before I post about a migration plan, though, I&amp;rsquo;d like to take a look back at SQL Server 2012.&lt;/p&gt;&#10;&lt;p&gt; &lt;/p&gt;&#10;&lt;p&gt;What were some new features in SQL Server 2012, and how did they fare over time?&lt;/p&gt;&#10;&lt;p&gt; &lt;/p&gt;&#10;&lt;h2 id="administrative-features-in-sql-server-2012"&gt;Administrative Features in SQL Server 2012&lt;/h2&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;&lt;strong&gt;AlwaysOn Availability Groups:&lt;/strong&gt;&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;p&gt; &lt;/p&gt;</description></item><item><title>How To Read The SQL Server Error Log</title><link>https://leemarkum.com/archive/2022/06/how-to-read-the-sql-server-error-log/</link><pubDate>Thu, 16 Jun 2022 00:00:00 +0000</pubDate><guid>https://leemarkum.com/archive/2022/06/how-to-read-the-sql-server-error-log/</guid><description>&lt;p&gt; &lt;/p&gt;&#10;&lt;p&gt; &lt;/p&gt;&#10;&lt;p&gt;Reading the SQL Server Error Log is important when troubleshooting many issues for SQL Server. Some example issues would be errors related to Always On Availability Groups, long IO occurrence messages, and login failures.&lt;/p&gt;&#10;&lt;p&gt; &lt;/p&gt;&#10;&lt;p&gt;Unfortunately, the SQL Server Error Log can be very full of information, making specific things hard to find, especially if you&amp;rsquo;re just visually scrolling the Error Log. Even if you&amp;rsquo;re recycling the Error Log each day and keeping 30 or more days of error log, on a busy system, the error log can still be quite full, even for a single day.&lt;/p&gt;</description></item><item><title>3 Tips for Writing Good Code as a SQL Developer</title><link>https://leemarkum.com/archive/2022/06/3-tips-for-writing-good-code-as-a-sql-developer/</link><pubDate>Tue, 14 Jun 2022 00:00:00 +0000</pubDate><guid>https://leemarkum.com/archive/2022/06/3-tips-for-writing-good-code-as-a-sql-developer/</guid><description>&lt;p&gt; &lt;/p&gt;&#10;&lt;p&gt;SQL Server Developers are under-rated.&lt;/p&gt;&#10;&lt;p&gt; &lt;/p&gt;&#10;&lt;p&gt;That&amp;rsquo;s right! I&amp;rsquo;m a DBA and I said, &amp;ldquo;SQL Developers are under-rated.&amp;rdquo; Dedicated SQL Developers help I.T. teams by writing efficient code that gets just the data that is needed and in a way that leverages how the database engine works best. How do you ensure you&amp;rsquo;re doing great work for your company and building code that will stand the test of time?&lt;/p&gt;&#10;&lt;p&gt; &lt;/p&gt;&#10;&lt;p&gt;I&amp;rsquo;m so glad you asked!&lt;/p&gt;</description></item><item><title>How to Check SQL Server Security Part 1</title><link>https://leemarkum.com/archive/2022/04/how-to-check-sql-server-security-part-1/</link><pubDate>Wed, 06 Apr 2022 00:00:00 +0000</pubDate><guid>https://leemarkum.com/archive/2022/04/how-to-check-sql-server-security-part-1/</guid><description>&lt;p&gt;You know you need to be thinking about SQL Server security, but maybe you&amp;rsquo;re not sure where to start. Topics like firewalls and ports and port scanners and such may be dancing your mind. Those are good things to think about, but they are not under your sphere of influence as a data professional in charge of SQL Server. So, what can &lt;em&gt;you&lt;/em&gt; do?&lt;/p&gt;&#10;&lt;p&gt;Your first place to start is by looking at the Logins, which as I&amp;rsquo;ve explained in a &lt;a href="https://leemarkum.com/archive/2022/01/what-are-sql-server-logins-and-users/"&gt;previous  post&lt;/a&gt;, are at the level of the SQL Server instance level.&lt;/p&gt;</description></item><item><title>How to Build a SQL Server Inventory Using PowerShell</title><link>https://leemarkum.com/archive/2022/03/how-to-build-a-sql-server-inventory-using-powershell/</link><pubDate>Wed, 02 Mar 2022 00:00:00 +0000</pubDate><guid>https://leemarkum.com/archive/2022/03/how-to-build-a-sql-server-inventory-using-powershell/</guid><description>&lt;p&gt;You&amp;rsquo;re a data professional and you&amp;rsquo;ve been given the keys to a new SQL Server environment. You know you need to build a SQL Server inventory so you know what is in your environment, but how do you get that information?&lt;/p&gt;&#10;&lt;p&gt;One of the things I have talked about in other posts is how to create a SQL Server inventory. I&amp;rsquo;ve discussed using the &lt;a href="https://leemarkum.com/archive/2021/12/building-a-sql-environment-inventory-with-the-map-toolkit/"&gt;MAP Toolkit&lt;/a&gt; and &lt;a href="https://leemarkum.com/archive/2022/02/how-to-build-a-sql-server-inventory-using-t-sql-scripts/"&gt;building your own inventory database using T-SQL&lt;/a&gt;. Today, we&amp;rsquo;ll see another way to generate a list of SQL Servers in your environment.&lt;/p&gt;</description></item><item><title>How to Build a SQL Server Inventory Using T-SQL Scripts</title><link>https://leemarkum.com/archive/2022/02/how-to-build-a-sql-server-inventory-using-t-sql-scripts/</link><pubDate>Mon, 21 Feb 2022 00:00:00 +0000</pubDate><guid>https://leemarkum.com/archive/2022/02/how-to-build-a-sql-server-inventory-using-t-sql-scripts/</guid><description>&lt;p&gt;You need to create a SQL Server inventory. Without this information, you&amp;rsquo;ll be unaware of critical information about the environment your responsible to manage.&lt;/p&gt;&#10;&lt;p&gt;We&amp;rsquo;re on a journey to make sure that you as a DBA know what SQL Servers are in your environment so you know what you&amp;rsquo;re responsible for managing.  As your guide, I discussed in a &lt;a href="https://leemarkum.com/archive/2021/12/building-a-sql-environment-inventory-with-the-map-toolkit/"&gt;previous post&lt;/a&gt;, how to get started with using the MAP Toolkit from Microsoft to get a list of SQL Servers in your environment and some key metadata about them.&lt;/p&gt;</description></item><item><title>Is it ok to use proprietary database features</title><link>https://leemarkum.com/archive/2022/01/is-it-ok-to-use-proprietary-database-features/</link><pubDate>Wed, 26 Jan 2022 00:00:00 +0000</pubDate><guid>https://leemarkum.com/archive/2022/01/is-it-ok-to-use-proprietary-database-features/</guid><description>&lt;p&gt; &lt;/p&gt;&#10;&lt;p&gt;I was recently thinking of SQL Server temporal tables and how there is a perspective that you shouldn&amp;rsquo;t use proprietary features of a product because it locks you into that product. I want to be your guide on this matter.&lt;/p&gt;&#10;&lt;p&gt; &lt;/p&gt;&#10;&lt;h2 id="database-platforms-are-typically-long-term-decisions"&gt;&lt;strong&gt;Database platforms are typically long term decisions&lt;/strong&gt;&lt;/h2&gt;&#10;&lt;p&gt;First of all, that product was chosen for a reason so it&amp;rsquo;s unlikely that any time soon it&amp;rsquo;s going to be replaced. This is especially true if we&amp;rsquo;re talking about database platforms. Doing that type of wholesale swap out is expensive because you&amp;rsquo;re paying you&amp;rsquo;re employees to do the long, tedious work to do that platform switch.&lt;/p&gt;</description></item><item><title>What Are SQL Server Logins and Users</title><link>https://leemarkum.com/archive/2022/01/what-are-sql-server-logins-and-users/</link><pubDate>Fri, 14 Jan 2022 00:00:00 +0000</pubDate><guid>https://leemarkum.com/archive/2022/01/what-are-sql-server-logins-and-users/</guid><description>&lt;p&gt;You&amp;rsquo;re a data professional learning about managing SQL Server and you&amp;rsquo;ve been asked to grant permissions for SQL Server to an individual or a group of individuals. What do you need to understand in order to accomplish this? I&amp;rsquo;ll be your guide to getting started with handling access to SQL Server.&lt;/p&gt;&#10;&lt;p&gt;Let&amp;rsquo;s start with an analogy.&lt;/p&gt;&#10;&lt;p&gt;&lt;a href="images/pexels-brett-jordan-842528_keyfob-scaled.jpg"&gt;&lt;img src="images/pexels-brett-jordan-842528_keyfob-scaled.jpg" alt="SQL Server Logins and users"&gt;&lt;/a&gt;&lt;/p&gt;&#10;&lt;p&gt;Keys and fobs are common place these days for vehicles. Sometimes if you have a fob it ties into the ignition allowing for push button start so no key is needed for that. That&amp;rsquo;s not always the case though. Many people still have key and fob combos on their key ring. For our purposes, we&amp;rsquo;re going to assume that is the case.&lt;/p&gt;</description></item><item><title>Building a SQL environment inventory with the MAP Toolkit</title><link>https://leemarkum.com/archive/2021/12/building-a-sql-environment-inventory-with-the-map-toolkit/</link><pubDate>Mon, 13 Dec 2021 00:00:00 +0000</pubDate><guid>https://leemarkum.com/archive/2021/12/building-a-sql-environment-inventory-with-the-map-toolkit/</guid><description>&lt;p&gt; &lt;/p&gt;&#10;&lt;p&gt;The MAP Toolkit, also called the Microsoft Assessment and Planning Toolkit, is a standard way to obtain information about your Microsoft environment. This includes your SQL Server. The tool is so common that a link to it is included in the SQL Server media. This tool will scan your network and provide a fairly comprehensive report on SQL Servers it finds. The direct link to the MAP Toolkit download is located &lt;a href="https://www.microsoft.com/en-us/download/details.aspx?id=7826"&gt;here&lt;/a&gt;. Be sure to download all the files from that page.&lt;/p&gt;</description></item><item><title>6 Ways to Advance Your IT Career</title><link>https://leemarkum.com/archive/2021/11/6-ways-to-advance-your-it-career/</link><pubDate>Mon, 29 Nov 2021 00:00:00 +0000</pubDate><guid>https://leemarkum.com/archive/2021/11/6-ways-to-advance-your-it-career/</guid><description>&lt;p&gt;The &amp;ldquo;Great Resignation&amp;rdquo; is upon us, or so the internet tells us. People want better working conditions, better wages, just&amp;hellip; better. Large swaths of people are trying to advance their careers. Here are 6 ways to advance your IT career.&lt;/p&gt;&#10;&lt;ol&gt;&#10;&lt;li&gt;Accept that long term loyalty to a small to mid-sized company is likely keeping your salary low and limiting opportunities.&lt;/li&gt;&#10;&lt;li&gt;Use the wizards at &lt;a href="https://www.salary.com"&gt;salary.com&lt;/a&gt; to plug in the job titles you want and discover what you should be making.&lt;/li&gt;&#10;&lt;li&gt;Focus on building technical skills, especially early in your career&lt;/li&gt;&#10;&lt;li&gt;Work on your interviewing skills&lt;/li&gt;&#10;&lt;li&gt;Start blogging&lt;/li&gt;&#10;&lt;li&gt;Start presenting&lt;/li&gt;&#10;&lt;/ol&gt;&#10;&lt;h2 id="how-to-advance-your-it-career-here-is-how-i-did-it"&gt;&lt;strong&gt;How to Advance Your IT Career: Here is How I did It&lt;/strong&gt;&lt;/h2&gt;&#10;&lt;ol&gt;&#10;&lt;li&gt;I realized that long term loyalty to my small to mid-sized company was keeping my salary low.&lt;/li&gt;&#10;&lt;/ol&gt;&#10;&lt;p&gt;Career growth opportunities were limited. The company I was in when I launched my IT career probably had 200-300 people in their corporate office and there were 8-12 local offices that had maybe 5-10 people working out of each of them. So, less than 500 employees. We weren’t big.&lt;/p&gt;</description></item><item><title>Error Messages 8114 or 22122 When Performing Change Tracking Cleanup</title><link>https://leemarkum.com/archive/2021/11/error-messages-8114-or-22122/</link><pubDate>Mon, 22 Nov 2021 00:00:00 +0000</pubDate><guid>https://leemarkum.com/archive/2021/11/error-messages-8114-or-22122/</guid><description>&lt;p&gt; &lt;/p&gt;&#10;&lt;p&gt;You&amp;rsquo;re a data professional and you&amp;rsquo;re trying to keep up with patching a wide range of SQL Server versions and editions. How do you know what&amp;rsquo;s in the CU and whether you should apply it or not? My favorite way to read up on CUs is to go to &lt;a href="https://sqlserverupdates.com/"&gt;SQLServerUpdates&lt;/a&gt; and click around there.  It will take you to the latest CU pages as well as give you a way to see previous CUs that are available.&lt;/p&gt;</description></item><item><title>Thoughts On Pass Data Community Summit 2021</title><link>https://leemarkum.com/archive/2021/11/thoughts-on-pass-data-community-summit-2021/</link><pubDate>Mon, 15 Nov 2021 00:00:00 +0000</pubDate><guid>https://leemarkum.com/archive/2021/11/thoughts-on-pass-data-community-summit-2021/</guid><description>&lt;p&gt; &lt;/p&gt;&#10;&lt;p&gt;Pass Data Community Summit was November 10-12 and was hosted and sponsored by &lt;a href="https://www.red-gate.com/"&gt;RedGate&lt;/a&gt; along with other supporting sponsors like Microsoft and smaller companies like &lt;a href="https://www.minionware.net/"&gt;MinionWare&lt;/a&gt;. Having been to last year&amp;rsquo;s virtual Summit, I think this one was done much better.&lt;/p&gt;&#10;&lt;h2 id="pre-conference-sessions"&gt;&lt;strong&gt;Pre-conference Sessions&lt;/strong&gt;&lt;/h2&gt;&#10;&lt;p&gt;There were a big collection of pre-conference sessions. I attended &amp;ldquo;AWS for SQL Server Professionals&amp;rdquo; because my current employer is entirely in AWS. Erin Stellato had an all day session on Query Store that I attended as well. For a shorter, one hour version of this presentation, click &lt;a href="https://www.youtube.com/watch?v=r9txDDrs-WA"&gt;here&lt;/a&gt; to go to a YouTube presentation by Erin at the Saint Charles SQL Server Meetup. I learned a lot in both all day sessions and I plan on attending pre-conference sessions next time as well.&lt;/p&gt;</description></item><item><title>6 Steps to Build a Training Plan</title><link>https://leemarkum.com/archive/2021/11/6-steps-to-build-a-training-plan/</link><pubDate>Wed, 10 Nov 2021 00:00:00 +0000</pubDate><guid>https://leemarkum.com/archive/2021/11/6-steps-to-build-a-training-plan/</guid><description>&lt;p&gt; &lt;/p&gt;&#10;&lt;p&gt;As an athlete there is a certain amount of preparation that goes into being selected to be on a team, competing for a starting role and then being competitive with the opponent. For tennis players to be competitive and go to the finals in Wimbledon, it takes hours and hours of training, practice, and discipline to eat well before ever stepping on the court in a tournament. To make a basketball team, takes hours of practice by yourself on a basketball court and competing with others and your team mates. To make the starting line up takes hard work, outside of game day. A certain hunger and desire to grow and be more than you currently are is important as an athlete.&lt;/p&gt;</description></item><item><title>6 things to consider when presenting</title><link>https://leemarkum.com/archive/2021/11/6-things-to-consider-when-presenting/</link><pubDate>Mon, 08 Nov 2021 00:00:00 +0000</pubDate><guid>https://leemarkum.com/archive/2021/11/6-things-to-consider-when-presenting/</guid><description>&lt;p&gt; &lt;/p&gt;&#10;&lt;p&gt;&lt;a href="images/pexels-pixabay-2235_microphone-300x199.jpg"&gt;&lt;img src="images/pexels-pixabay-2235_microphone-300x199.jpg" alt=""&gt;&lt;/a&gt;&lt;/p&gt;&#10;&lt;p&gt;Things to consider when presenting&lt;/p&gt;&#10;&lt;p&gt;I&amp;rsquo;ve presented a few times recently and discovered I like doing it. Presenting is a great way to give back to the I.T. community - in this case the SQL Server community. I&amp;rsquo;ve &lt;a href="https://leemarkum.com/archive/2021/07/what-i-learned-from-giving-my-first-presentation/"&gt;previously blogged&lt;/a&gt; about things I learned from giving my first presentation, and what it was like &lt;a href="https://leemarkum.com/archive/2021/10/what-is-it-like-to-be-a-presenter-at-the-news-stars-of-data-virtual-conference/"&gt;presenting at New Stars of Data&lt;/a&gt;. Here are six additional thoughts on presenting.&lt;/p&gt;&#10;&lt;p&gt; &lt;/p&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;&#10;&lt;h2 id="be-sure-you-show-up-early-for-your-presentation"&gt;&lt;strong&gt;Be sure you show up early for your presentation&lt;/strong&gt;&lt;/h2&gt;&#10;&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;p&gt;The day of New Stars of Data, I was up 90 minutes earlier than usual to use the link to the track I was in to join a panel discussion in progress. I just wanted to be sure that the link was going to work and catch a bit of that presentation. I also wanted to be sure I was wide awake when it was time for me to  present. Slumber does not mix well with presenting!&lt;/p&gt;</description></item><item><title>What is it like to be a presenter at the News Stars of Data virtual conference</title><link>https://leemarkum.com/archive/2021/10/what-is-it-like-to-be-a-presenter-at-the-news-stars-of-data-virtual-conference/</link><pubDate>Sun, 31 Oct 2021 00:00:00 +0000</pubDate><guid>https://leemarkum.com/archive/2021/10/what-is-it-like-to-be-a-presenter-at-the-news-stars-of-data-virtual-conference/</guid><description>&lt;p&gt; &lt;/p&gt;&#10;&lt;div style="position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden;"&gt;&#10;&#9;&#9;&#9;&lt;iframe allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share; fullscreen" loading="eager" referrerpolicy="strict-origin-when-cross-origin" src="https://www.youtube.com/embed/eRxGuPsMnzc?autoplay=0&amp;amp;controls=1&amp;amp;end=0&amp;amp;loop=0&amp;amp;mute=0&amp;amp;start=0" style="position: absolute; top: 0; left: 0; width: 100%; height: 100%; border:0;" title="YouTube video"&gt;&lt;/iframe&gt;&#10;&#9;&#9;&lt;/div&gt;&#10;&#10;&lt;p&gt;Back in early July 2021, I presented at the SQL Server Meetup I co-host with &lt;a href="https://www.linkedin.com/in/anthony-fortner-4102ba11a/"&gt;Anthony Fortner&lt;/a&gt;. We had a speaker no show a couple of months prior and then for the July meeting a speaker had to cancel about a week before the meeting. I couldn&amp;rsquo;t let another month go by with no Meetup. So, I created a presentation from nothing, practiced it and gave it live for the first time in about a 7 day time span. It took about 15 hours of work and was my first SQL Server presentation to a public group. I &lt;a href="https://leemarkum.com/wp-admin/post.php?post=1052&amp;amp;action=edit&amp;amp;classic-editor"&gt;learned&lt;/a&gt; a number of things from that experience. Then I gave a revamped version of the presentation to New Stars of Data in late October.&lt;/p&gt;</description></item><item><title>Four Areas to Focus on When You Start A New DBA Role</title><link>https://leemarkum.com/archive/2021/10/four-areas-to-focus-on-when-you-start-a-new-dba-role/</link><pubDate>Mon, 25 Oct 2021 00:00:00 +0000</pubDate><guid>https://leemarkum.com/archive/2021/10/four-areas-to-focus-on-when-you-start-a-new-dba-role/</guid><description>&lt;p&gt; &lt;/p&gt;&#10;&lt;p&gt;You&amp;rsquo;ve just been hired into a DBA role at a new company, or you&amp;rsquo;ve been given the DBA keys at your current company. Maybe you&amp;rsquo;re a SysAdmin and your boss has informed you that you are now supposed to manage the SQL Servers as well as everything else on your plate. In any of these situations, you may have some confidence in your skills, but especially in the case of being a new hire, you have absolutely no true idea of what you&amp;rsquo;re walking into.&lt;/p&gt;</description></item><item><title>Three Keys to SQL Server Performance</title><link>https://leemarkum.com/archive/2021/10/three-keys-to-sql-server-performance/</link><pubDate>Mon, 18 Oct 2021 00:00:00 +0000</pubDate><guid>https://leemarkum.com/archive/2021/10/three-keys-to-sql-server-performance/</guid><description>&lt;p&gt;Everyone wants good performance from their database systems. Some even expect and need a high performing Ferrari all the time. How is this achieved though? What do you need to understand about SQL Server specifically in order to make your company&amp;rsquo;s applications hum along like a well tuned car? We will look at three keys to SQL Server performance.&lt;/p&gt;&#10;&lt;p&gt; &lt;/p&gt;&#10;&lt;p&gt;&lt;a href="images/imgbin_ferrari-png-1024x330.png"&gt;&lt;img src="images/imgbin_ferrari-png-1024x330.png" alt="SQL Server Speed"&gt;&lt;/a&gt;&lt;/p&gt;&#10;&lt;p&gt;SQL Server Performance&lt;/p&gt;&#10;&lt;p&gt; &lt;/p&gt;&#10;&lt;p&gt; &lt;/p&gt;&#10;&lt;h2 id="sql-server-memory"&gt;&lt;strong&gt;SQL Server Memory&lt;/strong&gt;&lt;/h2&gt;&#10;&lt;p&gt; &lt;/p&gt;&#10;&lt;p&gt;1. SQL Server must be able to cache sufficient data in memory&lt;/p&gt;</description></item><item><title>How I Became a Database Administrator</title><link>https://leemarkum.com/archive/2021/10/how-i-became-a-database-administrator/</link><pubDate>Wed, 13 Oct 2021 00:00:00 +0000</pubDate><guid>https://leemarkum.com/archive/2021/10/how-i-became-a-database-administrator/</guid><description>&lt;p&gt;I recently saw a Tweet from Kendra Little where she asked the simple &lt;a href="https://twitter.com/Kendra_Little/status/1446516646097702920"&gt;question&lt;/a&gt;, &amp;ldquo;What got you into databases?&amp;rdquo;  I&amp;rsquo;m intrigued by people&amp;rsquo;s stories of how they got into their current careers so I looked through the thread. There were lots of interesting paths shared and even a blog post was shared by someone who had recently written about how they got into a career involving databases. Kendra&amp;rsquo;s question and all of the interesting responses inspired me to write a post about my story.&lt;/p&gt;</description></item><item><title>How to Use the SQL Server CONCAT Function</title><link>https://leemarkum.com/archive/2021/09/how-to-use-the-sql-server-concat-function/</link><pubDate>Mon, 20 Sep 2021 00:00:00 +0000</pubDate><guid>https://leemarkum.com/archive/2021/09/how-to-use-the-sql-server-concat-function/</guid><description>&lt;p&gt;SQL Server concatenation methods have been enhanced in modern versions of SQL Server. SQL Server 2012 introduced the CONCAT() function. In SQL Server 2017 we get CONCAT_WS().&lt;/p&gt;&#10;&lt;p&gt;A common usage of concatenation, or joining column values together in a string, is combining a FirstName and LastName column into a FullName column.  Another common usage might be for creating an address column that pulls together building number, street, city and zip code.&lt;/p&gt;</description></item><item><title>How to Configure SQL Server Temporal Tables Part 2</title><link>https://leemarkum.com/archive/2021/09/how-to-configure-sql-server-temporal-tables-part-2/</link><pubDate>Mon, 06 Sep 2021 00:00:00 +0000</pubDate><guid>https://leemarkum.com/archive/2021/09/how-to-configure-sql-server-temporal-tables-part-2/</guid><description>&lt;p&gt; &lt;/p&gt;&#10;&lt;p&gt;In the &lt;a href="https://leemarkum.com/archive/2021/08/how-to-configure-sql-server-temporal-tables/"&gt;initial post&lt;/a&gt;, we talked about some very basic items to get you up and running with temporal tables. In part 2, I&amp;rsquo;ll cover a few more things to think about and implement when working with temporal tables.&lt;/p&gt;&#10;&lt;p&gt;In the first post, we looked at altering an existing table to be a temporal table. Now we will look at what is involved in making a table be a temporal table from the very beginning.&lt;/p&gt;</description></item><item><title>How to Configure SQL Server Temporal Tables</title><link>https://leemarkum.com/archive/2021/08/how-to-configure-sql-server-temporal-tables/</link><pubDate>Tue, 24 Aug 2021 00:00:00 +0000</pubDate><guid>https://leemarkum.com/archive/2021/08/how-to-configure-sql-server-temporal-tables/</guid><description>&lt;p&gt;Temporal tables were a new feature in SQL Server 2016. They allow for the tracking of changes without having to set up change tracking, change data capture or triggers.  For certain uses, they are not a replacement for something like change data capture, but would work if the purpose is simply having a record of changes. Temporal tables can also be used for auditing changes to data as well as  point-in-time analysis where users might want to compare data changes over time, or even at a specific point in time.&lt;/p&gt;</description></item><item><title>Copyright</title><link>https://leemarkum.com/copyright/</link><pubDate>Sun, 08 Aug 2021 00:00:00 +0000</pubDate><guid>https://leemarkum.com/copyright/</guid><description>&lt;p&gt;&lt;strong&gt;Copyright&lt;/strong&gt;&lt;/p&gt;&#10;&lt;p&gt;All of the entries on this blog are copyright by Lee Markum. The full content of any post (a post is an entry on the blog) may not be published elsewhere without prior permission from the copyright holder. Portions from blog posts may be posted elsewhere provided they are short (around 10% of any given post) and are attributed to me by name and they must include a link back to this blog, which is currently located at &lt;a href="https://leemarkum.com"&gt;https://leemarkum.com&lt;/a&gt;&lt;/p&gt;</description></item><item><title>How To Use Powershell to Configure Multiple Databases for Log Shipping</title><link>https://leemarkum.com/archive/2021/07/configure-log-shipping-with-powershell/</link><pubDate>Mon, 19 Jul 2021 00:00:00 +0000</pubDate><guid>https://leemarkum.com/archive/2021/07/configure-log-shipping-with-powershell/</guid><description>&lt;p&gt;I recently needed to configure log shipping for multiple databases at once as part of a migration project. I turned to PowerShell to do this.&lt;/p&gt;&#10;&lt;p&gt;But before we get to that part, this post assumes that you&amp;rsquo;ve done the upfront work to create shares for the backups to write to and for the backups to be copied to. This will involve providing the right permissions for the SQL Server service accounts involved in Log Shipping. If you are not familiar with this, that&amp;rsquo;s perfectly fine. Check out &lt;a href="https://docs.microsoft.com/en-us/sql/database-engine/log-shipping/configure-log-shipping-sql-server?view=sql-server-ver15"&gt;this&lt;/a&gt; article in MS Docs first.&lt;/p&gt;</description></item><item><title>What I Learned From Giving My First Presentation</title><link>https://leemarkum.com/archive/2021/07/what-i-learned-from-giving-my-first-presentation/</link><pubDate>Wed, 14 Jul 2021 00:00:00 +0000</pubDate><guid>https://leemarkum.com/archive/2021/07/what-i-learned-from-giving-my-first-presentation/</guid><description>&lt;p&gt;I recently was thrust into a conundrum. I suddenly found myself in need of a speaker for a recent SQL Server Meetup this month. My co-organizer and I had one week to find a presenter, set up a new Meetup, and then publicize so people outside of Meetup would know about it. I decided that was too short notice to go out to  Twitter and ask for volunteers to speak.&lt;/p&gt;</description></item><item><title>What I've Been Doing Recently</title><link>https://leemarkum.com/archive/2021/07/what-ive-been-doing-recently/</link><pubDate>Mon, 12 Jul 2021 00:00:00 +0000</pubDate><guid>https://leemarkum.com/archive/2021/07/what-ive-been-doing-recently/</guid><description>&lt;p&gt;Dear readers, it&amp;rsquo;s been a little while since my last blog post. Life is busy and so I&amp;rsquo;ve been away for a little bit. I am hoping to get back into the swing of things with more blogging though.&lt;/p&gt;&#10;&lt;h1 id="here"&gt;&lt;strong&gt;Here&amp;rsquo;s what I&amp;rsquo;ve been up to.&lt;/strong&gt;&lt;/h1&gt;&#10;&lt;ol&gt;&#10;&lt;li&gt;Keeping a &lt;a href="https://www.youtube.com/channel/UC-oBj2se6a7qFeu4H_rQ8Eg"&gt;SQL Server Meetup&lt;/a&gt; going. I&amp;rsquo;ve been working with my co-organizer, &lt;a href="https://twitter.com/AnthonyFortner7"&gt;Anthony Fortner,&lt;/a&gt; to discuss group details and get speakers lined up. I&amp;rsquo;ve had some difficulty with that recently and I need to go back to the community on Twitter and probably review Sessionize to find some additional people who regularly present.&lt;/li&gt;&#10;&lt;li&gt;Finding and transitioning to new employment. Finding new work feels like a full time job. There is a lot of energy that goes into the process. I found a new home about six weeks ago.&lt;/li&gt;&#10;&lt;li&gt;Because of the new job I landed, I&amp;rsquo;ve been figuring out a plan of attack for learning the necessary things about SQL Server in AWS. I&amp;rsquo;ll likely provide a list of those resources and my plan in a separate blog post.&lt;/li&gt;&#10;&lt;li&gt;Watching the &lt;a href="https://www.youtube.com/playlist?list=PL3EZ3A8mHh0wcu2J1l5yHfkIsT-oVagf1"&gt;6 part series on Azure SQL&lt;/a&gt; from Anna Hoffman and Bob Ward. Coming soon there will be a blog series on their videos. I may use these videos and the Azure SQL learning paths on Microsoft Learn to pursue the &lt;a href="https://docs.microsoft.com/en-us/learn/certifications/exams/dp-300"&gt;DP-300 certification&lt;/a&gt;.&lt;/li&gt;&#10;&lt;li&gt;Continuing to take care of myself.  I&amp;rsquo;ve stuck to my routine of taking Saturdays off as described &lt;a href="https://leemarkum.com/archive/2021/04/steps-i-took-to-handle-burn-out/"&gt;here&lt;/a&gt;.  I&amp;rsquo;ve been watching parts of the NBA Finals with my family and that has been fun and relaxing.&lt;/li&gt;&#10;&lt;li&gt;I built and gave my first recorded, public presentation on SQL Server. You can find that &lt;a href="https://www.youtube.com/watch?v=bsyES02PVpc"&gt;here&lt;/a&gt;.&lt;/li&gt;&#10;&lt;/ol&gt;&#10;&lt;p&gt;I would love to hear from you. Reach out to me via email, &lt;a href="mailto:leem@leemarkum.com"&gt;leem@leemarkum.com&lt;/a&gt;, or on &lt;a href="https://twitter.com/leemarkum"&gt;Twitter&lt;/a&gt;.&lt;/p&gt;</description></item><item><title>Steps I Took To Handle Burnout</title><link>https://leemarkum.com/archive/2021/04/steps-i-took-to-handle-burn-out/</link><pubDate>Mon, 26 Apr 2021 00:00:00 +0000</pubDate><guid>https://leemarkum.com/archive/2021/04/steps-i-took-to-handle-burn-out/</guid><description>&lt;p&gt;I am telling my story about steps I took to handle burnout, but I want to put a disclaimer at the beginning. I am not a mental health professional. Do not construe anything I say to be professional mental health advice.&lt;/p&gt;&#10;&lt;p&gt;I&amp;rsquo;ve always wanted to be a high impact person. I want my life to count for something. I think most people want that. In the United States, where the idea of &amp;ldquo;living the American dream&amp;rdquo; is prominent, this desire to make a difference and to live the dream often leads to people living life by going as fast as possible. By late 2020 I found myself doing that. I found myself going in too many directions.&lt;/p&gt;</description></item><item><title>Top 3 Most Popular Posts of 2020</title><link>https://leemarkum.com/archive/2021/03/top-3-most-popular-posts-of-2020/</link><pubDate>Thu, 01 Apr 2021 00:00:00 +0000</pubDate><guid>https://leemarkum.com/archive/2021/03/top-3-most-popular-posts-of-2020/</guid><description>&lt;p&gt;So, I realize it&amp;rsquo;s now almost April of 2021 when I&amp;rsquo;m posting this. Normally this sort of post would come out in January for the previous year. However, I have a reason for this being late and I&amp;rsquo;ll actually post about that separately.&lt;/p&gt;&#10;&lt;h2 id="showing-my-blog-some-love"&gt;&lt;strong&gt;Showing My Blog Some Love&lt;/strong&gt;&lt;/h2&gt;&#10;&lt;p&gt;In mid-2020 I decided to give my blog more attention. there were a number of reasons for this. First, I&amp;rsquo;d already spent a fair amount of money over the years on hosting and related things so I didn&amp;rsquo;t want to waste that. Second, I really wanted to try to start giving back to the SQL Server community. I have been the recipient of a lot of learning and help through a number of regular, and occasional, bloggers. I have also purchased and mostly read my fair share of SQL Server books, which was another way I had been helped by the community. Third, I wanted a place to record my own troubleshooting and learning so when I needed to do something again, I would have a record of what to do. By the way, I have seen this repeatedly listed as a reason that someone blogs.&lt;/p&gt;</description></item><item><title>My Availability Group Database Isn't Synchronizing</title><link>https://leemarkum.com/archive/2021/03/my-availability-group-database-isnt-synchronizing/</link><pubDate>Wed, 31 Mar 2021 00:00:00 +0000</pubDate><guid>https://leemarkum.com/archive/2021/03/my-availability-group-database-isnt-synchronizing/</guid><description>&lt;p&gt;I currently manage 5 AlwaysOn Availability Groups. Two are on SQL Server 2014 and overdue for an upgrade, while three of them are on SQL Server 2017.  From time to time I have run into a couple of different situations that I needed to troubleshoot and I want to tell you where to look and what to check on in these scenarios. I can&amp;rsquo;t possibly tell you about everything that could go wrong, but I can tell you about my experience with AlwaysOn Availability Groups and let you decide if that experience helps you or not.&lt;/p&gt;</description></item><item><title>SQL Server Query Store Overview</title><link>https://leemarkum.com/archive/2021/01/overview-of-sql-server-query-store/</link><pubDate>Mon, 04 Jan 2021 00:00:00 +0000</pubDate><guid>https://leemarkum.com/archive/2021/01/overview-of-sql-server-query-store/</guid><description>&lt;p&gt;Query Store came out in SQL Server 2016. It was the next evolution of Microsoft&amp;rsquo;s attempts to provide valuable performance data. In this post you&amp;rsquo;re going to learn a bit about the history of native monitoring in SQL Server, why you should be using the Query Store, as well as how to view the information made available in SQL Server Query Store. This post is just an overview meant to get you to jump into using the feature. This feature is rich enough that someone can present on it easily for an entire day.&lt;/p&gt;</description></item><item><title>Measuring Your DBA Skills</title><link>https://leemarkum.com/archive/2020/12/measuring-your-dba-skills/</link><pubDate>Mon, 14 Dec 2020 00:00:00 +0000</pubDate><guid>https://leemarkum.com/archive/2020/12/measuring-your-dba-skills/</guid><description>&lt;p&gt;Over the last 9 weeks I took you on a journey of skills and career topics related to being a SQL Server DBA. We looked at the Production DBA. We saw skills and career topics from the beginning to mid-career to Senior DBA. Then we looked at the Development DBA and their skills and career development needs. Finally there was a wrap up post.&lt;/p&gt;&#10;&lt;p&gt;To make it easier for everyone to get to these posts, I decided to bring them all together on a single page.&lt;/p&gt;</description></item><item><title>Insufficient System Memory - Failed Allocate Pages</title><link>https://leemarkum.com/archive/2020/12/insufficient-system-memory-failed-allocate-pages/</link><pubDate>Wed, 09 Dec 2020 00:00:00 +0000</pubDate><guid>https://leemarkum.com/archive/2020/12/insufficient-system-memory-failed-allocate-pages/</guid><description>&lt;p&gt; &lt;/p&gt;&#10;&lt;h2 id="unable-to-start-sql-server"&gt;&lt;strong&gt;&lt;em&gt;Unable to Start SQL Server&lt;/em&gt;&lt;/strong&gt;&lt;/h2&gt;&#10;&lt;p&gt;In my own local SQL Server I ran across a problem starting the SQL instance. I went to SQL Server configuration Manager and manually started the SQL Server instance. The UI showed the instance had started. I opened SSMS and tried to connect. And I waited, waited and waited some more until it didn&amp;rsquo;t connect and threw an error.&lt;/p&gt;&#10;&lt;h2 id="how-to-locate-the-sql-server-error-log"&gt;&lt;strong&gt;&lt;em&gt;How To Locate the SQL Server Error Log&lt;/em&gt;&lt;/strong&gt;&lt;/h2&gt;&#10;&lt;p&gt;I knew I could look at the SQL Server Error Log to get more information on what had gone wrong.  I browsed to the directory where the log file is. For any system that is found by going to the drive where the binaries have been installed and go to \Program Files\Microsoft SQL Server\SQLServerVersionNumber.InstanceName\MSSQL\Log. In that location you will look for files like Errorlog, errorlog.1 through errorlog.6 The file with no number at the end is the most recent Error Log. Double click it and open in your favorite viewer. As I read through the file, I came across the below.&lt;/p&gt;</description></item><item><title>How Do I Measure My DBA Skills Part 9</title><link>https://leemarkum.com/archive/2020/12/how-do-i-measure-my-dba-skills-part-9/</link><pubDate>Mon, 07 Dec 2020 00:00:00 +0000</pubDate><guid>https://leemarkum.com/archive/2020/12/how-do-i-measure-my-dba-skills-part-9/</guid><description>&lt;h1 id="production-and-development-dba-skills-and-things-we-didnt-touch-on"&gt;Production and Development DBA Skills and Things We Didn&amp;rsquo;t Touch On&lt;/h1&gt;&#10;&lt;p&gt;We&amp;rsquo;ve covered a lot of ground for Production and Development DBAs in terms of the skills and applicable career topics. We&amp;rsquo;ve mentioned necessary skills with T-SQL, backup/restore, automation, PowerShell, troubleshooting, SSIS, SSRS, patching, Query Store, HA/DR, leadership and emotional intelligence. That&amp;rsquo;s quite a list! However, looking back at the series, there are still a number of things that weren&amp;rsquo;t mentioned.&lt;/p&gt;</description></item><item><title>Introduction To PowerShell For The DBA Part 3</title><link>https://leemarkum.com/archive/2020/12/introduction-to-powershell-for-the-dba-part-3/</link><pubDate>Wed, 02 Dec 2020 00:00:00 +0000</pubDate><guid>https://leemarkum.com/archive/2020/12/introduction-to-powershell-for-the-dba-part-3/</guid><description>&lt;p&gt;Hello dear reader! This is the third post in a series to help you get started automating things with PowerShell. You will be looking at how to start and stop SQL Server using PowerShell as well as setting the Max Server Memory setting, measuring free disk space and more.&lt;/p&gt;&#10;&lt;p&gt;This series is just an introduction to PowerShell and basic functionality you might be interested in as a SQL Server Database Administrator or as a System Administrator responsible for SQL Server. Because it is introductory I don&amp;rsquo;t have examples of long scripts that do a series of complex things as part of these posts. What the series does have are one or two line scripts that are still powerful and help you explore what is available to you in PowerShell.&lt;/p&gt;</description></item><item><title>How Do I Measure My DBA Skills Part 8</title><link>https://leemarkum.com/archive/2020/11/how-do-i-measure-my-dba-skills-part-8/</link><pubDate>Mon, 30 Nov 2020 00:00:00 +0000</pubDate><guid>https://leemarkum.com/archive/2020/11/how-do-i-measure-my-dba-skills-part-8/</guid><description>&lt;h1 id="senior-development-dba"&gt;&lt;strong&gt;Senior Development DBA&lt;/strong&gt;&lt;/h1&gt;&#10;&lt;p&gt;You&amp;rsquo;ve now likely reached the last stop in your career as a Development DBA. You have arrived at the Senior level. What skills do you have or should you be working on as a Senior Development DBA? I&amp;rsquo;m glad you asked. Let&amp;rsquo;s find out.&lt;/p&gt;&#10;&lt;h2 id="senior-development-dba--7-years-of-experience"&gt;&lt;strong&gt;Senior Development  DBA – 7+ years of experience&lt;/strong&gt;&lt;/h2&gt;&#10;&lt;ol&gt;&#10;&lt;li&gt;&#10;&lt;ol&gt;&#10;&lt;li&gt;Most competencies from the previous levels.&lt;/li&gt;&#10;&lt;li&gt;Advanced analysis of SQL Server Performance issues using advanced techniques to increase performance and/or stability. This could involve server level monitoring and analysis to identify issues or concerns.&lt;/li&gt;&#10;&lt;li&gt;Makes decisions regarding SQL Server architecture, development strategies and overarching performance considerations, often in tandem with Development team or even the Infrastructure team.&lt;/li&gt;&#10;&lt;li&gt;Regularly participates in code reviews of mid-level to Senior Devs and other DBAs, offering best practices and guidance and may assist in implementation.&lt;/li&gt;&#10;&lt;li&gt;Fosters and protects healthy development environment, including Source control, controlled or automated migrations, and advanced development/QA Data curation via data masking technologies and potentially other methods.&lt;/li&gt;&#10;&lt;li&gt;Makes significant contributions to the design of migrations and upgrades for SQL Server and may provide assistance to other, more junior members of the team, when it comes to implementation.&lt;/li&gt;&#10;&lt;li&gt;Leads knowledge sharing in four or more areas.&lt;/li&gt;&#10;&lt;li&gt;May contain competencies from Production DBA levels up to level 2 or 3.&lt;/li&gt;&#10;&lt;li&gt;Regularly demonstrates good self-awareness, self-management, social awareness and relationship management skills (emotional intelligence&lt;/li&gt;&#10;&lt;/ol&gt;&#10;&lt;/li&gt;&#10;&lt;/ol&gt;&#10;&lt;h2 id="automating-sql-server-processes"&gt;&lt;strong&gt;&lt;em&gt;Automating SQL Server Processes&lt;/em&gt;&lt;/strong&gt;&lt;/h2&gt;&#10;&lt;p&gt; &lt;/p&gt;</description></item><item><title>How Do I Measure My DBA Skills Part 7</title><link>https://leemarkum.com/archive/2020/11/how-do-i-measure-my-dba-skills-part-7/</link><pubDate>Mon, 23 Nov 2020 00:00:00 +0000</pubDate><guid>https://leemarkum.com/archive/2020/11/how-do-i-measure-my-dba-skills-part-7/</guid><description>&lt;h1 id="lead-development-dba"&gt;&lt;strong&gt;Lead Development DBA&lt;/strong&gt;&lt;/h1&gt;&#10;&lt;p&gt;Over the past few weeks I have been writing about DBA skills for various career levels, and for a couple of different DBA types - the Production DBA and the Development DBA. Today, we&amp;rsquo;re examining the Lead Development DBA. You&amp;rsquo;ll discover what this person needs to know.&lt;/p&gt;&#10;&lt;h2 id="dev-dba-iiilead-development-dba--5-to-7-years"&gt;&lt;strong&gt;DEV DBA III/Lead Development DBA – 5 to 7 Years&lt;/strong&gt;&lt;/h2&gt;&#10;&lt;ol&gt;&#10;&lt;li&gt;All competencies from &lt;a href="https://leemarkum.com/archive/2020/11/how-do-i-measure-my-dba-skills-part-6/"&gt;previous level&lt;/a&gt;.&lt;/li&gt;&#10;&lt;li&gt;Manages most administrative aspects of non-prod environments without assistance from other DBAs.&lt;/li&gt;&#10;&lt;li&gt;Participate in T-SQL development and database design of advanced complexity.&lt;/li&gt;&#10;&lt;li&gt;Investigates potentially complex data issues within SQL Server.&lt;/li&gt;&#10;&lt;li&gt;May have several years of progressive experience with SSIS, SSRS or SSAS.&lt;/li&gt;&#10;&lt;li&gt;Administers source control systems for the environment.&lt;/li&gt;&#10;&lt;li&gt;Regularly automates tasks. This should include the use of T-SQL, SQL Server Agent, and PowerShell.  May include the use of other languages like Python or C#.&lt;/li&gt;&#10;&lt;li&gt;Creates and manage design documentation related to development work.&lt;/li&gt;&#10;&lt;li&gt;Regularly explores, learns and implements new SQL Server development features. Examples would include new T-SQL enhancements and new feature sets like Temporal Tables for SQL Server 2016 and Data Virtualization for SQL Serer 2019..&lt;/li&gt;&#10;&lt;li&gt;Advanced understanding of execution plans, indexes, and query tuning.&lt;/li&gt;&#10;&lt;li&gt;Investigate complex data integrity/repair issues within SQL Server.&lt;/li&gt;&#10;&lt;li&gt;Leads in knowledge sharing in two or more areas from levels I, II, or III.&lt;/li&gt;&#10;&lt;li&gt;Assists with SQL Server migrations and upgrades in DEV/QA or production.&lt;/li&gt;&#10;&lt;li&gt;Mentors Junior DBA&amp;rsquo;s and Developers.&lt;/li&gt;&#10;&lt;li&gt;Participates in code reviews.&lt;/li&gt;&#10;&lt;li&gt;May contain competencies from Production DBA levels up to level 1 or 2.&lt;/li&gt;&#10;&lt;li&gt;Demonstrates emotional intelligence and may take an interest in leadership roles.&lt;/li&gt;&#10;&lt;/ol&gt;&#10;&lt;p&gt;So let&amp;rsquo;s dive into a few of these points in the skill list.&lt;/p&gt;</description></item><item><title>Introduction To PowerShell For The DBA Part 2</title><link>https://leemarkum.com/archive/2020/11/introduction-to-powershell-for-the-dba-part-2/</link><pubDate>Sun, 22 Nov 2020 00:00:00 +0000</pubDate><guid>https://leemarkum.com/archive/2020/11/introduction-to-powershell-for-the-dba-part-2/</guid><description>&lt;p&gt;In &lt;a href="https://leemarkum.com/archive/2020/11/introduction-to-powershell-for-the-dba-part-1/"&gt;Part 1&lt;/a&gt; of this series we began to look at how you can leverage PowerShell as a DBA and there was a brief discussion about automation. Today you will experiment with the DBATools command Copy-DbaLogin and learn about Out-Gridview and the -whatif switch.&lt;/p&gt;&#10;&lt;p&gt;Let&amp;rsquo;s suppose you have one, or more logins you need to get from one SQL instance to another.  Perhaps you are setting up a new test environment for SQL Server 2019 and you need  to move this login to that environment. Maybe this is one node of a SQL Server AlawaysOn Availability Group and you need to get this login, with its SID, on each node of the AG. Below you see I have a screenshot of a login called mysqltestlogin. It&amp;rsquo;s on a SQL Server 2017 instance.&lt;/p&gt;</description></item><item><title>Introduction To PowerShell for the DBA Part 1</title><link>https://leemarkum.com/archive/2020/11/introduction-to-powershell-for-the-dba-part-1/</link><pubDate>Wed, 18 Nov 2020 00:00:00 +0000</pubDate><guid>https://leemarkum.com/archive/2020/11/introduction-to-powershell-for-the-dba-part-1/</guid><description>&lt;h2 id="automating-tasks-with-powershell"&gt;&lt;strong&gt;&lt;em&gt;Automating Tasks With PowerShell&lt;/em&gt;&lt;/strong&gt;&lt;/h2&gt;&#10;&lt;p&gt;What we&amp;rsquo;re really talking about in this series is automation, specifically by using PowerShell. Now, in simple terms, automation is about removing the human, manual element in doing tasks. Why should you care about that? Automation will provide the following benefits:&lt;/p&gt;&#10;&lt;p&gt; &lt;/p&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;Automation saves you time&lt;/li&gt;&#10;&lt;li&gt;Automation provides consistency&lt;/li&gt;&#10;&lt;li&gt;Automation results in reduced and easier troubleshooting&lt;/li&gt;&#10;&lt;li&gt;Automation can use your current inventory of T-SQL Scripts&lt;/li&gt;&#10;&lt;li&gt;Automation is easier to get started with than you think&lt;/li&gt;&#10;&lt;li&gt;Automation skills are a mostly required skill for career advancement&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;p&gt; &lt;/p&gt;</description></item><item><title>How Do I Measure My DBA Skills Part 6</title><link>https://leemarkum.com/archive/2020/11/how-do-i-measure-my-dba-skills-part-6/</link><pubDate>Tue, 17 Nov 2020 00:00:00 +0000</pubDate><guid>https://leemarkum.com/archive/2020/11/how-do-i-measure-my-dba-skills-part-6/</guid><description>&lt;h1 id="development-dba-ii"&gt;&lt;strong&gt;Development DBA II&lt;/strong&gt;&lt;/h1&gt;&#10;&lt;p&gt;With the &lt;a href="https://leemarkum.com/archive/2020/11/how-do-i-measure-my-dba-skills-part-5/"&gt;last post&lt;/a&gt;, we began talking about the Development DBA and the skills needed at the beginning of this career path. Now it&amp;rsquo;s time for you to ponder what the next level looks like.&lt;/p&gt;&#10;&lt;h2 id="development-dba-ii--2-to-4-years-of-experience"&gt;&lt;strong&gt;&lt;em&gt;Development DBA II – 2 to 4 Years of Experience&lt;/em&gt;&lt;/strong&gt;&lt;/h2&gt;&#10;&lt;ol&gt;&#10;&lt;li&gt;All competencies from level 1&lt;/li&gt;&#10;&lt;li&gt;Develop basic to intermediately complex stored procedures, triggers, views and other database objects.&lt;/li&gt;&#10;&lt;li&gt;Will have some experience with SSRS, SSIS, and/or SSAS development, deployment and possibly administration.&lt;/li&gt;&#10;&lt;li&gt;May administer source control systems for the environment.&lt;/li&gt;&#10;&lt;li&gt;Promotes SQL changes from Dev up through all environments, including production.&lt;/li&gt;&#10;&lt;li&gt;Contributes to automation, particularly using native SQL Server methods, but could also leverage PowerShell or other languages for automating tasks (Python, C#, etc.)&lt;/li&gt;&#10;&lt;li&gt;Designs pre-prod testing of SQL code prior to production upgrades or migrations. This includes performance and regression testing.&lt;/li&gt;&#10;&lt;li&gt;Basic to mid-level understanding of execution plans, indexes, SQL Server statistics, and query tuning.&lt;/li&gt;&#10;&lt;li&gt;Investigate basic to moderately complex data integrity/repair issues within SQL Server&lt;/li&gt;&#10;&lt;li&gt;May begin leading in knowledge sharing in some capacity in one or more areas from level I or II.&lt;/li&gt;&#10;&lt;li&gt;May take an active interest in leadership and in development of leadership skills, including emotional intelligence.&lt;/li&gt;&#10;&lt;/ol&gt;&#10;&lt;p&gt;In years 2 through 4 the Dev DBA will work with more complex T-SQL such as recursive CTE&amp;rsquo;s, and error handling with TRY CATCH or the THROW syntax will likely be introduced at this stage. You may begin writing database views during this part of your career and leveraging them to make query writing a bit simpler for yourself and others. You are likely to be exposed to T-SQL Triggers and you&amp;rsquo;ll need to understand them and even maybe write a few triggers of your own.&lt;/p&gt;</description></item><item><title>How Do I Measure My DBA Skills Part 5</title><link>https://leemarkum.com/archive/2020/11/how-do-i-measure-my-dba-skills-part-5/</link><pubDate>Mon, 09 Nov 2020 00:00:00 +0000</pubDate><guid>https://leemarkum.com/archive/2020/11/how-do-i-measure-my-dba-skills-part-5/</guid><description>&lt;h1 id="development-dba"&gt;&lt;strong&gt;Development DBA&lt;/strong&gt;&lt;/h1&gt;&#10;&lt;p&gt;We&amp;rsquo;ve been on a journey recently in this series as we discuss measuring your DBA skills. Previous posts have been intriguing to you. You like where this is going and yet, your skills are different from what we&amp;rsquo;ve been discussing in this initial part of the series.&lt;/p&gt;&#10;&lt;p&gt;Maybe you are a Developer who works with databases and you find SQL Server very interesting. You build some tables and write some queries as part of your work and you really like doing it. You like trying to figure out how to make your initial draft query for your project run faster. You have conversations about this with other Developers or maybe even a DBA or two at your company. What you hear resonates with you and deepens the interest in SQL Server. You wonder, &amp;ldquo;Is there a place for me in the SQL Server world? What would I do if I did a career pivot to work with SQL Server almost exclusively?&amp;rdquo; Enter the Development Database Administrator.&lt;/p&gt;</description></item><item><title>How Do I Measure My DBA Skills Part 4</title><link>https://leemarkum.com/archive/2020/11/how-do-i-measure-my-dba-skills-part-4/</link><pubDate>Mon, 02 Nov 2020 00:00:00 +0000</pubDate><guid>https://leemarkum.com/archive/2020/11/how-do-i-measure-my-dba-skills-part-4/</guid><description>&lt;p&gt;Dear reader, we&amp;rsquo;ve been on a bit of a journey recently so that you can discover what skills are needed at various levels or phases of your career.  The first three phases have been covered in previous blog posts and you have now come to the Senior level for the Production DBA. So, how do you measure the skills a Senior Production DBA should have?&lt;/p&gt;&#10;&lt;p&gt;&lt;a href="images/Tape-Measure-pexels-pixabay-162500-scaled.jpg"&gt;&lt;img src="images/Tape-Measure-pexels-pixabay-162500-scaled.jpg" alt=""&gt;&lt;/a&gt;&lt;/p&gt;&#10;&lt;h2 id="senior-production-dba--7-years-of-experience"&gt;&lt;em&gt;&lt;strong&gt;Senior Production DBA – 7+ years of experience&lt;/strong&gt;&lt;/em&gt;&lt;/h2&gt;&#10;&lt;ol&gt;&#10;&lt;li&gt;Most competencies from the previous levels.&lt;/li&gt;&#10;&lt;li&gt;Advanced analysis of SQL Server issues using native tools such as Extended Events, Perfmon, Query Store and 3rd party monitoring tools.&lt;/li&gt;&#10;&lt;li&gt;Makes decisions regarding SQL Server architecture, hardware, virtualization and storage, often in tandem with an infrastructure team.&lt;/li&gt;&#10;&lt;li&gt;Designs high availability and DR solutions and may provide guidance to other team members during implementation.&lt;/li&gt;&#10;&lt;li&gt;Plans SQL Server migrations.&lt;/li&gt;&#10;&lt;li&gt;Leads knowledge sharing in four or more areas.&lt;/li&gt;&#10;&lt;li&gt;May possess some competencies from DEV DBA levels up to level 2 or 3.&lt;/li&gt;&#10;&lt;li&gt;Regularly demonstrates good self-awareness, self-management, social awareness and relationship management skills (emotional intelligence)&lt;/li&gt;&#10;&lt;/ol&gt;&#10;&lt;p&gt;You will notice that in previous lists of skills, I have listed skill 1 as &amp;ldquo;All competencies from the previous level.&amp;rdquo; However, I have not done that in this case, why? There are at least two reasons that I will detail.&lt;/p&gt;</description></item><item><title>How Do I Measure My DBA Skills Part 3</title><link>https://leemarkum.com/archive/2020/10/how-do-i-measure-my-dba-skills-part-3/</link><pubDate>Mon, 26 Oct 2020 00:00:00 +0000</pubDate><guid>https://leemarkum.com/archive/2020/10/how-do-i-measure-my-dba-skills-part-3/</guid><description>&lt;p&gt;In this series on measuring your DBA skills, we&amp;rsquo;ve been discussing what skills you should have at each phase of your career.  So far we&amp;rsquo;ve covered the &lt;a href="https://leemarkum.com/archive/2020/10/how-do-i-measure-my-dba-skills-part-1/"&gt;entry level skills&lt;/a&gt; and the &lt;a href="https://leemarkum.com/archive/2020/10/how-do-i-measure-my-dba-skills-part-2/"&gt;phase 2&lt;/a&gt; skills a Production DBA needs. In this part of the series you&amp;rsquo;re discovering what a Production DBA needs to know or be able to do at each stop along the career journey.  If you want career development, you need to work on these skills in order to move forward.&lt;/p&gt;</description></item><item><title>How-Do-I-Measure-My-DBA-Skills-Part-2</title><link>https://leemarkum.com/archive/2020/10/how-do-i-measure-my-dba-skills-part-2/</link><pubDate>Tue, 20 Oct 2020 00:00:00 +0000</pubDate><guid>https://leemarkum.com/archive/2020/10/how-do-i-measure-my-dba-skills-part-2/</guid><description>&lt;p&gt;You may be wondering, &amp;ldquo;How can I know what phase of my career I am in? How can I see what the next steps might look like in terms of skills I may need to move forward?&amp;rdquo;&lt;/p&gt;&#10;&lt;p&gt;As people change jobs, the gears of career progression are turning.  Some new roles may be the same as the recent previous one. Some new roles will have larger spheres of influence and some may have better titles that require new skills. Like the gears in this picture, your job roles fit together and show a progression of sorts.&lt;/p&gt;</description></item><item><title>How Do I Measure My DBA Skills Part - 1</title><link>https://leemarkum.com/archive/2020/10/how-do-i-measure-my-dba-skills-part-1/</link><pubDate>Mon, 12 Oct 2020 00:00:00 +0000</pubDate><guid>https://leemarkum.com/archive/2020/10/how-do-i-measure-my-dba-skills-part-1/</guid><description>&lt;p&gt; &lt;/p&gt;&#10;&lt;p&gt;Career development and progression is a hot topic for everyone.  It starts really early in life like when some adult asks you, &amp;ldquo;What do you want to be when you grow up?&amp;rdquo; You might have said &amp;ldquo;firefighter&amp;rdquo;, &amp;ldquo;ballerina&amp;rdquo;, &amp;ldquo;ice skater&amp;rdquo;, or &amp;ldquo;gymnast&amp;rdquo;.  I&amp;rsquo;m certain you didn&amp;rsquo;t say &amp;ldquo;DBA&amp;rdquo;, but here you are anyway, at my blog, trying to figure out a career as a Database Administrator.&lt;/p&gt;&#10;&lt;p&gt;So, what does career progression look like for a Database Administrator?  How do you move forward in your career with SQL Server? What skills should you have at year 2? Year 5? Year 10? This post will help you answer those questions.&lt;/p&gt;</description></item><item><title>3 Ways to Restore SQL Server Databases</title><link>https://leemarkum.com/archive/2020/10/3-ways-to-restore-sql-server-databases/</link><pubDate>Mon, 05 Oct 2020 00:00:00 +0000</pubDate><guid>https://leemarkum.com/archive/2020/10/3-ways-to-restore-sql-server-databases/</guid><description>&lt;p&gt;This is likely the last in a series of three posts about backups and restores.  My aim with this series has been to give you an idea of the options available and a basic start on using those options. I&amp;rsquo;m not trying to go in-depth on the subject of backups and restores.&lt;/p&gt;&#10;&lt;p&gt;Today will be about getting you going on the concept of restoring databases in SQL Server.  I&amp;rsquo;m using a local install of SQL Server 2017 on my desktop PC to demonstrate these techniques.&lt;/p&gt;</description></item><item><title>5 Ways to Make SQL Server Backups</title><link>https://leemarkum.com/archive/2020/09/5-ways-to-make-sql-server-backups/</link><pubDate>Mon, 28 Sep 2020 00:00:00 +0000</pubDate><guid>https://leemarkum.com/archive/2020/09/5-ways-to-make-sql-server-backups/</guid><description>&lt;p&gt;Last time we discussed &lt;a href="https://leemarkum.com/archive/2020/09/5-types-of-sql-server-backups/"&gt;5 backup types for SQL Server&lt;/a&gt;.  Now I want to introduce you to five ways to make backups in SQL Server. I can&amp;rsquo;t possibly explore all the options available with each of these six methods. There is a lot to cover for even a &amp;ldquo;simple&amp;rdquo; topic like backups.&lt;/p&gt;&#10;&lt;h2 id="method-1-using-the-ssms-gui-to-make-a-sql-server-back-up"&gt;&lt;em&gt;&lt;strong&gt;Method 1: Using the SSMS GUI to Make a SQL Server Back up&lt;/strong&gt;&lt;/em&gt;&lt;/h2&gt;&#10;&lt;p&gt; &lt;/p&gt;&#10;&lt;p&gt;For those readers who like the SSMS GUI, there is good news.  SQL Server Management Studio offers a fairly straightforward method for backing up a database. Once you connect to the SQL Server instance containing the database you want to back up, left click on the &amp;ldquo;+&amp;rdquo; sign next to the Databases folder.  Then right click the name of the database you want to backup, choose Tasks, then choose the Backup option in the fly out menu.&lt;/p&gt;</description></item><item><title>5 Types of SQL Server Backups</title><link>https://leemarkum.com/archive/2020/09/5-types-of-sql-server-backups/</link><pubDate>Wed, 16 Sep 2020 00:00:00 +0000</pubDate><guid>https://leemarkum.com/archive/2020/09/5-types-of-sql-server-backups/</guid><description>&lt;p&gt;One of the foundational responsibilities of a DBA is making sure that backups are available.  SQL Server has several foundational types of backups that can be made. Before I dive into that though, I want to ask a question that seems to have a fairly obvious answer.&lt;/p&gt;&#10;&lt;h2 id="why-take-backups"&gt;&lt;em&gt;&lt;strong&gt;Why take backups?&lt;/strong&gt;&lt;/em&gt;&lt;/h2&gt;&#10;&lt;ol&gt;&#10;&lt;li&gt;You want to be able to recover from data corruption or mistakes made when people make changes directly to the data - like when they write and run a script in SSMS, outside of an application that&amp;rsquo;s using a set of tested stored procedures.&lt;/li&gt;&#10;&lt;li&gt;You want to be able to refresh you non-prod environments so developers have data that looks like prod  to develop against.&lt;/li&gt;&#10;&lt;li&gt;You want to have backups so you can test whether you can restore and how long it will take&lt;/li&gt;&#10;&lt;li&gt;You want backups as they are often an essential part of the migration process from one SQL Server to another - usually newer SQL Server, or to Azure.&lt;/li&gt;&#10;&lt;/ol&gt;&#10;&lt;h2 id="sql-server-full-backups"&gt;&lt;em&gt;&lt;strong&gt;SQL Server Full Backups&lt;/strong&gt;&lt;/em&gt;&lt;/h2&gt;&#10;&lt;p&gt;What does a full backup accomplish?  A full backup, creates a backup of the entire database. It is all-inclusive, containing the entire database structure and all the data.  When a full backup starts, the Log Sequence Number is recorded and when the full backup completes, the Log Sequence Number is recorded.  This Log Sequence Number is the mechanism used by SQL Server to know what order INSERTS, UPDATES or DELETES occurred in.  As such, having the beginning and ending Log Sequence number recorded as part of the full backup allows for a transactionally consistent backup because the full backup is aware of the changes that took place while the backup was being made.  This allows for recovery of those transactions during the restore process. This full backup serves as the base backup, or starting point for all differential and log backups after it.  Each time a new full backup is taken, a new base backup point is created.&lt;/p&gt;</description></item><item><title>How Do You Find Good SQL Server Training Resources?</title><link>https://leemarkum.com/archive/2020/09/how-do-you-find-good-sql-server-training-resources/</link><pubDate>Wed, 09 Sep 2020 00:00:00 +0000</pubDate><guid>https://leemarkum.com/archive/2020/09/how-do-you-find-good-sql-server-training-resources/</guid><description>&lt;p&gt; &lt;/p&gt;&#10;&lt;p&gt; &lt;/p&gt;&#10;&lt;p&gt;&lt;a href="images/Teacher-Mentor-pexels-christina-morillo-1181398-1024x684.jpg"&gt;&lt;img src="images/Teacher-Mentor-pexels-christina-morillo-1181398-1024x684.jpg" alt="SQL Server Training "&gt;&lt;/a&gt;&lt;/p&gt;&#10;&lt;p&gt;Teacher-Mentor-pexels-christina-morillo-1181398&lt;/p&gt;&#10;&lt;p&gt;What process can you use to find SQL Server training resources that will be valuable? After all, not everything on the internet can or should be trusted.  If you want training on something in this constantly changing world of technology, how do you locate that training?  How do you find information that is worth spending your time on?  How much of it costs something?  How much of it is free and is the free stuff any good?&lt;/p&gt;</description></item><item><title>Azure SQL Boot Camp Day 3 Takeaways</title><link>https://leemarkum.com/archive/2020/09/azure-sql-boot-camp-day-3-takeaways/</link><pubDate>Mon, 07 Sep 2020 00:00:00 +0000</pubDate><guid>https://leemarkum.com/archive/2020/09/azure-sql-boot-camp-day-3-takeaways/</guid><description>&lt;p&gt;Hello reader!  Here we are with the much anticipated post for day 3 of the recent Azure SQL Boot Camp. Here are the previous posts for days &lt;a href="https://leemarkum.com/archive/2020/08/azure-sql-boot-camp-day-1-key-takeaways/"&gt;one&lt;/a&gt; and &lt;a href="https://leemarkum.com/archive/2020/08/azure-sql-boot-camp-day-2-key-takeaways/"&gt;two&lt;/a&gt; .&lt;/p&gt;&#10;&lt;p&gt;If you want to get started with Azure  SQL, the boot camp is a great way to do it.  You&amp;rsquo;ll get Azure experts like Anna Hoffman and Bob Ward, who is also a long time SQL Server expert, teaching you how to leverage the cloud for SQL Server. On day three, Anna does a couple of demos on the subject of HA that demonstrate the capabilities of the Azure platform.  Other days have demos of other concepts as well.&lt;/p&gt;</description></item><item><title>Azure SQL Boot Camp Day 2 Key Takeaways</title><link>https://leemarkum.com/archive/2020/08/azure-sql-boot-camp-day-2-key-takeaways/</link><pubDate>Wed, 26 Aug 2020 00:00:00 +0000</pubDate><guid>https://leemarkum.com/archive/2020/08/azure-sql-boot-camp-day-2-key-takeaways/</guid><description>&lt;p&gt;Hello dear reader.  This is the second of a four part series on a recent online event hosted by Microsoft on their Microsoft Developer page over on YouTube.  From August 17th to August 20th Ann Hoffman and Bob Ward hosted a live boot camp for Azure SQL.  This post provides you with key takeaways from day 2 of that event.  The topic title for Day 2 was Azure security and performance.  Below are my takeaways. If you&amp;rsquo;re looking for Day 1 takeaways, look &lt;a href="https://leemarkum.com/archive/2020/08/azure-sql-boot-camp-Day-1-key-takeaways/"&gt;here&lt;/a&gt;.&lt;/p&gt;</description></item><item><title>Azure SQL Boot Camp Day 1 Key Takeaways</title><link>https://leemarkum.com/archive/2020/08/azure-sql-boot-camp-day-1-key-takeaways/</link><pubDate>Mon, 24 Aug 2020 00:00:00 +0000</pubDate><guid>https://leemarkum.com/archive/2020/08/azure-sql-boot-camp-day-1-key-takeaways/</guid><description>&lt;p&gt;Recently Microsoft hosted an Azure SQL Boot Camp over on the &lt;a href="https://www.youtube.com/channel/UCsMica-v34Irf9KVTh6xx-g"&gt;Microsoft Developer page&lt;/a&gt; on YouTube.  The boot camp consisted of four days of two hour sessions describing the different features of Azure SQL.  The hosts were &lt;a href="https://twitter.com/AnalyticAnna"&gt;Anna Hoffman&lt;/a&gt; and &lt;a href="https://twitter.com/bobwardms"&gt;Bob Ward&lt;/a&gt;.&lt;/p&gt;&#10;&lt;p&gt;This will be the first of a four part series offering you key takeaways from each of the sessions.  These takeaway posts by their nature can&amp;rsquo;t possibly include everything from each session so keep that in mind as you read.&lt;/p&gt;</description></item><item><title>What Is the Value of Mentoring?</title><link>https://leemarkum.com/archive/2020/08/what-is-the-value-of-mentoring/</link><pubDate>Wed, 19 Aug 2020 00:00:00 +0000</pubDate><guid>https://leemarkum.com/archive/2020/08/what-is-the-value-of-mentoring/</guid><description>&lt;p&gt;There aren&amp;rsquo;t many formal mentoring relationships these days. It seems to be rare when two people enter into an arrangement where one person agrees to give of their time energy and resources to answer questions and assist another person. Oh sure, you do it casually when you give an assignment to someone and say, &amp;ldquo;Let me know if you need any help.&amp;rdquo;&lt;/p&gt;&#10;&lt;p&gt;However, that&amp;rsquo;s different from a recent &lt;a href="https://www.sqlskills.com/blogs/paul/mentoring-2020-want-some-help-from-me/"&gt;offer&lt;/a&gt; made to people in the SQL Server community. Paul Randal is once again offering his time to multiple people, inviting others to engage in discussion about non-technical subjects. To be sure, it is a unique and wonderful opportunity.&lt;/p&gt;</description></item><item><title>Lessons Learned Updating to SQL Server 2017 AlwaysOn Availability Groups</title><link>https://leemarkum.com/archive/2020/07/lessons-learned-updating-to-sql-server-2017-alwayson-availability-groups/</link><pubDate>Tue, 28 Jul 2020 00:00:00 +0000</pubDate><guid>https://leemarkum.com/archive/2020/07/lessons-learned-updating-to-sql-server-2017-alwayson-availability-groups/</guid><description>&lt;p&gt;In late 2019, a project that had been in progress for well over a year finally came to a conclusion.  I had collaborated with a number of people to migrate a stand alone SQL Server 2008 and two stand alone SQL Server 2008 R2 instances.  Each stand alone SQL Server was migrated to a three node Availability Group. Here are a few things learned along the way.&lt;/p&gt;&#10;&lt;h2 id="automatic-seeding"&gt;&lt;strong&gt;&lt;em&gt;Automatic Seeding&lt;/em&gt;&lt;/strong&gt;&lt;/h2&gt;&#10;&lt;p&gt;First, consider using &lt;a href="https://docs.microsoft.com/en-us/sql/database-engine/availability-groups/windows/automatic-seeding-secondary-replicas?view=sql-server-ver15"&gt;automatic-seeding&lt;/a&gt; if you are migrating to AlwaysOn Availability Groups.  I hadn&amp;rsquo;t previously worked with anything newer than SQL Server 2014 so I was unaware of this feature.  It is new as of SQL Server 2016. In this case, the old SQL Servers were migrating up to SQL Server 2017, so this option was available to us.  For a couple of months leading up to the migration event there had been various tests involving the set up of the AGs.  One of those tests involved restoring a full backup followed by one or more log backups over on the secondary nodes.  As the migration date approached, we started experimenting with auto seeding.&lt;/p&gt;</description></item><item><title>Querying An AS400 Using SQL Server 2019 Data Virtualization</title><link>https://leemarkum.com/archive/2020/04/querying-an-as400-using-sql-server-2019-data-virtualization/</link><pubDate>Wed, 08 Apr 2020 00:00:00 +0000</pubDate><guid>https://leemarkum.com/archive/2020/04/querying-an-as400-using-sql-server-2019-data-virtualization/</guid><description>&lt;p&gt;For those who have taken an interest in the latest SQL Server release, SQL Server 2019, you may have noticed a new feature called Data Virtualization. Perhaps you&amp;rsquo;ve seen a presentation about it, or maybe you&amp;rsquo;ve read about it in Bob Ward&amp;rsquo;s book entitled &amp;ldquo;&lt;a href="https://www.amazon.com/SQL-Server-2019-Revealed-Including/dp/148425418X/ref=sr_1_1_sspa?dchild=1&amp;amp;keywords=SQL+Server+2019+revealed&amp;amp;qid=1586229713&amp;amp;sr=8-1-spons&amp;amp;psc=1&amp;amp;spLa=ZW5jcnlwdGVkUXVhbGlmaWVyPUEySkxIUzNCN0tGMFRTJmVuY3J5cHRlZElkPUEwNzc1MTg1MUUxWFA1OVRSSFU5RyZlbmNyeXB0ZWRBZElkPUEwNDMwODg1QjNWRzNZV1gxVlBDJndpZGdldE5hbWU9c3BfYXRmJmFjdGlvbj1jbGlja1JlZGlyZWN0JmRvTm90TG9nQ2xpY2s9dHJ1ZQ=="&gt;SQL Server 2019 Revealed&lt;/a&gt;.&amp;rdquo;&lt;/p&gt;&#10;&lt;p&gt;I myself was curious about this feature and so I set out to see if I could use it to connect to an AS400 iSeries machine. &lt;a href="https://twitter.com/TomWillwerth"&gt;Tom Willwerth&lt;/a&gt;, my friend at &lt;a href="https://straightpathsql.com/"&gt;StraightPathSQL&lt;/a&gt;, and I worked on this process together. This post is primarily about walking you through the steps we recently took to get this configured.&lt;/p&gt;</description></item><item><title>SQL Server Install Guide Part 3</title><link>https://leemarkum.com/archive/2018/04/sql-server-install-guide-part-3/</link><pubDate>Sun, 15 Apr 2018 00:00:00 +0000</pubDate><guid>https://leemarkum.com/archive/2018/04/sql-server-install-guide-part-3/</guid><description>&lt;p&gt;I&amp;rsquo;m in part 3 of a series on installing SQL Server.  In the &lt;a href="https://leemarkum.com/archive/2018/04/sql-server-install-guide-part-2/"&gt;previous&lt;/a&gt; post I began discussing steps to take after the install is complete.  Because there are quite a number of things to consider post-install, this part 3 will continue discussing the post-install configuration items.&lt;/p&gt;&#10;&lt;h2 id="configure-sql-server-alerts"&gt;&lt;em&gt;&lt;strong&gt;Configure SQL Server Alerts&lt;/strong&gt;&lt;/em&gt;&lt;/h2&gt;&#10;&lt;p&gt;One of the things I always do after installing SQL Server is set up SQL Server Alerts.  This is a free, easy way to find out about problems on the SQL instance, like read retry errors or other potential nasty issues.  There are probably a number of places to find scripts useful for this task.  The one I recommend is from Glenn Berry at SQLSkills.com.  You can find his script at &lt;a href="https://www.sqlskills.com/blogs/glenn/the-accidental-dba-day-17-of-30-configuring-alerts-for-high-severity-problems/"&gt;this&lt;/a&gt; link.  One of my favorite things about Glenn&amp;rsquo;s script is that it has very well defined alert names that allow the DBA to easily know what server is involved when an alert is sent.&lt;/p&gt;</description></item><item><title>SQL Server Install Guide Part 2</title><link>https://leemarkum.com/archive/2018/04/sql-server-install-guide-part-2/</link><pubDate>Tue, 03 Apr 2018 00:00:00 +0000</pubDate><guid>https://leemarkum.com/archive/2018/04/sql-server-install-guide-part-2/</guid><description>&lt;p&gt;In &lt;a href="https://leemarkum.com/archive/2018/03/sql-server-install-guide-part-1/"&gt;part 1&lt;/a&gt; of this series, I discussed pre-installation steps.  There are many guides available online for the actual installation process so I&amp;rsquo;m not going to give a step by step installation guide here.  Rather, I&amp;rsquo;m going to focus on what to think about after the install is complete.&lt;/p&gt;&#10;&lt;p&gt;Recent versions of SQL Server will now go out and download additional content for you before the install actually happens so you&amp;rsquo;re not left on the base, RTM release of the product.  However, one thing to consider post installation is still, are you on the latest patch?  How do you know?  Where can you go to compare the version number of the SQL Server you installed to what is currently available?  Well, you can look back at &lt;a href="https://leemarkum.com/archive/2016/01/three-places-to-get-information-on-new-updates-for-sql-server/"&gt;this&lt;/a&gt; post to answer that question.&lt;/p&gt;</description></item><item><title>SQL Server Install Guide Part 1</title><link>https://leemarkum.com/archive/2018/03/sql-server-install-guide-part-1/</link><pubDate>Mon, 19 Mar 2018 00:00:00 +0000</pubDate><guid>https://leemarkum.com/archive/2018/03/sql-server-install-guide-part-1/</guid><description>&lt;p&gt;In part 1 of a series on installing SQL Server, I&amp;rsquo;m going to discuss things to do prior to running the installation program for SQL Server.  There are a number of install guides for SQL Server on the internet and plenty of recommendations around installation best practices and how-to&amp;rsquo;s.  This will be what I&amp;rsquo;ve arrived at over the course of time.&lt;/p&gt;&#10;&lt;h2 id="working-with-the-database-migration-assistant"&gt;&lt;strong&gt;&lt;em&gt;Working with the Database Migration Assistant&lt;/em&gt;&lt;/strong&gt;&lt;/h2&gt;&#10;&lt;p&gt;This first step I&amp;rsquo;m going to introduce makes the assumption that this install is going to be for one or more databases that you&amp;rsquo;re planning to migrate from an existing instance.  My first step is to run the &lt;a href="https://docs.microsoft.com/en-us/sql/dma/dma-overview"&gt;Database Migration Assistant&lt;/a&gt; from Microsoft.  This product is free and can be installed away from your SQL Servers.  I run my install from my laptop.  After opening the UI and starting an assessment, this tool will scan the source databases selected and determine if there are any breaking changes, behavior changes, or deprecated features between the source and target for your migration.&lt;/p&gt;</description></item><item><title>Correlating IO Wait with Queries</title><link>https://leemarkum.com/archive/2017/03/correlating-io-wait-with-queries/</link><pubDate>Tue, 07 Mar 2017 00:00:00 +0000</pubDate><guid>https://leemarkum.com/archive/2017/03/correlating-io-wait-with-queries/</guid><description>&lt;p&gt;Have you ever looked at sys.dm_os_virtual_file_stats and saw horrible latency for your database files? Generally speaking, you want to see latency below 20 ms on your database files.  much above that and there are some problems somewhere that need some tuning.&lt;/p&gt;&#10;&lt;p&gt;But, how do you know what queries are causing your issue? What&amp;rsquo;s causing those IO waits?&lt;/p&gt;&#10;&lt;h2 id="how-to-find-queries-associated-with-pending-io-requests"&gt;&lt;em&gt;&lt;strong&gt;How to Find Queries Associated with Pending IO Requests&lt;/strong&gt;&lt;/em&gt;&lt;/h2&gt;&#10;&lt;p&gt;I responded to a &lt;a href="https://www.sqlservercentral.com/Forums/1862569/Getting-more-info-out-of-dmiopendingiorequests"&gt;question&lt;/a&gt; on SQLServerCentral.com about performance that is related to these types of scenarios. The poster wanted to know if there was a way to correlate pending io requests with the queries that were experiencing the waits using the DMV sys.dm_io_pending_requests.&lt;/p&gt;</description></item><item><title>Consolidate Multiple Email Operators</title><link>https://leemarkum.com/archive/2017/01/consolidate-multiple-email-operators/</link><pubDate>Wed, 04 Jan 2017 00:00:00 +0000</pubDate><guid>https://leemarkum.com/archive/2017/01/consolidate-multiple-email-operators/</guid><description>&lt;p&gt;Suppose &lt;a href="https://leemarkum.com/archive/2016/12/fixing-jobs-with-no-email-notification/"&gt;you&amp;rsquo;ve been working on cleaning up SQL Agent jobs and their email operators&lt;/a&gt; and find that you have more than one operator with the same email address. How would you tidy this up to ease administration?&lt;/p&gt;&#10;&lt;p&gt;Let&amp;rsquo;s do a little setup to demonstrate the scenario.  The T-SQL below will create three operators with different names but the same email address.  Then it updates two of my existing test jobs to use those email operators when the job fails.  I am also logging failures to the Windows Event Log.&lt;/p&gt;</description></item><item><title>Finding Failed Jobs</title><link>https://leemarkum.com/archive/2016/12/finding-failed-jobs/</link><pubDate>Thu, 29 Dec 2016 00:00:00 +0000</pubDate><guid>https://leemarkum.com/archive/2016/12/finding-failed-jobs/</guid><description>&lt;p&gt;How would you go about finding jobs that have failed and why would you want to look for these?  You might want to do this to ensure that you are being notified appropriately of job failures. For instance, after reviewing failed jobs, you may realize that there are job failures that no one knew about. Maybe this is occurring because the jobs are not set to send email. If that&amp;rsquo;s the case see my post &lt;a href="https://leemarkum.com/archive/2016/12/fixing-jobs-with-no-email-notification/"&gt;here&lt;/a&gt; so you can fix that.&lt;/p&gt;</description></item><item><title>Fixing Jobs With No Email Notification</title><link>https://leemarkum.com/archive/2016/12/fixing-jobs-with-no-email-notification/</link><pubDate>Tue, 27 Dec 2016 00:00:00 +0000</pubDate><guid>https://leemarkum.com/archive/2016/12/fixing-jobs-with-no-email-notification/</guid><description>&lt;p&gt;In the &lt;a href="https://leemarkum.com/archive/2016/12/finding-jobs-with-no-email-notifications/"&gt;last post&lt;/a&gt; we found jobs that had no email notification. Once you find them, how do you fix this problem?&lt;/p&gt;&#10;&lt;p&gt;I&amp;rsquo;m going to assume that database mail is already enabled and configured on the SQL Server instance. 1. Create an operator, assuming one does not exist.&lt;/p&gt;&#10;&lt;p&gt;This can be done either through T-SQL or through the GUI.  In the GUI, right click the Operator folder under SQL Server Agent and chooser &amp;ldquo;New Operator.&amp;rdquo;  Then fill in the details of operator &amp;ldquo;Name &amp;ldquo;and &amp;ldquo;Email name.&amp;rdquo;  See below for an example.&lt;/p&gt;</description></item><item><title>Finding Jobs With No Email Notifications</title><link>https://leemarkum.com/archive/2016/12/sql-agent-jobs-with-no-email-notification/</link><pubDate>Fri, 23 Dec 2016 00:00:00 +0000</pubDate><guid>https://leemarkum.com/archive/2016/12/sql-agent-jobs-with-no-email-notification/</guid><description>&lt;p&gt;When you take over a new SQL Server instance one of the things you might consider doing early on is finding SQL Agent jobs that have no email notification set up.  These will be jobs that could fail and they will never alert anyone. I am of the opinion that if a job is worth creating, then it&amp;rsquo;s worth telling someone when it doesn&amp;rsquo;t do what it is supposed to do.&lt;/p&gt;</description></item><item><title>Steps to Catch Up Log Shipping Secondary</title><link>https://leemarkum.com/archive/2016/02/steps-to-catch-up-log-shipping-secondary/</link><pubDate>Tue, 02 Feb 2016 00:00:00 +0000</pubDate><guid>https://leemarkum.com/archive/2016/02/steps-to-catch-up-log-shipping-secondary/</guid><description>&lt;p&gt; &lt;/p&gt;&#10;&lt;p&gt;If you are using Log Shipping, there have probably been times that you have discovered that the Log Shipping Secondary is not up to date.  Perhaps you found out by right clicking on your SQL Server instance and running the performance dashboard report for Log Shipping Status.  If you are not familiar with this report check &lt;a href="https://msdn.microsoft.com/en-us/library/ms181149(v=sql.120).aspx"&gt;here&lt;/a&gt;. &lt;/p&gt;&#10;&lt;p&gt;Perhaps there is a Reporting team that uses that secondary and they met you at your desk upon arrival, informing you that the database is not online so they can’t work yet. So what do you do when you realize that the secondary is so far behind that it is probably not going to catch up on its own?  This process assumes that you have a Log Shipping config set up to run a Log Shipping Restore job just prior to the beginning of the business day and that job leaves the database in Standby mode so it can be read from.  At the end of the business day the log shipping restore job has one or more schedules set to  kick off restores for the transaction logs during the business day.&lt;/p&gt;</description></item><item><title>Three Reasons to Use a Custom Database Role</title><link>https://leemarkum.com/archive/2016/01/three-reasons-to-use-a-custom-database-role/</link><pubDate>Wed, 27 Jan 2016 00:00:00 +0000</pubDate><guid>https://leemarkum.com/archive/2016/01/three-reasons-to-use-a-custom-database-role/</guid><description>&lt;p&gt;Ever had a situation where a small in-house application written for a small group of employees needed some permissions in the database? How do you handle that? I want to walk through the scenario and provide three reasons that using a Database Role might be the answer you are looking for.&lt;/p&gt;&#10;&lt;p&gt;Let’s first cover, at a high level, the different levels of permissions in SQL Server and the associated commands. In SQL Server there are Server level permissions for the SQL instance and there are database level permissions. Within the database level there are also specific permissions for objects like tables, views and store procedures. There are also database permissions that can be grouped together in a database role. In fact, there are some built-in database roles for SQL Server as shown below. If you aren’t familiar with these, you can find out about them &lt;a href="https://msdn.microsoft.com/en-us/library/ms189121(v=sql.120).aspx"&gt;here&lt;/a&gt;.&lt;/p&gt;</description></item><item><title>Retiring sp_who and sp_who2</title><link>https://leemarkum.com/archive/2016/01/retiring-sp-who-and-sp-who2/</link><pubDate>Thu, 21 Jan 2016 00:00:00 +0000</pubDate><guid>https://leemarkum.com/archive/2016/01/retiring-sp-who-and-sp-who2/</guid><description>&lt;p&gt; &lt;/p&gt;&#10;&lt;p&gt;Sp_who and sp_who2 have been some very popular T-SQL commands. What if I told you that you could get more and better information from DMVs that have been around since SQL Server 2005?&lt;/p&gt;&#10;&lt;p&gt;With the advent of SQL Server 2005 came along new objects called Dynamic Management Views, also known as DMVs. One of the great places where improvements were made by adding the DMVs is when investigating what is happening on a SQL Server at the moment production troubleshooting is required. When things go south and the DBA is contacted, the new DMV’s are invaluable. Despite this, there are still some folks out there using sp_who and sp_who2. With this post I want to demonstrate why you should stop using sp_who and sp_who2. Retire these commands and move on to something better.&lt;/p&gt;</description></item><item><title>Three Places to Get Information On New Updates for SQL Server</title><link>https://leemarkum.com/archive/2016/01/three-places-to-get-information-on-new-updates-for-sql-server/</link><pubDate>Mon, 18 Jan 2016 00:00:00 +0000</pubDate><guid>https://leemarkum.com/archive/2016/01/three-places-to-get-information-on-new-updates-for-sql-server/</guid><description>&lt;p&gt;There are many consistently hot topics around SQL Server. One such topic is, “How does a DBA obtain the latest information on updates?” In this post, I will discuss three places that I frequent for information on SQL Server updates.&lt;/p&gt;&#10;&lt;p&gt;The first link I want to discuss is &lt;a href="http://sqlserverbuilds.blogspot.com/"&gt;http://sqlserverbuilds.blogspot.com/&lt;/a&gt;. This site gives you a very comprehensive page of data. Initially there will be a summary grid that lists a SQL Server release down the left side and across the top will be release names like RTM, SP1, SP2, etc. Inside the grid will be the corresponding release number for a particular release and that release number will be a link to the corresponding download.&lt;/p&gt;</description></item><item><title>Moving Database Files to Another Drive</title><link>https://leemarkum.com/archive/2016/01/moving-database-files-to-another-drive/</link><pubDate>Mon, 04 Jan 2016 00:00:00 +0000</pubDate><guid>https://leemarkum.com/archive/2016/01/moving-database-files-to-another-drive/</guid><description>&lt;p&gt;You may occasionally have the need to relocate database files. What are some reasons that may prompt the need for this type of change? First, someone might have discovered that the database files are on the same drive as the operating system. For a discussion of why you don’t want to do this see &lt;a href="https://leemarkum.com/archive/2015/11/3-reasons-not-to-install-databases-on-the-c-drive/"&gt;this&lt;/a&gt; post. Second, your database might simply be outgrowing its current drive. Third, perhaps someone installed the transaction log file on the same drive as the mdf file.&lt;/p&gt;</description></item><item><title>Setting Min and Max Server Memory Setting</title><link>https://leemarkum.com/archive/2015/12/setting-min-and-max-server-memory-setting/</link><pubDate>Fri, 18 Dec 2015 00:00:00 +0000</pubDate><guid>https://leemarkum.com/archive/2015/12/setting-min-and-max-server-memory-setting/</guid><description>&lt;p&gt;Configuring the min and max server memory settings for SQL Server has a number of things to consider prior to making changes. Before we jump into those considerations, let’s learn what the min and max server memory options do.&lt;/p&gt;&#10;&lt;h2 id="what-does-the-min-server-memory-option-do"&gt;&lt;strong&gt;What does the min server memory option do?&lt;/strong&gt;&lt;/h2&gt;&#10;&lt;p&gt;The min server memory option specifies the minimum amount of memory utilized by the SQL Server buffer pool. It may seem that this should mean that when SQL Server starts it will automatically grab the memory equal to the min server memory value. However, this is not what happens. Instead, SQL Server acquires system memory as needed to process a workload. Consequently, if the SQL Server workload remains low, it is possible that the min server memory value is never reached. However, once it is reached SQL Server will not release an amount of memory that would take it below that minimum setting.&lt;/p&gt;</description></item><item><title>Three Reasons to Use Windows Groups to Manage SQL Server</title><link>https://leemarkum.com/archive/2015/12/three-reasons-to-use-windows-groups-to-manage-sql-server/</link><pubDate>Wed, 09 Dec 2015 00:00:00 +0000</pubDate><guid>https://leemarkum.com/archive/2015/12/three-reasons-to-use-windows-groups-to-manage-sql-server/</guid><description>&lt;p&gt;Ever come across a SQL Server that had 5, 10, or more individual logins for users in it? I have a few times and it made me wonder if whoever had done such a thing realized how much harder they were making the administration of the server by doing this. I suppose some folks start out with one or two people that they give special permissions or access directly to the SQL instance and underlying databases. Their logic probably goes something like, “It’s just Tommy and Suzie. Those are the only people who will need access for a long time.”&lt;/p&gt;</description></item><item><title>3 Additional Tips for Using SQL Server Management Studio</title><link>https://leemarkum.com/archive/2015/12/three-additional-tips-for-using-sql-server-management-studio/</link><pubDate>Fri, 04 Dec 2015 00:00:00 +0000</pubDate><guid>https://leemarkum.com/archive/2015/12/three-additional-tips-for-using-sql-server-management-studio/</guid><description>&lt;p&gt;In an earlier &lt;a href="https://leemarkum.com/archive/2015/11/3-tips-and-tri%E2%80%A6agement-studio/"&gt;post&lt;/a&gt; I listed three tips for using the SQL Server Management Studio user interface. I want to offer three additional tips for SSMS.  I think you will find that these ideas will bring additional efficiency and functionality to your use of the interface.&lt;/p&gt;&#10;&lt;p&gt;The first tip is related to getting more viewing space after running a query. Query results obviously take up the bottom portion of the SSMS editor window. I have often found myself then clicking in the query editor window and scrolling to view various parts of my query, all the while the results portion of the screen is using a good portion of the window. Some time back an associate told me how to easily address that annoying issue. Simply click CTRL and R to collapse the query results so that the full page is again used for viewing the query text.&lt;/p&gt;</description></item><item><title>You Really Should Stay Current on Cumulative Updates</title><link>https://leemarkum.com/archive/2015/11/you-really-should-stay-current-on-cumulative-updates/</link><pubDate>Mon, 23 Nov 2015 00:00:00 +0000</pubDate><guid>https://leemarkum.com/archive/2015/11/you-really-should-stay-current-on-cumulative-updates/</guid><description>&lt;p&gt; &lt;/p&gt;&#10;&lt;p&gt;I have encountered a Log Shipping error that I want to detail as an encouragement for staying current on SQL Server cumulative updates. First, a little background. The environment is SQL Server 2014 Standard edition with a physical machine as the primary and two secondaries, both virtual machines backed by a flash storage system.   SQL Server is on service pack 1, cumulative update 1. Log shipping had been configured in this environment for many months, but SQL Server 2008R2 was updated to SQL Server 2014 some months prior. The Log Shipping Restore job leaves the database in the Standby Mode so it can be queried for reporting purposes.&lt;/p&gt;</description></item><item><title>3 Reasons Not to Install Databases On the C Drive</title><link>https://leemarkum.com/archive/2015/11/3-reasons-not-to-install-databases-on-the-c-drive/</link><pubDate>Tue, 17 Nov 2015 00:00:00 +0000</pubDate><guid>https://leemarkum.com/archive/2015/11/3-reasons-not-to-install-databases-on-the-c-drive/</guid><description>&lt;p&gt;We&amp;rsquo;re probably all familiar with the fact that SQL Server by default will install not only the program binaries but all your databases on the C drive as well.  Accidental DBA&amp;rsquo;s, i.e. System Administrators and Developers who inherited the maintenance of a database, may not be aware of how bad it can be if someone simply clicked the &amp;ldquo;Next&amp;rdquo; button all the way through the SQL Server install.  There are surely many reasons not to accept this default during the install, but I will start with three.&lt;/p&gt;</description></item><item><title>3 Tips for Using SQL Server Management Studio</title><link>https://leemarkum.com/archive/2015/11/3-tips-and-tricks-for-using-sql-server-management-studio/</link><pubDate>Sat, 14 Nov 2015 00:00:00 +0000</pubDate><guid>https://leemarkum.com/archive/2015/11/3-tips-and-tricks-for-using-sql-server-management-studio/</guid><description>&lt;p&gt; &lt;/p&gt;&#10;&lt;p&gt;You&amp;rsquo;ve been using SQL Server Management Studio for a long while now, but you mostly only using the New Query window to write T-SQL and the Object Explorer to do management tasks for an instance. You know it can do more, but you are a busy data professional. You don&amp;rsquo;t have a lot of time to poke around in the options and you&amp;rsquo;re not sure where to look or what else it can do to make your life easier. In this post I will cover three SQL Server Management Studio options that will save you time and make you more efficient.&lt;/p&gt;</description></item><item><title>About Lee Markum</title><link>https://leemarkum.com/about/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://leemarkum.com/about/</guid><description>&lt;p&gt;I make SQL Server more responsive, more highly available, and easier to manage.&lt;/p&gt;&#10;&lt;p&gt;I entered I.T. in February 2008 and started working with SQL Server in late 2009 as a report writer using SSRS.  I was fascinated by the SQL Server engine underneath and quickly progressed to database administration. I found that I definitely liked that side of SQL Server a lot.  I earned an MCTS on SQL Server 2008 and much later I earned the Azure Fundamentals and Azure Data Fundamentals certifications. I love handling performance tuning, making SQL Server more highly available, and designing solutions from the ground up.&lt;/p&gt;</description></item><item><title>Resources</title><link>https://leemarkum.com/resources/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://leemarkum.com/resources/</guid><description>&lt;h2 id="general-resources"&gt;&lt;strong&gt;General Resources:&lt;/strong&gt;&lt;/h2&gt;&#10;&lt;p&gt;The &lt;a href="https://github.com/lmarkum/Resources"&gt;Resources&lt;/a&gt; repository on Github is a training resources type of repository. The repo currently includes links and comments on resources for training and for AlwaysOn Availability Groups. I will be adding information about a SQL Server installation and configuration checklist very soon.&lt;/p&gt;&#10;&lt;h2 id="job-and-career-development"&gt;&lt;strong&gt;Job and Career Development:&lt;/strong&gt;&lt;/h2&gt;&#10;&lt;p&gt;The &lt;a href="https://github.com/lmarkum/Job-and-Career-Development"&gt;Job and Career Development&lt;/a&gt; repository is meant for resources for interviews, resumes, and the like. Check it out for help with topics like a list of questions you can ask employers when you’re interviewing.&lt;/p&gt;</description></item></channel></rss>