搜尋本站文章

2013-05-28

安裝 Master Data Services(MDS) - 以 SQL Server 2012 為例


示範版本:SQL Server 2012
開發工具:SSDT - Visual Studio 2012

認識 Master Data Services(MDS)

Master Data Services (MDS) 是用於主要資料管理的 SQL Server 方案。

主要資料管理 (MDM) 描述組織探索與定義非交易之資料清單所付出的心力,其目標在於編譯可維護的主要清單。

MDM 專案一般包含內部商業程序的評估與重組,以及 MDM 技術的實作。

成功的 MDM 方案結果是可以分析的可靠集中式資料,以進行更好的商業性決策。

透過適當的訓練,大部分商務使用者應該都可以實作 Master Data Services 方案。

此外,您還可以使用 MDS 管理任何網域;這不是單指管理客戶、產品或帳戶的清單。

首次安裝 MDS 時,它不包含任何網域的結構,但您可以透過為網域建立模型來定義所需的網域。

其他 Master Data Services 功能包括階層、更細微的安全性、交易、資料版本控制,以及商務規則。

下列工作流程提供如何安裝及設定 Master Data Services 的概觀。Master Data Services 安裝為三部分程序:


  • 安裝前工作:安裝 Master Data Services 之前,先確認系統需求。
  • 安裝作業:使用 SQL Server 安裝程式或命令提示字元,安裝 Master Data Services。
  • 安裝後工作:開啟 Master Data Services 組態管理員以完成安裝後的作業。 建立並設定 Master Data Services 資料庫、主資料管理員 Web 應用程式和 Web 服務,然後部署範例模型。





影片:
安裝 Master Data Services(MDS) - 以 SQL Server 2012 為例






Master Data Services 包含下列元件和工具:


  • Master Data Services 組態管理員,用來建立及設定 Master Data Services 資料庫和 Web 應用程式的工具。
  • 主資料管理員,可用來執行管理工作 (例如建立模型或商務規則),而且使用者可以存取更新資料的 Web 應用程式。
  • MDSModelDeploy.exe,您用來建立模型物件與資料的封裝,讓您可以將其部署至其他環境的一個工具。
  • Master Data Services Web 服務,開發人員可用來擴充或開發 Master Data Services 的自訂方案。
  • Master Data Services 適用於 Excel 的增益集,可讓您用來管理資料及建立新的實體和屬性。






參考資料

安裝 Master Data Services
http://msdn.microsoft.com/zh-tw/library/ee633752.aspx

Web 應用程式需求 (Master Data Services)
http://msdn.microsoft.com/zh-tw/library/ee633744%28SQL.110%29.aspx

IIS 8.0 Using ASP.NET 3.5 and ASP.NET 4.5
http://www.iis.net/learn/get-started/whats-new-in-iis-8/iis-80-using-aspnet-35-and-aspnet-45

Troubleshoot Installation and Configuration Issues (Master Data Services in SQL Server 2012)
http://social.technet.microsoft.com/wiki/contents/articles/2390.troubleshoot-installation-and-configuration-issues-master-data-services-in-sql-server-2012.aspx

Master Data Services
http://msdn.microsoft.com/zh-tw/library/ee633763.aspx

未安裝 .NET Framework 3.5,SQL Server 2012 安裝失敗:使用 Windows Server 2012
http://sharedderrick.blogspot.tw/2012/10/net-framework-35sql-server-2012-windows.html

在 Windows Server 2012 版本上設定基礎環境,準備作為安裝 SQL Server 2012 版本之用
http://sharedderrick.blogspot.tw/2012/10/windows-server-2012-sql-server-2012.html

2013-05-23

認識SSIS 目錄(Catalog)、專案部署(Deploy Projects) - 以 SSIS 2012 為例


示範版本:SQL Server 2012
開發工具:SSDT - Visual Studio 2012


認識SSIS 目錄(Catalog)

SSISDB 目錄是處理您已部署至 Integration Services 伺服器之 Integration Services (SSIS) 專案的中心點。

例如,您可以設定專案和封裝參數、設定環境以指定封裝的執行值、執行和疑難排解封裝,以及管理 Integration Services 伺服器作業。

儲存在 SSISDB 目錄中的物件包含專案、封裝、參數、環境和作業記錄。

您可以查詢 SSISDB 資料庫中的檢視表,以檢查儲存在 SSISDB 目錄中的物件、設定及作業資料。

若要管理物件,請呼叫 SSISDB 資料庫中的預存程序或是使用 SSISDB 目錄的 UI。

在許多情況下,可以在此 UI 中或是藉由呼叫預存程序來執行相同的工作。

