Running .SQL scripts with Powershell

Today I came across a great script by Andy Mishechkin on MS Technet.


The PowerShell script for execution of T-SQL batch files

It’s a great script for .SQL file execution against a SQL server. It can also run .SQL files which contains GO commands. In short: works like a charm!

Leave a comment