# Use PowerShell to configure an active geo-replication failover group for a single Azure SQL database This PowerShell script example configures an active geo-replication failover group for a single ...
Additional SQL Database PowerShell script samples can be found in the [Azure SQL Database PowerShell scripts](../sql-database-powershell-samples.md).
A couple of months ago, I wrote an article on how to use PowerShell to back up a database within SQL Server Express Edition. Even though the technique that I described in that post works, the script ...
One way that organizations are storing data in the cloud is by moving their databases to the cloud. What once meant building an entire physical server, patching it, installing software like Microsoft ...
There are lots of ways to create MSSQL databases via PowerShell. We could invoke a T-SQL query using the CREATE DATABASE term, we could write some code to use the [Create() method with SMO] or, if ...
I’ve created a script that monitors a table in a SQL Server database. I’m only interested in one column in the table: TimeStamp. If the maximum (newest) value in TimeStamp is more than 30 minutes ...
Learn how Microsoft PowerShell works, what you can automate with it, and how Windows PowerShell 5.1 and PowerShell 7 differ ...
Enjoy the first SQLServer PowerShell module of 2021! This time a handful of changes/fixes in Invoke-SqlNoteBook and an update in Invoke-Sqlcmd (new -StatisticsVariable) parameter (thanks to ...
Editor's note: Adam Bertram originally wrote the article and Brien Posey expanded it. The PowerShell parameter is a fundamental component of most PowerShell scripts. Parameters make it possible to ...