Solved

Using powershell to extract data from an SQL Server 2008 R2 custom report

Posted on 2016-08-17
2
53 Views
Last Modified: 2016-08-17
Heyas,

Modified the SQL Server 2005 Performance Dashboard Reports https://www.microsoft.com/en-au/download/details.aspx?id=22602 to work with SQL Server 2008.

How do I use PowerShell to call and extract data from these custom reports?

There is no reporting services model on my server so it can't be utilized.

Any assistance is appreciated.

Thank you.
0
Comment
Question by:Zack
2 Comments
 
LVL 17

Accepted Solution

by:
Barry Cunney earned 500 total points
ID: 41759139
Hi
I would advise to try the following approach:
Start up a SQL Server Profiler session to trace SQL against the server.
Then run the Performance Dashboard Report and afterwards examine the SQL logged in Profiler.
This may give an idea what SQL Server looks at to get the raw performance data - it is possibly some sort of system tables/views.
Then use Powershell Invoke-Sqlcmd cmdlet to execute similar SQL against these system tables/views to get the performance data.

Also please look into Powershell SMO for some ideas of interacting with SQL Server.
0
 

Author Closing Comment

by:Zack
ID: 41760348
Cheers for the input looking into Powershell SMO now.
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
Ever wondered why sometimes your SQL Server is slow or unresponsive with connections spiking up but by the time you go in, all is well? The following article will show you how to install and configure a SQL job that will send you email alerts includ…
The viewer will learn how to dynamically set the form action using jQuery.
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now