r/SQLServer • • Jan 17 '22

Question SQL DBA still a good career?

38 Upvotes

Hello,

i was wondering if becoming a SQL DBA now and in the foreseeable future is still a good career option? I'm currently not a SQL DBA but I'm strongly interested in choosing this to specialize in further.

I have good affinity with on-prem MS SQL-server (2008 -> 2019) and Azure SQL services. I do also hold some Azure certifications, but none specific to Azure SQL-services.

I'd obviously not only focus on on-prem, but also Azure, AWS and Google if my future employee requires this (preferably). With AWS and Google SQL-services I have no experience though, but eager to learn.

Feel free to share your experiences if you're an actual SQL DBA and how you see this in the future.


r/SQLServer • • Jan 15 '20

Custom Backups are no good if you keep them on the same server.

38 Upvotes

One of our dev/test VM servers had standard edition installed on it, but actually only needed developer edition .

I made sql backups of the user dbs to a different drive on the same server. That drive contained no SQL related stuff. Ding!

Followed the directions to uninstall standard and install developer. All seemed well. Copied the original system and user databases back and SQL started up.

Couldn't connect to them though. Was only listening on 127.0.0.1. Checked a few things, Ah, screw it. I'll restore and go again

Didn't start a vm snapshot, it's just dev right?

I go and restore the VM from veeam. Hit start, stretch and go take a piss.

the drive with my sql backups.... overwritten.

We only backup the dev/test servers on monday mornings (slow peak time)

Fortunately for me, no dev stuff was done since Friday so the VM restore didnt " lose " anything. But if it had, it would have been gone.

I Let the dev team know "I made a mistake, please check your stuff anyway " and will do a quick postmortum.

Lesson: don't get casual with your job.


r/SQLServer • • May 14 '18

A View Will Not Make Your Query Faster

Thumbnail
scarydba.com
38 Upvotes

r/SQLServer • • Jun 03 '16

Please vote for "Allow users to disable auto update feature in SQL Server 2016"

Thumbnail
connect.microsoft.com
38 Upvotes

r/SQLServer • • Dec 23 '13

This is part of the reason why SQL Server makes me crazy

Thumbnail
imgur.com
38 Upvotes

r/SQLServer • • 9d ago

Discussion Anyone stopped nightly index rebuilds and seen no downside?

37 Upvotes

For example an index hits 30% fragmentation, the job rebuilds it. Does anyone check whether performance improves enough to justify the work?

I posted about this on LinkedIn a while back and got two useful examples.

One DBA stopped nightly rebuilds spilling into business hours and addressed the query problems with targeted statistics updates. Another described a page-split storm after rebuilding nonclustered indexes at fill factor 100.

We’ve been working on page-density checks ourselves. Checking every index was expensive before we’d even rebuilt anything, so we narrowed the checks to heavily used indexes.

For rowstore indexes, low page density deserves attention. Half-empty pages still occupy buffer-pool space when cached. But packing everything tightly won’t necessarily help if the write workload quickly splits those pages again.

And if a query improves after a rebuild, was the benefit from updating the index statistics? Would a stats update alone have been enough?

My view is to start with the indexes the workload depends on and establish what needs fixing. Crossing a fragmentation threshold isn’t enough reason on its own.

Anyone here reduced scheduled rebuilds? What improved, and what eventually needed attention?


r/SQLServer • • Aug 05 '26

Discussion VS Code+ MSSQL extension has really come a long way.

37 Upvotes

I was one of the many disappointed with the discontinuation of Azure Data Studio as I felt the experience in VS Code was very lacking.

Recently I fired up VS code and was very impressed how far the MSSQL extension has come along. With a little configuration, it looks and feels very much like Azure Data Studio and works quite well IMHO. In fact, quite a few areas seem to have tangible improvements.

Connections, execution plans, server browsing, query results, object definitions, etc, has all really improved in the past year or so.

What does everyone else think?


r/SQLServer • • May 14 '22

No matter how much you dislike, just don't do it.

37 Upvotes

BleepingComputer: Angry IT admin wipes employer’s databases, gets 7 years in prison. https://www.bleepingcomputer.com/news/security/disgruntled-admin-wipes-employer-s-databases-gets-7-years-in-prison/


r/SQLServer • • Jan 13 '21

Emergency Microsoft patches Remote Code Execution vulnerability for all supported versions of SQL Server

Thumbnail support.microsoft.com
37 Upvotes

r/SQLServer • • Apr 16 '20

Question Regarding Free Training Opportunity

37 Upvotes

Hello SQLServer on Reddit,

I've stopped posting content here because it was made clear to me that it wasn't really welcome. However, I'm going to be hosting some live, free, training that was previously only offered as paid content. I'm curious if you'd like to hear more about it. If not, I'll leave you all alone.