若要維護 SSISDB 資料庫,建議您套用管理使用者資料庫的標準企業原則。




影片:
認識SSIS 目錄(Catalog)、專案部署(Deploy Projects) - 以 SSIS 2012 為例





參考資料

SSIS 目錄
http://msdn.microsoft.com/zh-tw/library/hh479588.aspx

將專案部署至 Integration Services 伺服器
http://msdn.microsoft.com/zh-tw/library/hh231102.aspx

2013-05-20

認識事件處理常式(Event Handlers) - 以 SSIS 2012 為例


示範版本:SQL Server 2012
開發工具:SSDT - Visual Studio 2012

認識事件處理常式(Event Handlers) - 以 SSIS 2012 為例

在執行階段,可執行檔 (封裝和「Foreach 迴圈」、「For 迴圈」、「時序」,以及工作主機容器) 會引發事件。

例如,當發生錯誤時,會引發 OnError 事件。 您可以建立這些事件的自訂事件處理常式,以擴充封裝功能,並使封裝在執行階段易於管理。

事件處理常式可以執行下列工作:


  • 封裝或工作完成執行後,清除暫存資料儲存。
  • 擷取系統資訊,以在封裝執行之前評估資源可用性。
  • 當查閱參考資料表失敗時,重新整理資料表中的資料。
  • 當發生錯誤或警告時,或工作失敗時,傳送電子郵件訊息。


如果事件不具有事件處理常式,則該事件會被提升到封裝中容器階層上的下一個容器。

如果此容器具有事件處理常式,則會執行事件處理常式,以回應該事件。

若否,則該事件會被提升到容器階層上的下一個容器。




影片:
認識事件處理常式(Event Handlers) - 以 SSIS 2012 為例





參考資料

Integration Services (SSIS) 事件處理常式
http://msdn.microsoft.com/zh-tw/library/ms140223.aspx

2013-05-17

考試心得,Exam 70-467: Designing Business Intelligence Solutions with Microsoft SQL Server 2012


考試科目:
MCSE: Business Intelligence Solutions Expert
Exam 70-467: Designing Business Intelligence Solutions with Microsoft SQL Server 2012

-- 01_MCSE: Business Intelligence Solutions Expert_SQL_Server_2012_認證_考試_教材



請注意:
本文是筆者與朋友整理出來的資料,僅供參考。
Microsoft 可能會隨時變更考試的內容與方式。

從 2014 年 4 月 24 日起,本測驗的問題範圍將包含 SQL Server 2014 的內容。




更新日期:2013/05/15

各位考生在參與考試時,都會簽署一份 NDA(Non-Disclosure Agreement,保密協議),對於考試的內容必須要保密。




Microsoft 建議參考的教材:

20467B: Designing Business Intelligence Solutions with Microsoft SQL Server 2012 (5 Days)
http://www.microsoft.com/learning/en/us/course.aspx?ID=20467B




考試各項主題的配分比重:

Plan business intelligence (BI) infrastructure (15%)

Design BI infrastructure (16%)

Design a reporting solution (24%)

Design BI data models (34%)

Design an ETL solution (11%)





考試題型之分享

考試時間約:19X min。
案例分析:3。
題數約:4X 題。

及格分數:700 分。
滿分:1000 分。

題型:單選、複選、拖曳。



參考資料:

Exam 70-467: Designing Business Intelligence Solutions with Microsoft SQL Server 2012
http://www.microsoft.com/learning/en/us/exam.aspx?ID=70-467

彙整 SQL Server 2012 認證:以 MCSA + MCSE 為例
http://sharedderrick.blogspot.tw/2013/03/sql-server-2012-mcsa-mcse.html

MCSA SQL Server 2012 認證
http://sharedderrick.blogspot.tw/2012/09/mcsa-sql-server-2012.html

MCSE: Business Intelligence Solutions Expert -- SQL Server 2012 認證
http://sharedderrick.blogspot.tw/2013/02/mcse-business-intelligence-solutions.html

考試心得,Exam 70-461 : Querying Microsoft SQL Server 2012
http://sharedderrick.blogspot.tw/2013/01/exam-70-461-querying-microsoft-sql.html

考試心得,Exam 70-462: Administering Microsoft SQL Server 2012 Databases
http://sharedderrick.blogspot.tw/2013/02/exam-70-462-administering-microsoft-sql.html

考試心得,Exam 70-463: Implementing a Data Warehouse with Microsoft SQL Server 2012
http://sharedderrick.blogspot.tw/2013/02/exam-70-463-implementing-data-warehouse.html

