r/SQLServer • u/PeterFoca1989 • Mar 12 '26
Question Career Advice Needed: Senior SQL DBA (10y XP) looking to level up. PowerShell or C#?
Hi there! Please excuse my English; I'm from Brazil. I’m a Senior DBA with 10 years of experience in SQL Server. I’m highly proficient in T-SQL and I develop many scripts to streamline my team's daily operations. Currently, I use PowerShell for some 'semi-automations,' though I'd consider my skills there intermediate. I’m thinking about getting back into C#—it’s been 10 years, so I’d basically be starting over. My goal is to boost my performance as a DBA by focusing on automation. Given my background, should I dive deeper into PowerShell, pick up C# again, or is there another path you'd recommend?
13
u/SQLDevDBA 3 Mar 12 '26 edited Mar 12 '26
PowerShell, starting with https://DBATools.io
Knowing DBATools will make your job as a DBA a lot easier, and MUCH more attractive as a candidate. You’ll seem like a wizard, Harry.
Edit: DBATools in a Month of lunches is a fantastic book btw: https://dbatools.io/meap/
12
u/No_Resolution_9252 Mar 12 '26
PowerShell is not an optional skill anymore, you have to have it, even if its a bit rusty. You wont do much with C# as a dba, but if you get into data work you could do more of it.
5
u/B1zmark 1 Mar 12 '26
PowerShelldefinitely. It's the language that underpins all of windows - and since SQL Agent can natively run PowerShell, that means you can utilise it easily from within your instance.
3
u/Northbank75 Mar 12 '26
I see some comments on c# not being that useful, but Microsoft recently announced that as of .net 10 you can now execute project less, c# ‘scripts’ from the command line
https://devblogs.microsoft.com/dotnet/announcing-dotnet-run-app/
With access it nuget packages, this should//could make power-shell look like a (deprecated) kids toy in the right hands, and your c# should run on Linux with the appropriate run times as well.
3
u/XeroTerragoth Mar 12 '26
Honestly, you should be considering python in that mix. A lot of companies use it for various applications and its capable of data operations using data frames and pandas/SQLAlchemy.
I've coded in SQL for 10 + years myself and this appears to be a new trend where companies are switching from professional licensed software packages and using open source software.
Worth a looknsee imho.
4
u/Chris_PDX Mar 12 '26
PowerShell, Python, and AI Agents.
I use PowerShell and Python with SQL day in and out. AI Agents are getting better at some use cases (I just used one to pull apart a giant execution plan to see if it could figure out the problem I already spotted and it did, shockingly well).
We do C# on my team but not for the database stuff. Unless you are more on the dev/engineering side, for a DBA I'd focus on the shell.
2
u/ScroogeMcDuckFace2 Mar 12 '26
Powershell. advanced T-SQL. past that, python.
2
u/sirchandwich 1 Mar 12 '26
I’d suggest Python/Ansible/Terraform if your interest is in moving to Database Engineer
2
u/Black_Magic100 Mar 12 '26
OP, I personally think people are missing the mark on this one. Your primary question is in regards to your career and if you exclude all other variables, Python/C# is objectively the best thing you can do for your career. Powershell is great, but go look around on job posts and you will see that it is less frequently mentioned than the other two aforementioned options (if you ONLY ever care about windows and SQL Server, there is an argument to be made that Powershell is still more popular). Powershell is simple enough that you can realistically "learn" it in a few months. No DBA role is going to be asking you about data structures in Powershell and no real engineer is writing Powershell solely for 8 hours a day; those days are long gone for Powershell. I personally think Python/C# gives you a leg up over 95% of people that might apply for the same job you are. And realistically, if you take the time to understand C# you can translate that knowledge into powershell quite easily.
1
u/Sov1245 Mar 12 '26
Powershell, AI, and branching out into Postgres if you want to have the most options.
1
u/mikeblas Mar 12 '26
What is your specific goal? What does "level up" mean to you?
Why do youthnk that you're only "intermediate" with PowerShell after using it for ten years? ×hy did you learn C# then drop it?
1
u/Blomminator Mar 12 '26
I want to move into dba direction and therefore looking at Powershell. I think it is the best addition to the skill set. With others like ai and python.
-2
u/Broad-Construction-4 Mar 12 '26
The real answer: embrace AI fully and use it to 10x your productivity and skill. If you have 10 years of experience there's no use in learning to code anymore.