简体   繁体   English

导出 .dtsx 文件并添加到 Visual Studio 中的新项目

[英]Export a .dtsx file and add to a new project in visual studio

I have a .dtsx file which I have located within MSMS.我有一个 .dtsx 文件,位于 MSMS 中。 I want to export it and then add as a new package in visual studio.我想导出它,然后在 Visual Studio 中添加为一个新包。 Once I export agencySales, it becomes an .ispac file that cannot then opened or added to my solution.一旦我导出agencySales,它就会变成一个.ispac 文件,然后无法打开或添加到我的解决方案中。

在此处输入图片说明

I cannot quite remember how to do this - I believe we may have to download the whole project in MSMS but cannot remember exactly.我不太记得如何做到这一点 - 我相信我们可能必须在 MSMS 中下载整个项目,但记不清了。

I'm very new to SSIS so please don't hate.我对 SSIS 很陌生,所以请不要讨厌。 Cheers干杯

在此处输入图片说明

在此处输入图片说明

I'm guessing you're going to have a "bad time" with this project.我猜你会在这个项目中度过一段“糟糕的时光”。 Prior to the 2016 release, backwards compatibility wasn't a thing with SSIS projects.此前2016年版本,向后兼容性不符合SSIS项目的事情 Even now, it's still hit or miss because of custom components, version dependencies, etc.即使是现在,由于自定义组件、版本依赖等原因,它仍然会受到影响。

The differences in 2012-2019 packages is incremental whereas the jump between 2008 and 2012 can be the width of the ocean. 2012-2019 年套餐的差异是递增的,而 2008 年和 2012 年之间的跳跃可能是海洋的宽度。 2012 introduced the Project Deployment Model which your screenshot indicates your source uses that development and deployment model. 2012 年引入了项目部署模型,您的屏幕截图表明您的源使用该开发和部署模型。 Which was a godsend as we could package up project parameters, connection managers, parameters etc into a single deployable quantum called the .ispac Those concepts did not exist in the 2008 release so going backwards is generally not doable as you might have concepts in the new that don't exist in the old (as well as tasks like Expression Task or just the binaries of the Script Task/Components that won't move well)这是天赐之物,因为我们可以将项目参数、连接管理器、参数等打包到一个名为 .ispac 的可部署量子中。这些概念在 2008 年版本中不存在,所以倒退通常是不可行的,因为您可能在新版本中有概念旧版本中不存在的(以及诸如 Expression Task 之类的任务,或者只是无法正常移动的脚本任务/组件的二进制文件)

Now that I've laid out all the pain points you're going to experience, let's talk about getting that package out of the SSISDB.现在我已经列出了您将要经历的所有痛点,让我们来谈谈从 SSISDB 中获取该包的问题。 This is a multi-hop problem.这是一个多跳问题。 It sounds like you don't have the original project AgencySales that created it.听起来您没有创建它的原始项目AgencySales No problem - open a current version of Visual Studio that has SQL Server Data Tools installed and Add a New Project and under the Integration Services specific section (not the default Business Intelligence section), choose Integration Services Import Project Wizard.没问题 - 打开安装了 SQL Server Data Tools 的当前版本的 Visual Studio 并添加新项目,然后在 Integration Services 特定部分(不是默认的商业智能部分)下,选择 Integration Services 导入项目向导。 This will pull the entire project from the SSISDB and turn it into a complete SSIS project.这将从 SSISDB 中提取整个项目并将其转换为一个完整的 SSIS 项目。

Select Integration Services Catalog and fill out the server and folder/project path AgencySales After you click through everything, you have a complete version of your project.选择 Integration Services Catalog 并填写服务器和文件夹/项目路径AgencySales单击所有内容后,您就拥有了项目的完整版本。

Now comes the hard part - backporting work.现在是困难的部分 - 向后移植工作。 If it's a trivial package - one data flow task in the control flow and that being a Source to Sink type of data processing, you'll be better off just rewriting for 2008.如果它是一个微不足道的包 - 控制流中的一个数据流任务并且是数据处理的 Source to Sink 类型,那么您最好只为 2008 重写。

