惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Y
Y Combinator Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
博客园 - 司徒正美
Blog — PlanetScale
Blog — PlanetScale
博客园 - 聂微东
月光博客
月光博客
量子位
大猫的无限游戏
大猫的无限游戏
Stack Overflow Blog
Stack Overflow Blog
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
The Cloudflare Blog
P
Proofpoint News Feed
B
Blog RSS Feed
美团技术团队
腾讯CDC
C
Check Point Blog
Engineering at Meta
Engineering at Meta
F
Fortinet All Blogs
N
Netflix TechBlog - Medium
Recent Announcements
Recent Announcements
J
Java Code Geeks
S
SegmentFault 最新的问题
WordPress大学
WordPress大学
宝玉的分享
宝玉的分享

博客园 - David

TFS Server 不存在时,如何去除对应Server的Workspaces 更改已有程序集中的资源 记录:如何删除TFS Project SQL – TRUNCATE vs DELETE SQL – Character data (varchar) 又好久没写东西了! Powershell: Send mail with attachment 【Update】 - David 随感 Windows Workflow Foundation 了解 通过代码将Word 2007 template (dotx)文档转换Word 2007 (docx)文档(续) 通过代码将Word 2007 template (dotx)文档转换Word 2007 (docx)文档 创建Word2007文档而无需安装Word2007 Visual WebGUI - 如何处理MessageBox的DialogResult值 Visual WebGUI - 如何将Dialog的结果传回主窗体 Visual WebGUI Report - 导出到PDF Visual WebGUI 在 Vista IIS 7 中的配置 项目管理片语 - Schedule 在IIS 7设置ASP.NET 1.1(在Vista中使用VS2003) 给儿子的歌!
SSIS: Execute SSIS Package in command prompt 【Update】
David · 2009-06-30 · via 博客园 - David

COMMAND: "C:\Program Files (x86)\Microsoft SQL Server\100\DTS\Binn\dtexec.exe" /De 1234 /F D:\sample.dtsx /L DTS.LogProviderTextFile;samplelog.log /Set \package.Connections[samplelog.log].Properties[ConnectionString];D:\samplelog.log /Set \package.Connections[DestinationConnectionADONET].Properties[ConnectionString];"\"Data Source=.\SQL2K8;Initial Catalog=Northwind;Provider=SQLOLEDB.1;Integrated Security=SSPI;\""

"C:\Program Files (x86)\Microsoft SQL Server\100\DTS\Binn\dtexec.exe":这是32bit的DTExec Utility。如果要用64bit的话,就将路径中的(x86)删了!32bit不会和64bit一起安装的哦。除非你把BI Studio以及Management Tools都选了,那么就会32bit和64bit都有。

参数:

1、/De[crypt] password :[]中的字是可选的;password 为 1234。如果你的SSIS设置了ProtectionLevel为EncryptSensitiveWithPassword或EncryptAllWithPassword的话,那么就会这个password。

2、/F[ile] filespec :[]中的字是可选的;filespec 为 D:\sample.dtsx。

3、/L[ogger] classid_orprogid;configstring :[]中的字是可选的;classid_orprogid 为 DTS.LogProviderTextFile;configstring 为 samplelog.log。中间的‘;’是必须的哦。

4、/Set propertyPath;value propertyPath 为 \package.Connections[samplelog.log].Properties[ConnectionString];value 为 D:\samplelog.log。中间的‘;’是必须的哦。加多了一个Connection的Set Property。