The general topic is query tuning and the tools available from Microsoft to help make query tuning easier (note, not easy, it's never easy).

I just didn't want to leave you out of an opportunity like this, so I decided to stop by & ask. Thanks for your time.


r/SQLServer • • Sep 12 '18

3rd Edition, SQL Server Execution Plans, a Story

Thumbnail
scarydba.com
37 Upvotes

r/SQLServer • • Jun 20 '18

Blog The June release of SQL Operations Studio is now available

Thumbnail
cloudblogs.microsoft.com
37 Upvotes

r/SQLServer • • Oct 02 '26

Community Share Based on feedback here, I added one-click SSRS report creation to my SSMS extension

Post image
36 Upvotes

Last week I posted an SSMS extension that turns a query into a refreshable Excel workbook. A lot of the respondents were SSRS users, so I added a button that automates RDL creation and deployment for single-query reports.

You just right-click, choose your SSRS folder and shared data source, and then the extension generates and deploys a basic tabular report.

Still free/open source, currently SSMS 22:

https://github.com/flank-project/ssms-extension


r/SQLServer • • Jun 17 '26

Community Share Preview for schema compare and SQL formatting landed in SSMS 22.7

36 Upvotes

Hi folks - we added previews for both schema compare and SQL formatting in SSMS last week. You don't have to enable any additional workloads in the SSMS installer, just update your install and the functionality will be available in the menus.

Schema compare can be launched from the Tools menu or in object explorer on a specific database. If you have the "Database DevOps" workload installed with SSMS, you can also launch schema compare from a SQL project directly.

Schema compare is really handy for being able to tell what has changed and optionally capture/apply the differences to another "thing" (live database or source-controllable SQL project)

SQL formatter has quite a few settings available in the SSMS options as well as the ability to do per-project configuration with .editorconfig files. I've been really stoked to see so many folks trying it out and sharing quite a few requests for additional formatting options since the release last week. If you take it for a spin, check out what others have been requesting and let us know if you're interested in additional options.

Since I work on schema compare and SQL formatter, I'm obviously super biased, but I'll mention that GitHub Copilot in SSMS also gained Agent mode in the 22.7 release. There's a number of people putting in hard work on SSMS and the full details can be found in the release notes.

(putting all the links in the comments because automod is flagging MS Learn docs as url shorteners)


r/SQLServer • • Oct 14 '25

Community Share GitHub Copilot, ARM64 support, and more - SSMS 22 Preview 3

36 Upvotes

Hi all - stopping by to share that we released SSMS 22 Preview 3 today, as well as SSMS 21.6. A rare two-for-Tuesday, if you will.

SSMS 22 Preview 3 includes:

  • GitHub Copilot in SSMS

  • ARM64 support for core SSMS scenarios

If you want to learn more, there's a slew of links below. We look forward to your feedback - there's still a lot to do, so I hope no one thinks this is it :)


r/SQLServer • • May 19 '25

AMA Join us for the SQL Server 2025 AMA June 2025

36 Upvotes

Today we announced the Public Preview of SQL Server 2025. Download it today from https://aka.ms/getsqlserver2025 Join the Microsoft SQL Server team for all your questions at our AMA coming June 4th, at 8:00 PDT.


r/SQLServer • • Sep 06 '22

Blog [Bitesized] Simple way to distinguish Azure SQL products

Post image
36 Upvotes

r/SQLServer • • Jun 07 '22

Meta A DBA workday: What does it look like for you?

36 Upvotes

Aside from unpredictable requests that pop up, how do you structure your work? Is your schedule controlled by you or your employer? How did you develop your workflow (e.g. Mentor, peers, self?)

Any tools or routines you wish you had known about earlier in your career? Any that are overrated?

How do you keep up with your work tasks? What do you wish you scheduled into your day more?

My Current Workday:

  • Check email for tickets. Answer urgent query requests. Triage the rest.

  • Review Outstanding requests

  • Clean Up Emails

  • Training Videos (Still in my first employed year: Trying to keep learning little tips and tricks about MSSQL)

  • Review list of maintenance tasks and processes to optimize: Panic

  • Ask Reddit


r/SQLServer • • May 25 '22

Blog T-SQL Windowing Improvements in SQL Server 2022

Thumbnail
sqlperformance.com
36 Upvotes

r/SQLServer • • May 24 '22

Blog Announcing SQL Server 2022 public preview

Thumbnail
cloudblogs.microsoft.com
36 Upvotes

r/SQLServer • • Feb 03 '22

Abracadabra! A Magic Trick Using SQL Server

36 Upvotes

Instead of the usual homework questions, how about a magic trick instead?

Below is a stored procedure that does a card trick. All you need is willing participant who likes magic, a deck of cards and SQL Server.

Here is how it works...

  1. A spectator shuffles a normal deck of 52 playing cards, then selects five cards from the deck and hands them to you.

  2. You choose one card from the five selected and set it off to the side. This card is now the Mystery Card.

  3. Either you or the spectator enter the other four remaining cards as parameters into the stored procedure and run it.

  4. SQL Server correctly guesses the Mystery Card based solely on the four other cards!

I was inspired to create this proc based on this YouTube video. In order to do the trick yourself, you will also need to watch the video to understand the logic behind the order of the parameters.

Using the example from the video, executing the procedure with these parameters...

