Solved

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

Posted on 2016-08-17
2
66 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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
SQL STANDARD CORE 8 40
How to add PC name on each line? 2 16
Powershell query 1 25
MS SQL Conditional WHERE clause 3 12
This article shows gives you an overview on SQL Server 2016 row level security. You will also get to know the usages of row-level-security and how it works
Windows 10 came with  a lot of built in applications, Some organisations leave them there, some will control them using GPO's. This Article is useful for those who do not want to have any applications in their image (example:me).
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

831 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