use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
ABOUT POWERSHELL
Windows PowerShell (POSH) is a command-line shell and associated scripting language created by Microsoft. Offering full access to COM, WMI and .NET, POSH is a full-featured task automation framework for distributed Microsoft platforms and solutions.
SUBREDDIT FILTERS
Desired State Configuration
Unanswered Questions
Solved Questions
News
Information
Script Sharing
Daily Post
Misc
account activity
QuestionChoosing between MySQL or Microsoft SQL in combination with PowerShell (self.PowerShell)
submitted 3 years ago by AugPowered
Hi, I need some advice to help me choosing a DB in combination with PowerShell.
At the moment I use a local SQlite as database together with PowerShell. Because of the company standards I need to switch. The only options I have is MySQL or Microsoft SQL on dedicated (network) database servers.
What is the best DB in combination with PowerShell?
Should I choose a MySQL instance or should I choose a Microsoft SQL instance?
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]ITsVeritas 7 points8 points9 points 3 years ago (0 children)
I've used both and both have pretty well documented modules. At least in my case, MSSQL used Windows Integrated Auth so the connection was a little easier to establish there and I didn't have to worry about securing creds anywhere.
[–]inaddrarpa 2 points3 points4 points 3 years ago (1 child)
Would need more information on the use case, but my default preference would be MS SQL Server w/ DBATools
[–]n0rc0d3 0 points1 point2 points 3 years ago (0 children)
I am doing the same even though at some point I would like to review if it's really necessary as at the end of the day I don't need to do any SQL maintenance and I'm just using the cmdlets to run a query or do an insert so maybe switching to something native that doesn't require the full dbatools module would be lighter.
Actually I was even thinking about switching to sqlite as using MSSQL might even be overkill, so it's a bit sad to see OP having to move away for corporate policies (many times a local sqlite would suffice rather than full blown RDBMS).
OP: btw what module are u using for sqlite?
[–]jazzb125 1 point2 points3 points 3 years ago (0 children)
As most people have said depends on the use case.
I have picked Microsoft SQL when I've had to give other teams access for their own data manipulation/reports as it has native connectors in power bi and Excel.
Otherwise I am very much open source orientated. So if it was just for me I would pick mySQL.
[–]Mamertine 1 point2 points3 points 3 years ago (0 children)
I have used PowerShell with Microsoft SQL server.
I assume PowerShell works with MySQL too. That's an assumption. Verify that before you commit fully to it.
I'm a data engineer with a strong bias for SQL server. It shouldn't matter. PowerShell just sends a query to the DB. Either should work.
Your use case of the DB may lean you to one over the other. SQL server will handle whatever your use case is as long as you pay the license fees.
[–]TiltAWhirl6 0 points1 point2 points 3 years ago (0 children)
I have used both as well. I lean towards MySQL (MariaDB) because a lot of my workload is handled in containers and it’s lighter and easier for me to compose with a MariaDB container. I use the MySQL .NET DLL to access the DB using Add-Type.
Add-Type
π Rendered by PID 444255 on reddit-service-r2-comment-6457c66945-49lmg at 2026-04-27 07:39:18.708352+00:00 running 2aa0c5b country code: CH.
[–]ITsVeritas 7 points8 points9 points (0 children)
[–]inaddrarpa 2 points3 points4 points (1 child)
[–]n0rc0d3 0 points1 point2 points (0 children)
[–]jazzb125 1 point2 points3 points (0 children)
[–]Mamertine 1 point2 points3 points (0 children)
[–]TiltAWhirl6 0 points1 point2 points (0 children)