简体   繁体   English

SSIS - 执行任务运行迅速,但执行包终生有效

[英]SSIS - Execute task works quickly but execute package works as lifelong

I installed the most recent version of visual studio and SSDT (so all settings are default) and I created a simple package which works completely fine in less than two seconds when I execute it by right click and then press "execute task".我安装了最新版本的 Visual Studio 和 SSDT(所以所有设置都是默认值),我创建了一个简单的包,当我通过右键单击执行它然后按“执行任务”时,它可以在不到两秒钟的时间内完全正常工作。

However when I right-click on package and then press "execute package" it takes more than three minutes and in progress no error.但是,当我右键单击包然后按“执行包”时,它需要三分钟以上的时间并且没有错误。

How can I resolve this problem?我该如何解决这个问题? i also cannot connect my SSIS when i open it "Run As Administrator".当我打开它“以管理员身份运行”时,我也无法连接我的 SSIS。 Both SSMS and SQL Server are 17 and on the same machine. SSMS 和 SQL Server 都是 17 并且在同一台机器上。

SSIS usually takes a bit longer than 1 sec to run a package as it has to do a full validation phase first. SSIS 通常需要比 1 秒多一点的时间来运行包,因为它必须首先进行完整的验证阶段。

Also -You might have multiple tasks in your package (not necessarily connected)... When you "execute package" - all tasks are ran but when you "execute task" then only the selected task is being ran.此外-您的包中可能有多个任务(不一定连接)...当您“执行包”时-所有任务都会运行,但是当您“执行任务”时,只会运行选定的任务。

I would not worry too much about this warning message.我不会太担心这个警告信息。 It is not strictly related to your issue as I have seen it lots of times and usually just filter it out as it only appears via VS.它与您的问题并不严格相关,因为我已经多次看到它,并且通常只是将其过滤掉,因为它仅通过 VS 出现。 You can demonstrate this by opening up a cmd shell and running the package via DTEXEC.exe.您可以通过打开 cmd shell 并通过 DTEXEC.exe 运行包来演示这一点。 EG:例如:

C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional>dtexec.exe
Microsoft (R) SQL Server Execute Package Utility
Version 12.0.4100.1 for 64-bit
Copyright (C) Microsoft Corporation. All rights reserved.

pass in your saved ssis package and you will see the output of the package execution.传入您保存的 ssis 包,您将看到包执行的输出。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM