Posted in DBA ETL PowerShell SQL Server

BCP and PowerShell

Sometimes you need to extract a large number of tables into some other format. I’ve written about BCP earlier as a quick option to move…

Continue Reading... BCP and PowerShell
Posted in Azure PowerShell SQL Server

Azure SQL Database – Get users and role members for all databases

I ran into a concern to quickly audit all current users and role members for a set of Azure SQL databases, spread across multiple resource…

Continue Reading... Azure SQL Database – Get users and role members for all databases
Posted in PowerShell SQL Server

Creating and Setting SQL Server Certificates with PowerShell

I recently had a need to add certificates to SQL Servers throughout an organization. There were quite a few servers to update and the certificates…

Continue Reading... Creating and Setting SQL Server Certificates with PowerShell
Posted in DBA PowerShell SQL Server

Using PowerShell to restore Missing Windows Installer cache items

This seems oddly specific, but someone or something had cleared out many files from the Windows\Installer folder, probably to save space. (Sidenote, you can actually…

Continue Reading... Using PowerShell to restore Missing Windows Installer cache items
Posted in DBA PowerShell Scripting SQL Server

Quickly execute a folder of SQL scripts using dbatools and PowerShell

I have often run into a situation where it’s been necessary to execute a bunch of scripts handed to me by developers or others. When…

Continue Reading... Quickly execute a folder of SQL scripts using dbatools and PowerShell
Posted in PowerShell Scripting

Putting The PowerShell Window Title To Better Use | xkln.net

I’ll admit that I typically use VSCode for most of my scripting, but Milosh Djuric put together some neat PS to make the console window…

Continue Reading... Putting The PowerShell Window Title To Better Use | xkln.net
Posted in PowerShell SQL Server

Importing Registered Servers from SSMS into Azure Data Studio – Port 1433

Drew Furgiuele came up with a PS script to import your SSMS Registered Servers into Azure Data Studio. He wrote it up in much more…

Continue Reading... Importing Registered Servers from SSMS into Azure Data Studio – Port 1433
Posted in PowerShell

Powershell: Writing Text Files

I was recently trying to generate a bunch of data that I needed to pass through one of our in-house DLLs in order to use…

Continue Reading... Powershell: Writing Text Files
Posted in PowerShell

Powershell Links – 2010-03-06

Here are some of the more interesting Powershell links I came across recently, along with some thoughts about them. Powershell, String Encryption, and GPG –…

Continue Reading... Powershell Links – 2010-03-06
Posted in PowerShell

Powershell Community Extensions

While with the time and knowledge we can write a lot of the things we’ll use in Powershell, it’s often not worth it to re-invent…

Continue Reading... Powershell Community Extensions