考試心得,Exam 70-466 : Implementing Data Models and Reports with Microsoft SQL Server 2012
http://sharedderrick.blogspot.tw/2013/05/exam-70-466-implementing-data-models.html

2013-05-16

認識偵錯(Debugging) - 以 SSIS 2012 為例


示範版本:SQL Server 2012
開發工具:SSDT - Visual Studio 2012

認識偵錯(Debugging) - 以 SSIS 2012 為例

Integration Services 包含在 SQL Server Data Tools (SSDT) 中開發封裝時可以用於疑難排解封裝的功能和工具


  • 疑難排解設計階段驗證問題
  • 疑難排解控制流程
  • 疑難排解資料流程
  • 疑難排解指令碼





影片:
認識偵錯(Debugging) - 以 SSIS 2012 為例





參考資料

疑難排解封裝開發的工具
http://msdn.microsoft.com/zh-tw/library/ms137625.aspx

偵錯控制流程
http://msdn.microsoft.com/zh-tw/library/ms140274.aspx

偵錯指令碼
http://msdn.microsoft.com/zh-tw/library/ms142157.aspx

偵錯資料流程
http://msdn.microsoft.com/zh-tw/library/ms137944.aspx

2013-05-14

考試心得,Exam 70-466 : Implementing Data Models and Reports with Microsoft SQL Server 2012


考試科目:
MCSE: Business Intelligence Solutions Expert
Exam 70-466 : Implementing Data Models and Reports with Microsoft SQL Server 2012

-- 01_MCSE: Business Intelligence Solutions Expert_SQL_Server_2012_認證_考試_教材





請注意:
本文是筆者與朋友整理出來的資料,僅供參考。
Microsoft 可能會隨時變更考試的內容與方式。

從 2014 年 4 月 24 日起,本測驗的問題範圍將包含 SQL Server 2014 的內容。




更新日期:2013/05/14

各位考生在參與考試時,都會簽署一份 NDA(Non-Disclosure Agreement,保密協議),對於考試的內容必須要保密。




Microsoft 建議參考的教材:

10778A: Implementing Data Models and Reports with Microsoft SQL Server 2012 (5 Days)
http://www.microsoft.com/learning/en/us/Course.aspx?ID=10778A&Locale=en-us




考試各項主題的配分比重:

Build an analysis services database (38%)

Manage, maintain, and troubleshoot an SSAS database (18%)

Build a tabular data model (17%)

Build a report with SQL Server Reporting Services (SSRS) (28%)




考試題型、時間等之分享

考試時間約:16X min。
題數約:5X 題。

及格分數:700 分。
滿分:1000 分。

題型:單選、複選、拖曳。



參考資料:

Exam 70-466: Implementing Data Models and Reports with Microsoft SQL Server 2012
http://www.microsoft.com/learning/en/us/exam.aspx?ID=70-466

彙整 SQL Server 2012 認證:以 MCSA + MCSE 為例
http://sharedderrick.blogspot.tw/2013/03/sql-server-2012-mcsa-mcse.html

MCSA SQL Server 2012 認證
http://sharedderrick.blogspot.tw/2012/09/mcsa-sql-server-2012.html

MCSE: Business Intelligence Solutions Expert -- SQL Server 2012 認證
http://sharedderrick.blogspot.tw/2013/02/mcse-business-intelligence-solutions.html

考試心得,Exam 70-461 : Querying Microsoft SQL Server 2012
http://sharedderrick.blogspot.tw/2013/01/exam-70-461-querying-microsoft-sql.html

考試心得,Exam 70-462: Administering Microsoft SQL Server 2012 Databases
http://sharedderrick.blogspot.tw/2013/02/exam-70-462-administering-microsoft-sql.html

考試心得,Exam 70-463: Implementing a Data Warehouse with Microsoft SQL Server 2012
http://sharedderrick.blogspot.tw/2013/02/exam-70-463-implementing-data-warehouse.html

2013-05-13

認識檢查點(checkpoints) - 以 SSIS 2012 為例


示範版本:SQL Server 2012
開發工具:SSDT - Visual Studio 2012

認識檢查點(checkpoints) - 以 SSIS 2012 為例

Integration Services 可以從失敗點重新啟動失敗的封裝,而無需重新執行整個封裝。

如果封裝設定為使用檢查點,則封裝執行的相關資訊會寫入檢查點檔案。

當失敗的封裝重新執行時,檢查點檔案會用於從失敗點重新啟動封裝。

如果封裝順利執行,則會刪除檢查點檔案,然後在下次封裝執行時重新建立檢查點檔案。

