Pattern Matching with the PowerShell Switch Operator

Switching to switch if I have multiple if’s

Advertisements

Words: 646

Time to read: ~ 3 minutes

Date of writing: 2017-10-19

Continue reading “Pattern Matching with the PowerShell Switch Operator”

Importing Excel into SQL Server using PowerShell

Ah T-SQL Tuesday, is it that time again? And the 94th one at that! Wow!

Words: 797
Time to read: ~4 minutes

Update: 2017-09-20 Thanks to Rick Fraser for pointing out I showed a $ServerConnection but hadn’t defined it in the function or separately or at all!¬†Thanks Rick!

Continue reading “Importing Excel into SQL Server using PowerShell”

How Can I Replace “No column name” With A Word In SQL Server?

An ode to a knowledge seeker

Words: 398
Time to read: ~ 2 minutes
tl;dr : Give it an alias! ( select ‘0’ AS [Zero]; )

Continue reading “How Can I Replace “No column name” With A Word In SQL Server?”

[PowerShell] Name Parameters When Using ForEach-Object…or else!

…or else you script may not work properly. That’s all, I’m not that scary.

Words: 853
Time to read: ~ 4.5 minutes

Continue reading “[PowerShell] Name Parameters When Using ForEach-Object…or else!”