一个有趣的问题出现在最近的一次关于测试类SSIS在Visual Studio:“我们怎样才能捕获进程选项卡中的信息后一个调试会话吗?”。我的第一反应是实现包日志但答案在别处……登录一个包可以通过选择实现日志从SSIS菜单。在这里您可以指定各种日志提供者包括文本、SQL表格,XML, Windows事件日志等。然后,利用细节选项卡中,您可以指定哪些事件将被记录。高级视图允许您决定什么时捕获的事件发生,如计算机名称、用户名、任务名称等。这种类型的日志记录的好处是,它会发生无论你如何或在哪里执行方案。但不是一模一样的信息选项卡在Visual Studio的进展。右击在进程选项卡只允许我们单独复制每个语句。这是对于一个人的错误,但不要捕捉整个包的进展。并试图强调所有的文本和复制到剪贴板不会奏效。答案来自DTEXEC命令行。 There is a switch called /Reporting or /Rep for short. Using the P option will capture the Progress to the console. Using the pipe character ">" will allow you to pipe to a text file. For example: DTEXEC /F ssisexample.dtsx /Rep P > progress.txt Then open progress.txt in notepad to see the results exactly as displayed in Visual Studio. Who knew? Books Online, that's who. http://msdn.microsoft.com/en-us/library/ms162810.aspx cheers Brian
如何捕获你的进步在SSIS…
SQL Server
版权©2009 IDG通信公司。Raybet2