Refresh destination schema metadata in Integration Services

跟風遠走 提交于 2019-12-04 02:42:52
Herbert

What about using the Advanced Editor and pressing the Refresh button on the left side below?

I found a way to fix it but that was a bit tricky.

Even thought I was completely removing any references of the table from my packages, I was always getting the old metadata.

I still don't have a clear fix but here is what I did to fix it:

  • Removed any reference to concerned source and destination tables
  • Deleted obj and bin folder from the project folder
  • Saved, closed and then reopened the project
  • Created new data flow from scratch and updated metadata was finally there

Don't know where those informations were cached but I suspect that the obj folder keeps a cached copy of your packages or that Visual Studio keeps metadata in memory which is freed when you close it. Anyway, following these steps should fix it.

Following my previous auto-answer, I finally found what was preventing the metadata from being refreshed.

When I originally modified my database, I actually executed another script that was making a DROP on the table and then a CREATE TABLE to recreate the table from scratch. There, SSIS was never able to detect changes and I had to do all the things in my other answer.

Later today I had to make some minor modification and this time I opted for an ALTER TABLE. Magically, this time SSIS detected all the changes even notifying me to refresh columns from the advanced editor, which worked fine.

So basically all these issues has been caused by my poor knowledge about DBA and its best practices.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!