博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Different ways to execute a SQL Server SSIS package
阅读量:5088 次
发布时间:2019-06-13

本文共 3773 字,大约阅读时间需要 12 分钟。

Problem

One of the Junior SQL Server Developers in my company approached me yesterday with a dilemma. He was developing an SSIS Package which imports data from a comma separated text file and he wanted to know the different ways in which one can execute an SSIS Package in SQL Server 2005 and higher versions. At first I started to tell him, but figured it would be smarter to document the options and share the information.

Solution

In SQL Server 2005 and higher versions there are different ways in which one can execute an SSIS package. Let us go through each option one by one.


Execute SSIS Package Using SQL Server Business Intelligence Development Studio (BIDS)

During the development phase of the project developers can test the SSIS package execution by running the package from Business Intelligence Development Studio a.k.a. BIDS.

1. In Solution Explorer, right click the SSIS project folder that contains the package which you want to run and then click properties as shown in the snippet below.

1775_image001.png

2. In the SSIS Property Pages dialog box, select Build option under the Configuration Properties node and in the right side panel, provide the folder location where you want the SSIS package to be deployed within the OutputPath. Click OK to save the changes in the property page.

1775_image002.png

3. In Solution Explorer, right click the SSIS Package and then click Set as Startup Object option as shown in the snippet below.

1775_image003.png

4. Finally to execute the SSIS package, right click the package within Solution Explorer and select Execute Package option from the drop down menu as shown in the snippet below.

1775_image004.png


Execute SSIS Package using DTEXEC.EXE Command Line Utility

Using the DTEXEC.EXE command line utility one can execute an SSIS package that is stored in a File System, SQL Server or an SSIS Package Store. The syntax to execute a SSIS package which is stored in a File System is shown below.

DTEXEC.EXE /F "C:\BulkInsert\BulkInsertTask.dtsx"

1775_image005.png


Execute SSIS Package using DTEXECUI.EXE Utility

Using the Execute Package Utility (DTEXECUI.EXE) graphical interface one can execute an SSIS package that is stored in a File System, SQL Server or an SSIS Package Store.

1. In command line, type DTEXECUI.EXE which will open up Execute Package Utility as shown in the snippet below. Within the Execute Package Utility, click on the General tab and then choose the Package source as “File System”, next you need to provide the path of the SSIS package under Package option and finally click the Execute button to execute the SSIS package.

1775_image006.png

The Execute Package Utility is also used when you execute the SSIS package from the Integration Services node in SQL Server Management Studio.

1775_image007.png


Execute SSIS Package using SQL Server Agent Job

Using a SQL Server Agent Job one can execute an SSIS package that is stored in a File System, SQL Server or an SSIS Package Store. This can be done by creating a new SQL Server Agent Job and then by adding a new step with details as mentioned in the snippet below.

1. In New Job Step dialog box provide an appropriate Step name, then choose “SQL Server Integration Services Package” option as Type from the drop down list, and then choose “SQL Server Agent Service Account” as Run as value.

2. In the General tab choose the File System as Package Source and provide the location of the SSIS package under Package option.

1775_image008.png

3. Click OK to save the job step and click OK once again to save the SQL Server Agent Job

4. That’s it now you can execute the SQL Server Agent Job which will internally execute the SSIS package.


Note: You can also execute the SSIS package using the Export and Import Wizard once it is created using the wizard.

Next Steps

  • SQL Server Integration Services Package Scheduling with

转载于:https://www.cnblogs.com/aot/archive/2013/02/01/2889345.html

你可能感兴趣的文章
IOS-图片操作集合
查看>>
IO—》Properties类&序列化流与反序列化流
查看>>
测试计划
查看>>
Mysql与Oracle 的对比
查看>>
jquery实现限制textarea输入字数
查看>>
Codeforces 719B Anatoly and Cockroaches
查看>>
jenkins常用插件汇总
查看>>
c# 泛型+反射
查看>>
第九章 前后查找
查看>>
Python学习资料
查看>>
jQuery 自定义函数
查看>>
jquery datagrid 后台获取datatable处理成正确的json字符串
查看>>
ActiveMQ与spring整合
查看>>
web服务器
查看>>
第一阶段冲刺06
查看>>
EOS生产区块:解析插件producer_plugin
查看>>
JS取得绝对路径
查看>>
排球积分程序(三)——模型类的设计
查看>>
HDU 4635 Strongly connected
查看>>
格式化输出数字和时间
查看>>