Scripting Blog

A place to learn about PowerShell and share stories of automation

Use PowerShell to Troubleshoot SQL Server via the Error Log

Summary: Guest blogger, Laerte Junior, discusses using Windows PowerShell to troubleshoot SQL Server by parsing the SQL error log.  Microsoft Scripting Guy, Ed Wilson, is here. Today we have another guest blogger, Laerte Junior. Here is a little bit about Laerte. Laerte Junior is a SQL Server specialist and an active member of WW SQL ...

Four Easy Ways to Import CSV Files to SQL Server with PowerShell

Summary: Learn four easy ways to use Windows PowerShell to import CSV files into SQL Server. Microsoft Scripting Guy, Ed Wilson, is here.  I was chatting this week with Microsoft PowerShell MVP, Chad Miller, about the series of blogs I recently wrote about using CSV files. He thought a helpful addition to the posts would be to talk about ...

BATCHman Uses PowerShell to Import a CSV File into His SQL Server

Summary: Windows PowerShell superhero BATCHman quickly imports CSV data into his SQL Server.   Microsoft Scripting Guy Ed Wilson here. Sean Kearney is back today with Episode 6 of the BATCHman series. Note   You can read all gripping, engaging, informative, and downright funny BATCHman episodes.   Whenever trouble happens ...

Capture Performance Counter Data and Write to SQL Server

Summary: Learn how to use Windows PowerShell to capture performance counter information and write the saved data to a SQL Server database.   Hey, Scripting Guy! I have been enjoying your PoshMon articles this week, but I have found them to be of limited value. I would love to see how I could store this performance data in a SQL database. ...