If it's something more complex than that, then you're going to need a lot more work and maybe it's better to continue hunting down all the nooks and crannies the previous developer took.如果事情比这更复杂,那么您将需要做更多的工作,也许最好继续寻找前任开发人员采用的所有角落和缝隙。 I would not use that approach and instead, I'd use Biml Biml is a meta language that describes business intelligence objects - in this case, an SSIS package.我不会使用这种方法,而是使用Biml Biml 是一种描述商业智能对象的元语言 - 在这种情况下,是一个 SSIS 包。 Install the free add-on BimlExpress to your existing Visual Studio instance.将免费附加组件BimlExpress安装到您现有的 Visual Studio 实例。 Now you can right click on the package and select "Convert SSIS packages to Biml" When that completes, a BimlScript.biml file will be in the Miscellaneous folder.现在您可以右键单击该包并选择“将 SSIS 包转换为 Biml” 完成后,一个 BimlScript.biml 文件将位于 Miscellaneous 文件夹中。

Biml is Biml is Biml. Biml 是 Biml 是 Biml。 It describes the SSIS elements as they are -> this is an "Execute SQL Task."它按原样描述了 SSIS 元素 -> 这是一个“执行 SQL 任务”。 How it's physically implemented in an SSIS package is quite version dependent so the Biml Engine takes care of translating ExecuteSQL into version specific package XML.它在 SSIS 包中的物理实现方式非常依赖于版本,因此 Biml 引擎负责将ExecuteSQL转换为特定于版本的包 XML。 Very cool concept that I've been working with for 7?我一直在使用 7 的非常酷的概念? years now.几年了。

Now, you're in a bit of a pickle as I don't remember whether Visual Studio 2010 was the bridge solution for 2012 packages or whether it was just the spruced up interface for 2008. If it targeted 2008, then grab the BimlExpress version that specifies "Download for Visual Studio 2010" Install that and in your "Integration Services Project 2" you should have a right click menu available at the Project level that says "Add new Biml File".现在,您有点不高兴了,因为我不记得 Visual Studio 2010 是 2012 年软件包的桥接解决方案,还是只是 2008 年精心打造的界面。如果它针对 2008 年,那么获取 BimlExpress 版本指定“Download for Visual Studio 2010”安装它,在你的“Integration Services Project 2”中,你应该在项目级别有一个右键单击菜单,上面写着“添加新的 Biml 文件”。 Do that.去做。 In the empty BimlScript.biml that opens up, copy the contents from the VS2012+ version of BimlScript.biml into the empty file.在打开的空的 BimlScript.biml 中,将 VS2012+ 版本的 BimlScript.biml 的内容复制到空文件中。 Save.节省。 Right click on BimlScript.biml and choose Generate SSIS Package.右键单击 BimlScript.biml 并选择生成 SSIS 包。

The paid-for product, BimlStudio greatly simplifies this rigmarole as you import the project into it and simply change the selector to emit 2008/R2 specific packages.付费产品BimlStudio在您将项目导入其中时极大地简化了这种繁琐,只需更改选择器即可发出 2008/R2 特定的包。

暂无
暂无

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

相关问题 在 Visual Studio 2017 中打开 dtsx 文件时出现问题 - Problems opening a dtsx file in Visual Studio 2017 如何在 Visual Studio 2019 中打开 DTSX 文件? - How do I open a DTSX file in Visual Studio 2019? 调用目标抛出异常 - 在 Visual Studio 中执行 .dtsx 文件时 - Exception has been thrown by the target of an invocation - While executing a .dtsx file in Visual studio 如何将新架构添加到现有的Visual Studio数据库项目? - How to add new schema to existing Visual Studio Database Project? 在没有SSIS项目的情况下编辑.dtsx文件 - Edit .dtsx file without the SSIS project 我需要在Visual Studio 2019 Express / Community中安装哪些其他依赖项才能在GUI中打开dtsx SISS文件? - What other dependencies do I need to install in Visual Studio 2019 Express / Community to open a dtsx SISS file in the GUI? DTSX程序包在Visual Studio中运行,但从数据库作业中调用时不运行 - DTSX package runs in Visual Studio but not when called from a Database Job 为什么在 SSMS 18 中其他项目和文件类型没有出现在新文件和新项目按钮中,但 Visual Studio 2019 有? - How come in SSMS 18 the other project and file types don't appear in the New file and new project button but Visual studio 2019 has it? 无法检入TFS中添加的新SSIS .dtsx文件 - New SSIS .dtsx file added in the TFS is can not be checked in 如何将新的连接提供程序添加到Visual Studio? - How to add new connection provider to Visual Studio?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM