Okt
7
Written by:
Rolf Masuch
07.10.2007 11:06
Hallo Community,
zum Nutzen der PowerShell zusammen mit SQL haben die Kollegen von SQLTeam.com in ihrem Forum ein paar Beispielskripte. Die möchte ich euch natürlich nicht vorenthalten.
Der Autor des Forumeintrags hat vier Skripte hinterlegt:
1. create tables & procedures (this sets up the tables (3) and sp (1) that receives the performance counter values from the ps scripts)
2. include_monitor_performanceCounterValue.ps1 (this is a ps script that is "included" in other scripts just to call the database)
3. processor.ps1 (a sample powershell script to collect processorload counters)
4. disk.ps1 (a sample powershell script to collect logical disk counters)
Alles zusammen haben wir mit diesen wenigen Skripten (fast) alles zusammen um den SQL Server und seine Inhalte mit der PowerShell zu nutzen.
Rolf
Tags: