Top Banner
Report publishing DBIS
34
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: DBIS_Report_Publishing_Version_1_April_1

Report publishingDBIS

Page 2: DBIS_Report_Publishing_Version_1_April_1

DBIS Standard Report PublishingSteps

1. After developing query in SSMS, have T-SQL code ready to copy,

and list of tables used in query.*

2. Open DBIS – open Query Depot, create folder for report, and run

query. This serves as validation for query, and possibly can be

used in the future for testing modifications.

3. Create report

4. Test report – run report in Reports to Go

* Only need list of tables that are the result of package runs – loads and appends – the first part of this presentation deals with simple report creation

Page 3: DBIS_Report_Publishing_Version_1_April_1

DBIS Report PublishingQuery Depot

Open Query Depot; - Tools / Query Depot

Queries / New / Folder

Page 4: DBIS_Report_Publishing_Version_1_April_1

DBIS Report PublishingQuery Depot

Give report meaningful name, similar to your report name – you will go back later and rename with the report name once it’s assigned

Locate your object; right-click, select New > Query

Page 5: DBIS_Report_Publishing_Version_1_April_1

DBIS Report PublishingQuery Depot

Give it a meaningful name that works for you – just be consistent – this is your place to test and document your queries.

Page 6: DBIS_Report_Publishing_Version_1_April_1

DBIS Report PublishingQuery Depot

Connect to the appropriate server

Page 7: DBIS_Report_Publishing_Version_1_April_1

DBIS Report PublishingQuery Depot

Drop your T-SQL in the code window to the right, and run your query – the results will display in the window at the bottom, similar to SSRS

Page 8: DBIS_Report_Publishing_Version_1_April_1

DBIS Report PublishingQuery Depot

The results will display in the window at the bottom, similar to SSRS – you’re ready to develop your report

Page 9: DBIS_Report_Publishing_Version_1_April_1

DBIS Standard Report PublishingReport creation

• First, determine what category you are going to replace the report in

Page 10: DBIS_Report_Publishing_Version_1_April_1

DBIS Standard Report PublishingReport creation

• Determine what category you are going to replace the report in; Say, for example, you want to put it in Customer Activity / Completed Jobs in Reports/ Residential / Texas

• Right-click on category folder, and get ready to name your report

Page 11: DBIS_Report_Publishing_Version_1_April_1

DBIS Report PublishingStandardReport creation

Select New/Report/Standard Report

Page 12: DBIS_Report_Publishing_Version_1_April_1

DBIS Report PublishingReport creation

Now enter the name for your report

Page 13: DBIS_Report_Publishing_Version_1_April_1

DBIS Report PublishingReport creation

A report number will automatically be assigned

Page 14: DBIS_Report_Publishing_Version_1_April_1

DBIS Report PublishingReport creation

Next: Bring in query for report – right click on report object; New / Query

Page 15: DBIS_Report_Publishing_Version_1_April_1

DBIS Report PublishingReport creation

Next: Name query – for every separate query you have, that will represent one tab in Reports To Go. Reports are often, for example, broken down between Residential and Commerical, with separate tabs and separate underlying queries. Or with 3 tabs, by region (NTX, CTX, STX)

Page 16: DBIS_Report_Publishing_Version_1_April_1

DBIS Report PublishingReport creation

Next: Right-click on query object

Page 17: DBIS_Report_Publishing_Version_1_April_1

DBIS Report PublishingReport creation

Next: Select Properties for your query

Page 18: DBIS_Report_Publishing_Version_1_April_1

DBIS Report PublishingReport creation

Next: Select server from drop-down

Page 19: DBIS_Report_Publishing_Version_1_April_1

DBIS Report PublishingReport creation

Next: Select server from drop-down

Page 20: DBIS_Report_Publishing_Version_1_April_1

DBIS Report PublishingReport creation

Next: Paste query in query window, overwriting default T-SQL

Page 21: DBIS_Report_Publishing_Version_1_April_1

DBIS Report PublishingReport creation

• Note: Description field may be used later for documenting modifications

Page 22: DBIS_Report_Publishing_Version_1_April_1

DBIS Report PublishingReport creation

Next: Paste query in query window, overwriting default T-SQL

Page 23: DBIS_Report_Publishing_Version_1_April_1

Export to Excel functionality• You will most likely want to set up the ability for the user to export to

excel• Right-click on object name; New > Export

Page 24: DBIS_Report_Publishing_Version_1_April_1

Export to Excel functionality• User will be able to run reports on their own, and export to excel

Page 25: DBIS_Report_Publishing_Version_1_April_1

Export to Excel functionality• Right click on export object; define properties; enable if so desired.• Save changes

Page 26: DBIS_Report_Publishing_Version_1_April_1

DBIS Report PublishingReport creation

Next: Check Excel; Enabled; Save changes *

* Note: You may want to wait until process is fully tested before enabling package, especially if there is a related pacakage table append

Page 27: DBIS_Report_Publishing_Version_1_April_1

Dependencies

• Need to set up dependencies – any report that uses tables that are the result of packages with table loads/appends need to be set up. Should have list of applicable tables ready.

Page 28: DBIS_Report_Publishing_Version_1_April_1

Dependencies

Right-click on report object name / View package

Page 29: DBIS_Report_Publishing_Version_1_April_1

Dependencies

Click on Dependencies tab

Page 30: DBIS_Report_Publishing_Version_1_April_1

DependenciesUsing drop-downs, add appropriate tables used in the query

Page 31: DBIS_Report_Publishing_Version_1_April_1

DependenciesUsing drop-downs, add appropriate tables used in the query

Click “Add” button to add to list of tables with dependencies

Page 32: DBIS_Report_Publishing_Version_1_April_1

End of Standard Report Publishing

• With no load / append packages

Page 33: DBIS_Report_Publishing_Version_1_April_1

REMINDER

• Remember to include that all reports need to have dependencies set up, whether there is a package for a table load/append involved or not

• Discuss timing issues, such as monthly reports run on the 19th if low usage

Page 34: DBIS_Report_Publishing_Version_1_April_1

Package Scheduling