30 August 2006

Management Studio Reports - Part 3 - Standard Reports

Sorry for the delay for part 3.  I have not been able to take our existing standard reports and make them work properly in a Reporting Services environment.  I'm going to release the files anyway, in case one of you can figure out what is wrong.  I'm not a Reporting Services guru, but I hope that somebody out there can find the bug and let us all know.  (I think the problem is in the extraction tool that we used to dynamically localize them into US - English.)

Please see the attached zip file containing all of our standard reports.  You can view them in Business Intelligence Development Studio and look the queries behind them... but for some reason, some (original Disk Usage.rdl for example) will not run out of the box.

Here are some descriptions of parameters for the reports:

Parameter Name

CLR data type

Comments

ObjectTypeName

String

The type of object. For example, “Database”, “Login”, “Functions”.

ObjectName

String

The name of the object. For example, “Foo”, “AdventureWorksDW”, “GetUserIDFromName”, etc.

ErrorText

String

Used in the Default report to show error information.

Filtered

Boolean

This was used to indicate whether the dataset being passed from OE is filtered or not. We will respect the filters the user has in place in OE and this parameter allows us to indicate on the list reports whether the list is filtered.

ServerName

String

Name of the server and instance currently connected. In the form of “server\instance” for a named instance and “server” for a default instance.

Prompt Name: ServerName

Allow Null:    checked

Allow Blank:  checked

Avail Values: none

Defaults:       none

FontName

String

Name of the font to be used to display the report.

Defaults:       Non-Queried – “Tahoma”

DatabaseName

String

Name of the database containing the current object. If the object is not database scoped, this value will be an empty string.

Please post a comment if you have any questions/suggestions.

Paul A. Mestemaker II
Program Manager
Microsoft SQL Server

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

# SimonS SQL Server Stuff said:
Have you wanted to get your hands on the Reports that are available in Management Studio. Well you now...
04 September 06 at 9:46 AM
# SimonS' SQL Server Stuff said:
If you've downloaded the SSMS reports and want to get the Disk Usage report working. Follow these...
04 September 06 at 10:36 AM
# SimonS SQL Server Stuff said:
If you've downloaded the SSMS reports and want to get the Disk Usage report working. Follow these...
04 September 06 at 10:36 AM
# Charl Reid said:
Hi Paul
Fantastic work on making these reports available! As SimonS says it is easy to get the Disk Usage report working if you remove (or modify /* */ for --) the comments and add an ; after each last declare; however there is one issue I can't seem to track down.

The section labeled Disk Space Used By Partitions has an error against the column Partition Defined On which is this code:

=IIF(Fields!index_id.Value = 0,"Table"
       ,"Index ({0})" Fields!name_1.Value -- This portion has a syntax error
       )

Will keep trying to resolve this, has anyone else got an idea?

Best regards,

Charl Reid
06 September 06 at 2:45 PM
# antxxxx said:

One of the things I really like in sql 2005 is the management reports available from within management...

15 November 06 at 9:50 AM
# Keith said:

The section labeled Disk Space Used By Partitions has an error against the column Partition Defined On which is this code:

=IIF(Fields!index_id.Value = 0,"Table"

      ,"Index ({0})" Fields!name_1.Value

      )

If you replace it with the following it fixes the problem.

=IIF(Fields!index_id.Value = 0,"Table"

       ,"Index ("&(Fields!name_1.Value)&")"

       )

21 February 07 at 9:07 PM
# Sander Stuurwold said:

Hello,

when I try open the "AS_Database" report after I change the name of the database in the datasource (datasource2) I get an eror (I copied and named the report SAS_Database).

Error 1 [rsCompilerErrorInExpression] The Value expression for the textbox ‘textbox8’ contains an error: [BC30456] 'SqlServer' is not a member of 'Microsoft'. c:\documents and settings\administrator.mitros-net\desktop\ssms standard reports\ssms standard reports\SAS_Database.rdl 0 0

Please help me because I do not know what I do wrong

09 July 07 at 4:08 AM
# Dan's Blog said:

Did you know that Management Studio (SSMS) has a rich set of built-in reports? Furthermore, did you know

09 October 07 at 10:37 AM
# bean said:

where's the zip with standard reports???

24 October 07 at 6:33 AM
# Randy In Marin said:

I think the IIF evaluates the last argument even if it is null and not used.  I got around this by

1) Uncomment the line in one of the select statements which returns the "partition_defined_on" field.  

select a1.object_id

,       a2.name

,       Case when a1.index_id = 0 then 'Table' else ( ' Index (' + a3.name + ')') end as partition_defined_on

,       a1.index_id

2) Then a little below that code, replace name_1 and index_name with partition_defined_on

Before

       <Field Name="name_1">

         <DataField>index_name</DataField>

       </Field>

After

       <Field Name="partition_defined_on">

         <DataField>partition_defined_on</DataField>

       </Field>

3) Then remove the IIF

Before

                         <Value>=IIF(Fields!index_id.Value = 0,"Table"

       ,"Index ({0})"(Fields!name_1.Value)

       )</Value>

After

                         <Value>=Fields!partition_defined_on.Value</Value>

It runs.  I won't say it runs correctly, however.  

10 December 07 at 8:42 PM
# narayanann said:

can i able to copy the entire structure of the tables in a database

11 August 08 at 6:30 AM

Leave a Comment

Comment Policy: No HTML allowed. URIs and line breaks are converted automatically. Your e–mail address will not show up on any public page.

(required) 
(optional)
(required) 

About Paul Mestemaker

I am a Program Manager on the SQL Server Manageability Team at Microsoft. I am a proud University of Michigan alumnus. I graduated with a business degree from the Stephen M. Ross School of Business in 2005.
Page view tracker