EXEC GuessTheMysteryCard '4D', 'TH', 'AS', 'TC';

Will yield this output...

QD -- Mystery Card

Here is the full procedure:

CREATE PROCEDURE [dbo].[GuessTheMysteryCard] @c1 CHAR(2), 
                                             @c2 CHAR(2), 
                                             @c3 CHAR(2), 
                                             @c4 CHAR(2)
AS
    BEGIN

    /* Create a deck of cards and set messenger card order. */

    DECLARE @Pips AS TABLE([Pip] SMALLINT NOT NULL);

    INSERT INTO @Pips
    VALUES(1), (2), (3), (4), (5), (6), (7), (8), (9), (10), (11), (12), (13);

    DECLARE @Suits AS TABLE([Suit] CHAR(1) NOT NULL);

    INSERT INTO @Suits
    VALUES('C'), ('D'), ('H'), ('S');

    DECLARE @Deck AS TABLE
    ([Rank]      SMALLINT NOT NULL, 
     [Card]      CHAR(2) NOT NULL, 
     [Pip]       SMALLINT NOT NULL, 
     [Suit]      CHAR(1) NOT NULL, 
     [Messenger] SMALLINT NOT NULL
    );

    INSERT INTO @Deck
           SELECT ROW_NUMBER() OVER(
                  ORDER BY [Pip], 
                           [Suit]) AS [Rank], 
                  CONCAT(CASE [Pip]
                             WHEN 1
                             THEN 'A'
                             WHEN 10
                             THEN 'T'
                             WHEN 11
                             THEN 'J'
                             WHEN 12
                             THEN 'Q'
                             WHEN 13
                             THEN 'K'
                             ELSE CAST([Pip] AS CHAR(1))
                         END, [Suit]) AS [Card], 
                  [Pip], 
                  [Suit],
                  CASE(CONCAT(CASE [Pip]
                                  WHEN 1
                                  THEN 'A'
                                  WHEN 10
                                  THEN 'T'
                                  WHEN 11
                                  THEN 'J'
                                  WHEN 12
                                  THEN 'Q'
                                  WHEN 13
                                  THEN 'K'
                                  ELSE CAST([Pip] AS CHAR(1))
                              END, [Suit]))
                      WHEN @c1
                      THEN 1
                      WHEN @c2
                      THEN 2
                      WHEN @c3
                      THEN 3
                      WHEN @c4
                      THEN 4
                      ELSE 0
                  END [Messenger]
           FROM @Pips
                CROSS APPLY @Suits
           ORDER BY [Pip], 
                    [Suit];

    /* Rank messenger cards and find the pip value of the mystery card. */

    DECLARE @r1 SMALLINT, @r2 SMALLINT, @r3 SMALLINT, @pip SMALLINT;

    SELECT @pip = [Pip]
    FROM @Deck
    WHERE [Messenger] = 1;

    SELECT @r1 = [Rank]
    FROM @Deck
    WHERE [Messenger] = 2;

    SELECT @r2 = [Rank]
    FROM @Deck
    WHERE [Messenger] = 3;

    SELECT @r3 = [Rank]
    FROM @Deck
    WHERE [Messenger] = 4;

    SELECT @pip = CASE
                      WHEN @r1 > @r2
                           AND @r2 > @r3
                      THEN @pip - 6
                      WHEN @r1 > @r3
                           AND @r3 > @r2
                      THEN @pip - 5
                      WHEN @r2 > @r1
                           AND @r1 > @r3
                      THEN @pip - 4
                      WHEN @r2 > @r3
                           AND @r3 > @r1
                      THEN @pip - 3
                      WHEN @r3 > @r1
                           AND @r1 > @r2
                      THEN @pip - 2
                      WHEN @r3 > @r2
                           AND @r2 > @r1
                      THEN @pip - 1
                  END;

    IF @pip <= 0
		SET @pip = @pip + 13;
    

    /* Reveal mystery card */

    SELECT [Card] AS 'Mystery Card'
    FROM @Deck
    WHERE [Pip] = @pip
          AND [Suit] = SUBSTRING(@c1, 2, 1);
END;

Some additional notes:

  • Card names are exactly two characters. The first character is the pip and the second character is the suit. Aces, Tens, Jacks, Queens and Kings use the first initial, while the remaining cards use their integer value. So for example, the Ten of Hearts is represented as TH, the 5 of Diamonds is 5D etc.

  • I realize the code is not the best and I did not include any error handling for bad inputs. Feel free to enhance it and make it better.

  • Why did I make this? I have no idea. I am actually between jobs right how and had the free time to do it because I'm bored and apparently have no life. Enjoy!


r/SQLServer • • Jan 05 '21

Brent Ozar's 2020 Salary Results

Thumbnail
brentozar.com
36 Upvotes

r/SQLServer • • Jun 30 '20

Architecture/Design "Understanding Memory with SQL Server and Azure SQL" by Bob Ward

Thumbnail
youtube.com
36 Upvotes

r/SQLServer • • May 24 '18

Microsoft SQLServer Channel comes to Youtube

Thumbnail
youtube.com
36 Upvotes