Site icon Brent Ozar

How I Use a Mac but Work on SQL Server

Kind of a convoluted title, I know, but I get questions like this every now and then:

Chris and I had a good conversation on Twitter, and I figured it’s time to post an updated version of how I work.

I have a “fake job” – I’m a consultant.

If you’re a full time employee somewhere, you probably manage the same servers every day. Your main applications probably consist of Outlook, SSMS, a team chat app, a monitoring tool, and a web browser, all open to the same stuff all day, just alt-tabbing around between different windows.

On the road in the Manchester airport

My job is a little different because:

So there probably isn’t going to be a lot of actionable info in this post for you, but hey, y’all keep asking, so I’ll explain, hahaha.

My favorite thing: web apps.

Whenever practical, I try to use apps in a browser tab rather than a downloadable executable. Jeremiah Peschka really motivated me to try this – years ago, he really encouraged me to try GMail in a browser rather than Outlook or Apple Mail. I hated it at first, but now I adore it.

When I open Chrome, these tabs show up:

And then I try to use web services for as much as possible, like Expensify, Quickbooks, etc. If my laptop bites the dust when I’m on the road, or if I need to get a few minutes of work in on vacation, then any web browser will get me most of the way there.

Web app not good enough?
Then a Mac OS X app.

Here’s my dock with my most common apps:

 

From left to right:

No other choice? Windows VM.

I don’t dislike Windows – it’s totally fine – I just don’t want to open a VM if I don’t have to. These days, I only start a VM under 2 scenarios:

When I need to build or deliver SQL Server demos – I fire up a VM with SQL Server 2017 or 2019 running. My training classes generally involve performance tuning servers, indexes, and queries. In theory, I could run SQL Server in a Docker container and run queries in Azure Data Studio. In practice, ADS’s execution plan experience isn’t quite there yet, and I want the students to see the same user interface they’re used to using every day (SSMS).

When I need to edit Power BI reports – despite thousands of votes, Microsoft doesn’t plan on bringing Power BI Desktop to the Mac. It’s by far and away the top-voted not-planned item, and if it hadn’t been shelved as not-planned, it’d still be on the leaderboard for the top requested features overall:

Closed as “works on my Windows machine”

So I have to fire up a Windows VM when I want to edit Power BI files.

This would be different if I had a different job.

If I was a remote DBA contractor, like if I had to regularly jump in and fix broken Agent jobs, then I’d probably have a lot more VMs. I’d still aim for one VM per client just because VPN software can be so terrible. I wouldn’t want one client’s VPN update to hose someone else’s connection.

If I was a full time DBA for a company with only a handful of production servers, or a development DBA doing performance tuning work on just a handful of applications,  I’d still have a Mac as my primary desktop, but I’d use a jump box to run SSMS and SentryOne Plan Explorer.

If I was a full time DBA with dozens or hundreds of SQL Servers, I’d probably switch back to Windows and focus on automating my work with PowerShell.

Exit mobile version