在封裝中使用檢查點有下列優點:


  • 避免重複下載和上傳大型檔案。 例如,對每個下載使用 FTP 工作來下載多個大型檔案的封裝,在下載單一檔案失敗後可以重新啟動,然後只下載該單一檔案。



  • 避免重複載入大量資料。 例如,如果封裝針對每個維度使用不同「大量插入」工作向資料倉儲中的維度資料表執行大量插入,則當一個維度資料表的插入失敗時,該封裝會重新啟動,且只重新載入該維度。



  • 避免重複彙總值。 例如,使用資料流程工作執行每個彙總以計算許多彙總 (例如,平均和總和) 的封裝,可以在計算一個彙總失敗之後重新啟動,且只重新計算該彙總。


如果封裝設定為使用檢查點,則 Integration Services 會擷取檢查點檔案中的重新啟動點。

失敗的容器類型和功能的實作 (例如,交易) 會影響檢查點檔案中記錄的重新啟動點。

檢查點檔案中也會擷取變數目前的值。
然而,具有 Object 資料類型之變數的值不會儲存於檢查點檔案中。




影片:
認識檢查點(checkpoints) - 以 SSIS 2012 為例






參考資料

使用檢查點來重新啟動封裝
http://technet.microsoft.com/zh-tw/library/ms140226(v=sql.110).aspx

2013-05-09

認識 Integration Services 交易(transactions) - 以 SSIS 2012 為例


示範版本:SQL Server 2012
開發工具:SSDT - Visual Studio 2012

認識 Integration Services 交易(transactions) - 以 SSIS 2012 為例

封裝使用交易將工作執行的資料庫動作繫結至原子單位,這樣可以保持資料的完整性。

所有 Microsoft Integration Services 容器類型 (封裝、For 迴圈、Foreach 迴圈和時序容器,以及封裝每個工作的工作主機) 皆可設定成使用交易。

 Integration Services 提供三個設定交易的選項,分別是 NotSupported、Supported 及 Required。

(1) Required 指出容器會啟動交易,除非其父容器已經將其啟動。

如果交易已經存在,則容器會聯結交易。

例如,如果未設定為支援交易的封裝包括使用 Required 選項的「時序」容器,則「時序」容器會啟動其自己的交易。

如果封裝設定為使用 Required 選項,則「時序」容器會聯結封裝交易。

(2) Supported 指出容器不啟動交易,但會聯結其父容器啟動的任何交易。

例如,如果具有四個「執行 SQL」工作的封裝啟動交易,且全部四個工作都使用 Supported 選項,則任何工作失敗時,都會回復「執行 SQL」工作執行的資料庫更新。

如果封裝未啟動交易,則四個「執行 SQL」工作不會由交易繫結,且只會回復由失敗之工作執行的資料庫更新。

(3) NotSupported 指出容器不啟動交易或聯結現有的交易。

父容器啟動的交易不會影響已設定為不支援交易的子容器。

例如,如果封裝設定為啟動交易,且封裝中的「For 迴圈」容器使用 NotSupported 選項,則「For 迴圈」中的工作一旦失敗將無法回復。




影片:
認識 Integration Services 交易(transactions) - 以 SSIS 2012 為例




設定封裝來使用交易

將封裝設定成使用交易時,您有兩個選項:

(1) 擁有封裝的單一交易。

在此情況下,封裝本身會「起始」(Initiate) 這筆交易,而封裝中的個別工作和容器會參與這個單一交易。

(2) 在封裝中擁有多個交易。

在此情況下,雖然封裝支援交易,但是封裝中的個別工作和容器實際上會起始交易。





參考資料

Integration Services 交易
http://technet.microsoft.com/zh-tw/library/ms137690.aspx

設定封裝來使用交易
http://technet.microsoft.com/zh-tw/library/ms141144.aspx

設定封裝屬性
http://technet.microsoft.com/zh-tw/library/ms137749.aspx

2013-05-07

考試心得,Exam 70-465 : Designing Database Solutions for Microsoft SQL Server 2012



考試科目:
MCSE: Data Platform
Exam 70-465 : Designing Database Solutions for Microsoft SQL Server 2012

-- 01_MCSE_Data Platform Solutions Expert_SQL_Server_2012_認證_考試_教材




請注意:
本文是筆者與朋友整理出來的資料,僅供參考。
Microsoft 可能會隨時變更考試的內容與方式。

從 2014 年 4 月 24 日起,本測驗的問題範圍將包含 SQL Server 2014 的內容。




更新日期:2013/05/07

