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 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 DBA TSQL

Checking and Configuring File Autogrowth for SQL Server

One thing that I seem to come across often enough is the old auto-growth settings from SQL Server. 1MB for data files, 10% for logs….

Continue Reading... Checking and Configuring File Autogrowth for SQL Server
Posted in DBA SSIS

Send Meaningful Errors for SSIS Packages

Recently, Kevin Hill (b | t ) posted on getting package errors from the SSIS catalog in a single query as opposed to clicking through…

Continue Reading... Send Meaningful Errors for SSIS Packages
Posted in DBA SQL Server

Long-Running Queries and Extended Events

This has been something I’ve wanted to investigate for a while now. I’ve know you could use Profiler and set up server-side traces to capture…

Continue Reading... Long-Running Queries and Extended Events