- SQL Server 2017 Integration Services Cookbook
- Christian Cote Matija Lah Dejan Sarka
- 367字
- 2021-07-02 20:41:29
How to do it...
- We'll first create the SSIS Catalog in SSMS. Open SSMS and connect to your local instance:

- Look for the Integration Services Catalogs folder in object explorer.
- Right-click on it and select the option Create Catalog....

- If the Create Catalog... option is not available (disabled - greyed out), it means that a catalog has already been created. Even if the folder is called Integration Services Catalogs - plural, only one Integration Services Catalog can be created by the SQL Server instance. The Create Catalog dialog box appears:

- SQL Server CLR must be enabled to be able to create a catalog. It's also a good practice to check Enable automatic execution of Integration Services stored procedures at SQL Server startup. This creates a job that cleans up the SSIS Calalog tables. To enable the job, the SQL Server Agent must be enabled and started. To enable the SQL Server Agent, right-click on SQL Server Agent and select Start from the contextual menu that appears.

- A confirmation screen appears to confirm that we want to start the Agent:

- Once the Agent has successfully started, we can see in the Jobs folder a job called SSIS Server Maintenance Job:

- Double-clicking on it, you can see that this job is running every day to clean up the SSIS Catalog based on the retention window:

- By default, the retention window is set to 365 days. We don't have to change it for the recipes we're going to implement from this book. But you should adjust the retention window setting to ensure that the catalog doesn't get filled with too many execution logs.
- One of the benefits of this job is to execute clean up log entries in the catalog. As all executions are logged (we'll talk about logging in a later section), the catalog tables can fill up fast.
- To manage the retention window, in SSMS object explorer right-click on the catalog (SSISDB) and select Properties from the drop-down menu. The following window appears:

- You can now modify the Retention Period (days) property, as shown in the preceding screenshot. Notice that you also have the ability to stop the clean logs schedule by setting the Clean Logs Periodically to False.
推薦閱讀
- Mastering Concurrency Programming with Java 8
- 一步一步學(xué)Spring Boot 2:微服務(wù)項(xiàng)目實(shí)戰(zhàn)
- Vue.js 3.x從入門到精通(視頻教學(xué)版)
- Mastering PHP Design Patterns
- 小程序,巧運(yùn)營:微信小程序運(yùn)營招式大全
- Data Analysis with Stata
- SAP BusinessObjects Dashboards 4.1 Cookbook
- 學(xué)習(xí)OpenCV 4:基于Python的算法實(shí)戰(zhàn)
- Fast Data Processing with Spark(Second Edition)
- 深入理解BootLoader
- RESTful Web Clients:基于超媒體的可復(fù)用客戶端
- ROS機(jī)器人編程實(shí)戰(zhàn)
- Java設(shè)計(jì)模式深入研究
- SQL Server on Linux
- Oracle SOA Suite 12c Administrator's Guide