简体   繁体   English

脚本任务更改未保存在 SSIS

[英]Script task changes are not saved in SSIS

I am working on a SSIS package in Visual Studio 2019 to dynamically load a flat file into SQL Server using a C# script task (Visual C# 2017). I am working on a SSIS package in Visual Studio 2019 to dynamically load a flat file into SQL Server using a C# script task (Visual C# 2017).

When I edit the script task and make some changes, save and build, everything looks fine.当我编辑脚本任务并进行一些更改、保存和构建时,一切看起来都很好。 I did set a breakpoint in the script task, saved the SSIS package, built it and ran the solution.我确实在脚本任务中设置了一个断点,保存了 SSIS package,构建它并运行解决方案。

While running the SSIS job, the debugger takes control and opens up the script task.在运行 SSIS 作业时,调试器会控制并打开脚本任务。 However, I do not see my new changes in the debug mode.但是,我在调试模式下看不到我的新更改。 When I stopped the package and re-open the script task, my changes are lost.当我停止 package 并重新打开脚本任务时,我的更改丢失了。

Can someone help?有人可以帮忙吗?

Depending on how you are exiting your VSTA instance, this may be causing SSIS to not save your changes correctly.根据您退出 VSTA 实例的方式,这可能会导致 SSIS 无法正确保存您的更改。 If you simply exit (x-out of the window) the VSTA window, even after saving, SSIS will not retain your changes.如果您只是退出(退出窗口)VSTA window,即使在保存之后,SSIS 也不会保留您的更改。 You must exit the file after saving it by clicking the "OK" button in the Script Task Editor window.保存文件后,您必须通过单击脚本任务编辑器 window 中的“确定”按钮退出文件。

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

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