This post will illustrate a very simple end-to-end walkthrough of how you can use SQL 2008 reporting features to expose and analyze system administration information. This post will demonstrate the creation and deployment of a simple SSRS report that shows all the events in the “System” event log.
What you’ll need
Assumptions
Notes about the demo:
Launch SQL Management Studio, and create a new Database called “DemoLogParser”
One the DemoLogParser DB is created, you’ll see there are no tables.
We’ll change that in a moment.
Start LogParser and run this command
LogParser.exe "SELECT * INTO eventlog_system from System" -o:SQL -server:isotope -database:DemoLogParser -createtable:ON
Now if you example the DemoLogParser database you’ll see a table called “dbo.eventlog_system” has been created. Examine the table and you’ll see all the columns that logparser created
NOTE: for these steps, the demo assumes they are being done from a separate developer workstation. (in this example they are being done on my primary desktop called “saveenr10”)
Launch SQL Report Builder
Create a new DataSource to the DemoLogParser database. Call this DataSource “DataSourceLogParser”
Create a new DataSet to for the event log table, call this “DataSetSystemEventLog”
Then add the DataSet as a table to the report. Some of the fields will be automatically aggregated (for example with “Sum”) so clear that from the fields.
Preview the report
Save the Report as an RDL file and upload it to the SSRS Server
Now you can see the report via SSRS