SlideShare a Scribd company logo
1 of 34
如何輕鬆快速開發報表:談SQL Server 2008 報表開發 胡百敬(http://byronhu.spaces.live.com) 精誠公司 恆逸資訊
Reporting Services 2008 Reporting Services Reporting Services 是完整的,以伺服器為基礎,橫跨全企業的報表平台,支援編輯、管理和發送互動好用的報表 管理 發送 編輯 2007 Sales   Embedded Reporting Web Report XML
大綱 報表設計 全新資料來源以設計異質性資料報表 Report Builder 2.0 新增的 Tablix 資料區域 新增的圖表與量測軌資料區域 文字方塊支援豐富文本格式設定 報表處理與轉譯 轉譯為Word檔案格式 Excel 可以轉譯子報表 大幅提升報表處理以及轉譯執行效率 報表伺服器架構與管理工具 從此脫離了IIS 新的管理介面 Reporting Services 組態管理員
報表設計方式改變 Report Designer
報表設計工具 Report  Designer 報表設計師 報表產生器1.0 報表產生器2.0 Office 2007外觀 整合VS.NET 2008 完整支援RDL 分享配置介面 Report Builder 2.0 報表模型 整合查詢與配置 完整支援報表模型 自動產生鑽研報表 有限支援RDL Report Builder 1.0
報表產生器2.0 報表產生器2.0= 報表設計師+ 報表精靈+ 報表產生器1.0 專業開發人員以及一般使用者都可以使用 接近Office 2007的介面 可以處理複雜格式的報表 同時支援資料集與報表模型 可以隨時切換報表設計師或者是報表產生器的報表 報表產生器2.0將是未來隨選報表的技術主流
群組資料 群組(Group)類型 詳細資料–預設 Table 或 List 沒有群組的內容 資料列群組和資料欄群組 – 傳統的群組 Recursive hierarchy groups – 階層資料 群組工作窗格(Group Task Pane) 階層式地呈現列和行的群組 透過快捷選單加入相鄰的資料列或資料行群組 透過群組屬性對話窗來定義群組運算式、分頁、排序、可見性、篩選、變數、進階 7
Tabl ix e + Matr
Tablix = Table + Matrix Matrix plus 多重平行資料列/資料行群組 每個成員可以自由決定動態或者是靜態 可以整合資料列標頭 Table plus 動態巢狀資料行群組 多重平行資料列群組 靜態資料列 可彈性延伸資料行標頭
動態平行群組 以前 現在
混和動態/靜態資料行 以前 現在
階層資料列以及動態標頭 以前 現在 ... ...
加入總計 “加入總計” 命令 在群組內搭配彙總函數加上資料列或行 允許在所選擇的群組之前或後增加 總計資料列或資料行 支援各種彙總函數,例如 Average() 或 Min() 在資料列或資料行呈現文字方塊 – 不再有綠色三角型!
使用變數 報表變數(Report variable) 在報表執行當下賦予值,處理過程中不再變動 在報表前後換頁時,每一頁中會有相同的值,若是以運算式設定如 Now() 函數,則資料會不同 群組變數 在群組 scope 內賦予變數值,子群組可以使用 賦予當下群組計算一個唯一值 語法:=Variables!VariableName.Value
資料視覺化全新升級 新增圖表類型 堆疊圖、範圍圖、箱型圖、金字塔圖、甜甜圈圖… 強化圖表功能 混合圖表 雙軸圖表 導出數列 刻度斷層 多重圖例 自動數列標籤 量測軌 各種儀表板型態
豐富的圖型呈現
SSRS 2008 的圖表類型 Bar Bar, Stacked (3-D), 100% Stacked (3-D), Clustered (3-D) Stacked Horizontal Cylinder (3-D), Stacked 100% Horizontal Cylinder (3-D), Clustered Horizontal Cylinder (3-D) Scatter Bubble Polar Polar, Radar (3-D) Pareto Histograms Column Column (3-D), Stacked (3-D), 100% Stacked (3-D), Clustered (3-D), Cylinder (3-D) , Stacked Cylinder (3-D), 100% Stacked Cylinder (3-D), Clustered Cylinder (3-D) Line Line (3-D), Smooth Line, Stepped Line, Line with Markers, Smooth Line with Markers Shape Pie (3-D),  Exploded Pie (3-D), Doughnut, Exploded Doughnut, Funnel (3-D), Pyramid (3-D) Area Area (3-D), Smooth Area (3-D), Stacked, 100% Stacked (3-D) Range Smooth, Range Column, Range Bar, Stock, Candlestick, Error Bar, Boxplot 黃字部分為 SSRS 2008 新增的
新圖表功能 多重圖表標題(標題支援運算式) 多重圖例 資料點的工具提示 多重圖表區域 雙軸圖表 客製化圖表調色盤 導出數列 平均值、移動平均、保歷加通道(Bollinger Bands)、標準差… 刻度斷層
圖表範例 區域效果 刻度斷層 圖型配色
圖表範例 多重圖例 導出數列 隔行換色 多重圖表區域
圓餅圖 小面積「其他」 Custom Attribute. CollectedStyle=SingleSlice CollectedThresholdUsePercent CollectedThreshold 小面積新圓餅圖 Custom Attribute. CollectedStyle=CollectedPie
量測軌 SSRS2008 新增量測軌(Gauge)資料區域(data region) 兩種主要類型 雷達型(Radial)和線型(Linear) 用途 一般繫結到單一或少許的資料點(值、目標…等) 可用來呈現 KPIs 單獨呈現或內嵌到 tablix (bullet graph)
量測軌範例 雷達型 線性
量測軌結構
Richly Formatted Text textbox 可以混合不同的格式設計 透過 expression placeholder 可做到 Mail-merge 功能 段落 Numbered/bulleted lists 段落對齊 HTML 標籤為基礎的格式化 Word DOC 輸出
SSRS 2008效能新架構 隨選報表處理(On-demand processing):沒看到的部分就先不處理 全新分頁機制:直接呈現第一頁給使用者瀏覽 最小記憶體耗用
分頁回應速度
從此脫離IIS!!! 改以內建於SQL Server CLR的ASP.NET以及 .NET Framework,與作業系統的HTTP.SYS取代 避免與其他網頁程式之間的干擾 不受ASP.NET記憶體政策之管控 簡化效能調校與維護複雜度
新的設定管理介面 Reporting Services 組態管理員
記憶體管理原則 RSReportServer.config檔提供設定: WorkingSetMaximum和WorkingSetMinimum會定義可用記憶體的範圍(上下界),以定義報表伺服器應用程式設定可用記憶體的範圍 高度記憶體壓力的上界是WorkingSetMaximum而下界是MemoryThreshold 中度記憶體壓力的上界是MemoryThreshold而下界是MemorySafetyMargin 低度記憶體壓力的上界是MemorySafetyMargin而下界是WorkingSetMinimum
參考資源 SQLServer2008CumulativeUpdate http://support.microsoft.com/hotfix/KBHotfix.aspx?kbnum=956717&kbln=zh-tw
Q&A
© 2008 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation.  Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation.  MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
各版本部署

More Related Content

Similar to 如何輕鬆快速開發報表:談 SQL Server 2008 報表開發

Similar to 如何輕鬆快速開發報表:談 SQL Server 2008 報表開發 (20)

六合彩
六合彩六合彩
六合彩
 
香港六合彩
香港六合彩香港六合彩
香港六合彩
 
香港六合彩
香港六合彩香港六合彩
香港六合彩
 
香港六合彩
香港六合彩香港六合彩
香港六合彩
 
香港六合彩
香港六合彩香港六合彩
香港六合彩
 
2016統計地圖API教學簡報
2016統計地圖API教學簡報2016統計地圖API教學簡報
2016統計地圖API教學簡報
 
敦群學院-SharePoint精英計畫-系統管理-Day 3
敦群學院-SharePoint精英計畫-系統管理-Day 3敦群學院-SharePoint精英計畫-系統管理-Day 3
敦群學院-SharePoint精英計畫-系統管理-Day 3
 
聯銓資訊科技 2019 研討會 (五月) part3
聯銓資訊科技 2019 研討會  (五月) part3聯銓資訊科技 2019 研討會  (五月) part3
聯銓資訊科技 2019 研討會 (五月) part3
 
商業智慧工具:Smart eVision HTML5
商業智慧工具:Smart eVision HTML5商業智慧工具:Smart eVision HTML5
商業智慧工具:Smart eVision HTML5
 
Lotus domino开发教程
Lotus domino开发教程Lotus domino开发教程
Lotus domino开发教程
 
Sql Server2005 Ssi Stranslation
Sql Server2005 Ssi StranslationSql Server2005 Ssi Stranslation
Sql Server2005 Ssi Stranslation
 
Report system develope
Report system developeReport system develope
Report system develope
 
開發 Windows azure 雲端應用程式
開發 Windows azure 雲端應用程式開發 Windows azure 雲端應用程式
開發 Windows azure 雲端應用程式
 
达尔文信息云平台
达尔文信息云平台达尔文信息云平台
达尔文信息云平台
 
Rpm 20051201 v2
Rpm 20051201 v2Rpm 20051201 v2
Rpm 20051201 v2
 
IBM System X
IBM System XIBM System X
IBM System X
 
Android動態ui介面設計
Android動態ui介面設計Android動態ui介面設計
Android動態ui介面設計
 
PPT ICON LIBs
PPT ICON LIBsPPT ICON LIBs
PPT ICON LIBs
 
敦群學院-SharePoint精英計畫-系統管理-Day 1
敦群學院-SharePoint精英計畫-系統管理-Day 1敦群學院-SharePoint精英計畫-系統管理-Day 1
敦群學院-SharePoint精英計畫-系統管理-Day 1
 
Sql or no sql, that is the question
Sql or no sql, that is the questionSql or no sql, that is the question
Sql or no sql, that is the question
 

More from Chui-Wen Chiu

More from Chui-Wen Chiu (20)

Dynamic Python
Dynamic PythonDynamic Python
Dynamic Python
 
Pythonpresent
PythonpresentPythonpresent
Pythonpresent
 
Introduce Django
Introduce DjangoIntroduce Django
Introduce Django
 
移動內存算法
移動內存算法移動內存算法
移動內存算法
 
墾丁 更新版
墾丁  更新版墾丁  更新版
墾丁 更新版
 
墾丁 更新版2
墾丁  更新版2墾丁  更新版2
墾丁 更新版2
 
Bw1096
Bw1096Bw1096
Bw1096
 
高雄新地標 統一夢世代
高雄新地標  統一夢世代高雄新地標  統一夢世代
高雄新地標 統一夢世代
 
Borland傳奇
Borland傳奇Borland傳奇
Borland傳奇
 
Python 庫簡介
Python 庫簡介Python 庫簡介
Python 庫簡介
 
Asp.Net Mvc 1.0
Asp.Net Mvc 1.0Asp.Net Mvc 1.0
Asp.Net Mvc 1.0
 
天下第一 夜市總冠軍
天下第一 夜市總冠軍天下第一 夜市總冠軍
天下第一 夜市總冠軍
 
下班就跑是富有哲學道理1
下班就跑是富有哲學道理1下班就跑是富有哲學道理1
下班就跑是富有哲學道理1
 
認識腸病毒
認識腸病毒認識腸病毒
認識腸病毒
 
排隊的店
排隊的店排隊的店
排隊的店
 
柬埔寨鄉村婚禮
柬埔寨鄉村婚禮柬埔寨鄉村婚禮
柬埔寨鄉村婚禮
 
新 創 意
新 創 意新 創 意
新 創 意
 
挖好屬於自己的井
挖好屬於自己的井挖好屬於自己的井
挖好屬於自己的井
 
Why The Us Wants War 080702
Why The Us Wants War  080702Why The Us Wants War  080702
Why The Us Wants War 080702
 
你今天的選擇是什麼?
你今天的選擇是什麼?你今天的選擇是什麼?
你今天的選擇是什麼?
 

如何輕鬆快速開發報表:談 SQL Server 2008 報表開發

Editor's Notes

  1. The Group Task pane makes it easier to see which groups are used and how they are arranged. Additionally, this pane makes it easier to access the editor for each group.
  2. Mention that, when you select a textbox containing an aggregate, the data region identifies the groups in scope for that aggregate with an orange bar.
  3. To set a report variable, right-click the report background in the designer.,click Report Properties, and click Variables. To set a group variable, right-click a group in the Group Task Pane, click Edit Group, and click Variables.