简体   繁体   中英

SSIS package won't save SQL command

I am updating an SSIS package and modifying the SQL command of a lookup transformation, but have found that the command won't save. I will update the command, close the editor, save the package, close and re-open Visual Studio (Professional 2015), but my changes are not preserved. There is a config file (.dtsConfig) for the package in which I have made the changes as well, but still no dice. Changes to the project, such as variables and connection managers and their use within the package (save for the SQL command) are, however, maintained.

What reasons might there be for why this package won't let me save updated SQL commands?

我仍然不确定为什么会发生这种情况,但是在高级编辑器中打开查找并修改SqlCommand和SqlCommandParam字段可以保留我的更改。

In addition to saving the package, be certain to also run a build. This recreates the .dtsx package file with the new changes. Your question did not mention having done this very important step.

That isn't answering the question, but provides you a guideline on how to troubleshoot the problem:

After the change do a right click on a package and view a code in XML. Look for your "SQL statement" is it there?

Copy/paste XML into separate file, save and close the solution. Reopen it and see if code has changed. Compare the changes.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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