This month's discount Comprehensive Database Performance Health Check · Testimonials
SQLAuthority with Pinal Dave
Home
  • Consulting
    • Health Check
  • Free Videos
  • All Articles
    • AI
    • SQL Performance
    • SQL Tips and Tricks
    • Interview Questions and Answers
    • SQL Puzzle
    • SQL Video
    • SQLAuthority News
    • Personal
  • Books
  • Consulting
SQL SERVER - Script: Change Service Account Using WMI / SMO

SQL SERVER – Script: Change Service Account Using WMI / SMO

January 23, 2016
Pinal Dave
SQL Tips and Tricks
PowerShell, SQL DMV, WMI

How do you manage 1000 SQL Servers without clicking through each one? Here is the script I use to change service account for all instances with WMI and SMO.

Read More
Execution policy change tool.

SQL SERVER – Starting / Stopping SQL Server Agent Services using PowerShell

January 15, 2016
Pinal Dave
SQL Tips and Tricks
PowerShell

Stop clicking through SSMS on every server. Here is how to start and stop SQL Server Agent services on many servers using PowerShell.

Read More
SQL SERVER - Working with Event Viewer and PowerShell

SQL SERVER – Working with Event Viewer and PowerShell

January 11, 2016
Pinal Dave
SQL Tips and Tricks
PowerShell

A DBA on Windows Server Core had no UI to read logs. Here is how to work with Event Viewer and PowerShell to read the events you need.

Read More
SQL SERVER - PowerShell - Knowing SQL Server Information

SQL SERVER – PowerShell – Knowing SQL Server Information

August 17, 2015
Pinal Dave
SQL Tips and Tricks
PowerShell

A PowerShell script that reads SQL Server information from my localhost using SMO and writes it to a simple HTML page you can open in any browser.

Read More
PowerShell: How to Find Logical and Physical Processors on SQL Server?

PowerShell: How to Find Logical and Physical Processors on SQL Server?

July 18, 2015
Pinal Dave
SQL Tips and Tricks
PowerShell

With core based licensing, a DBA friend asked how to count cores. Here is a PowerShell script using WMI to find logical and physical processors on SQL Server.

Read More
SQL SERVER - PowerShell to Count Number of VLFs in SQL Server

SQL SERVER – PowerShell to Count Number of VLFs in SQL Server

June 23, 2015
Pinal Dave
SQL Tips and Tricks
PowerShell, SQL Scripts, SQL Server, VLF

Too many VLFs can hurt performance. Here is a simple PowerShell script that counts the VLFs in every database on one or many SQL Server instances.

Read More
SQL SERVER - Using PowerShell and Native Client to run queries in SQL Server

SQL SERVER – Using PowerShell and Native Client to run queries in SQL Server

June 20, 2015
Pinal Dave
SQL Tips and Tricks
PowerShell, SQL Scripts

A friend wanted PowerShell and Native Client, not SQL PowerShell, to run queries against SQL Server. Here is the small sample script I wrote for it.

Read More
Previous 1 … 3 4 5 6 7 8 9 Next
  • Books
  • Testimonials
  • Privacy Policy

© 2006 – 2026 All rights reserved. pinal @ SQLAuthority.com