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

推荐订阅源

钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Apple Machine Learning Research
Apple Machine Learning Research
T
Tailwind CSS Blog
月光博客
月光博客
爱范儿
爱范儿
有赞技术团队
有赞技术团队
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
aimingoo的专栏
aimingoo的专栏
GbyAI
GbyAI
腾讯CDC
The Cloudflare Blog
人人都是产品经理
人人都是产品经理
MongoDB | Blog
MongoDB | Blog
Microsoft Azure Blog
Microsoft Azure Blog
IT之家
IT之家
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
云风的 BLOG
云风的 BLOG
U
Unit 42
博客园 - 三生石上(FineUI控件)
A
About on SuperTechFans
N
Netflix TechBlog - Medium
Google DeepMind News
Google DeepMind News
雷峰网
雷峰网
L
LangChain Blog

博客园 - 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。