SSIS 学习

主要用于数据传输设计的工具和平台,可以可视化的设计数据传输路径,以及丰富的流程控制设计,比如从数据库取特定数据生产文本文件传输到FTP上...

通过丰富的流程控制,我可以通过拖拉运用不同的task实现不同的功能,比如Script task , 可以在里面抒写脚本,一般是VB和C#,比如Execute SQL Task
,可以用来运行SQL脚本,SQL脚本内容自己随意来写,FTP Task可以用来设计和FTP相关的任务。

我们可以把设计好的流程直接在BIDS中Debug运行,BIDS通过可视化的颜色来显示运行的状态,即当前运行点,设计好以后,我们可以build成一个安装文件,我们可以copy安装文件到目的电脑上安装,安装完以后就可以运行了,但一般我们都把它配置在Job中来根据计划运行。

其实还有很多更复杂的功能,

比如可以设置包变量,这个变量在整个包运行过程中有效,那就可以在不同的step间传递信息。
比如配置文件,一种情况下是我们设计的时候使用的配置,一般都是在开发环境中设置,但我们也可以生产配置文件,可以把包变量,数据库连接信息...配置在配置文件中,这样部署之后可以通过修改配置文件来配置。

==[What is SSIS]: Microsoft SQL Server 2005 Integration Services
It is a platform for building enterprise-level data integration and data transformations solutions.
So you can set the control Flow logic for the business needs. Simply, you can define a data flow: for example, read the data from a txt file and save it into database table.

[How to deploy and run it]
Right click the project-->properties-->set CreateDeploymentUtility to true, set DeploymentOutputPath
Right click the project-->buid (you will find the deployed files in DeploymentOutputPath)
In DeploymentOutputPath, double click file "XXXProject.SSISDeploymentManifest" to install the SSIS.
Then you can run dtsx directly or configure it to run in SQL Server Job by configuring schedule.

[User Case]
1. Copy a local file to FTP: FTP Task
2. Import the data in txt file into database table.: Data Flow Task
3. 执行SQL命令: Execute SQL Task
4. Script Task
5. For Loop Container

问题解决:

1. SQL Server 2005 BIDS 不能打开Script Task的脚步编辑器: 安装SQL Server的SP2

2. 在Job中如果运行出错,检查Run As: SQL Server Agent Service Account, 使用的SQL Server Agent Service 运行的Account, 直接去系统的服务中就可以查看运行的账户,可以配置Local System Account来运行

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值