各位考生在參與考試時,都會簽署一份 NDA(Non-Disclosure Agreement,保密協議),對於考試的內容必須要保密。



Microsoft 建議參考的教材:

20465B: Designing Database Solutions for Microsoft SQL Server 2012 (5 Days)
http://www.microsoft.com/learning/en/us/course.aspx?ID=20465B



考試各項主題的配分比重:

Design database structure (29%)

Design databases and database objects (32%)

Design database security (15%)

Design a troubleshooting and optimization solution (24%)



考試題型之分享

考試時間約:14x min。
案例分析約:3。
題數約:4x 題。

及格分數:700 分。
滿分:1000 分。

題型:單選、複選、拖曳、案例分析。



參考資料:

Exam 70-465 Designing Database Solutions for Microsoft SQL Server 2012
http://www.microsoft.com/learning/en/us/exam-70-465.aspx

MCSE: Data Platform Solutions Expert -- SQL Server 2012 認證
http://sharedderrick.blogspot.tw/2013/02/mcse-data-platform-solutions-expert-sql.html

20465B: Designing Database Solutions for Microsoft SQL Server 2012 (5 Days)
http://www.microsoft.com/learning/en/us/course.aspx?ID=20465B

考試心得,Exam 70-461 : Querying Microsoft SQL Server 2012
http://sharedderrick.blogspot.tw/2013/01/exam-70-461-querying-microsoft-sql.html

考試心得,Exam 70-462: Administering Microsoft SQL Server 2012 Databases
http://sharedderrick.blogspot.tw/2013/02/exam-70-462-administering-microsoft-sql.html

考試心得,Exam 70-463: Implementing a Data Warehouse with Microsoft SQL Server 2012
http://sharedderrick.blogspot.tw/2013/02/exam-70-463-implementing-data-warehouse.html

考試心得,Exam 70-464: Developing Microsoft SQL Server 2012 Databases
http://sharedderrick.blogspot.tw/2013/02/exam-70-464-developing-microsoft-sql.html

2013-05-02

認識 Foreach 迴圈容器(Foreach Loop) - 以 SSIS 2012 為例


示範版本:SQL Server 2012
開發工具:SSDT - Visual Studio 2012

認識 Foreach 迴圈容器(Foreach Loop)

「Foreach 迴圈」容器定義封裝中重複的控制流程。

迴圈實作與程式設計語言中 Foreach 迴圈的結構類似。

在封裝中,迴圈是使用 Foreach 列舉值啟用。

「Foreach 迴圈」容器會為指定列舉值的每個成員重複控制流程。


SQL Server Integration Services 提供下列列舉值類型:

  • Foreach ADO 列舉值,用來列舉資料表中的資料列。 例如,您可以在 ADO 資料錄集中取得資料列。
  • 資料錄集目的地會將記憶體中的資料儲存到 Object 資料類型之封裝變數中儲存的資料錄集。您通常會使用具有 Foreach ADO 列舉值的 Foreach 迴圈容器來一次處理資料錄集的一個資料列。 針對 Foreach ADO 列舉值指定的變數必須屬於 Object 資料類型。
  • 「Foreach ADO.NET 結構描述資料列集」列舉值,用來列舉有關資料來源的結構描述資訊。 例如,您可以列舉並取得一份 AdventureWorks2012 SQL Server 資料庫中資料表的清單。
  • 「Foreach 檔案」列舉值,用來列舉資料夾中的檔案。 列舉值可往返子資料夾。 例如,您可以讀取 Windows 資料夾及其子資料夾中所有副檔名為 *.log 的檔案。
  • Foreach From Variable 列舉值,用來列舉指定的變數所包含的可列舉物件。 可列舉物件可以是陣列、ADO.NET DataTable、Integration Services 列舉值等等。 例如,您可以列舉包含伺服器名稱之陣列的值。
  • 「Foreach 項目」列舉值,用來列舉集合項目。 例如,您可以列舉「執行處理」工作使用之可執行檔與工作目錄的名稱。
  • Foreach Nodelist 列舉值,用來列舉 XML 路徑語言 (XPath) 運算式的結果集。 例如,此運算式會列舉並取得一份古典時期所有作者的清單:/authors/author[@period='classical']。
  • Foreach SMO 列舉值,用來列舉 SQL Server Management Objects (SMO) 物件。 例如,您可以列舉並取得一份 SQL Server 資料庫中檢視的清單。





影片:
認識 Foreach 迴圈容器(Foreach Loop) - 以 SSIS 2012 為例





參考資料

Foreach 迴圈容器
http://technet.microsoft.com/zh-tw/library/ms141724.aspx