在 SQL Server Data Tools for Visual Studio 2012 中设置 SSIS 项模板 [英] Setting up SSIS Item Template in SQL Server Data Tools for Visual Studio 2012

查看:38
本文介绍了在 SQL Server Data Tools for Visual Studio 2012 中设置 SSIS 项模板的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个 dtsx 文件用作 SSIS 包模板.我希望能够通过单击解决方案资源管理器中打开的项目并选择添加 -> 新项目

I have created a dtsx file to use as an SSIS package template. I want to be able to use the file as a template by clicking on an open Project in Solution Explorer and selecting Add -> New Item

我的问题是:

  • 如何将其保存为模板文件?它目前是一个 .dtsx 文件.
  • 我必须将文件放在哪里,以便将其放入添加新项目"对话框的选项列表中?我见过许多冲突的路径,但没有一个是专门针对 Visual Studio 2012 的 SQL Server Data Tools.

我搜索了有关如何执行此操作的说明,但现在找到了与 SQL Server Data Tools for Visual Studio 2012 一起使用的明确说明.我发现的帖子相互矛盾,并且没有明确说明如何将 dtsx 文件转换为模板文件.链接此处是信息冲突的示例;它针对 2010 年发布,示例针对 2005 年.我也尝试使用 导出模板向导,但此功能在 VS2012 的 SSDT 中似乎已消失.

I have searched for instructions on how to do this but have now found clear instructions for use with SQL Server Data Tools for Visual Studio 2012. Posts I have found are conflicting and don't clearly explain how convert the dtsx file into a template file. The link here is an example of conflicting info; its posted for vs 2010 and examples are for vs 2005. I have also tried to use the Export Template Wizard but this feature seems to have gone away in SSDT for VS2012.

推荐答案

您需要将 dtsx 包复制到以下位置并重新启动 VS2012 的 SSDT.请注意,VS 安装位置在您的机器中可能有所不同.首先选择要导出为模板的包,然后选择文件->另存为..并保存到

You need to copy the dtsx package to following location and restart the SSDT for VS2012. Note that the VS installation location may be different in your machine. First select the package that you want to export as a template and then Select File->Save As.. and save it to

C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\PrivateAssemblies\ProjectItems\DataTransformationProject\DataTransformationItems

例如C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\PrivateAssemblies\ProjectItems\DataTransformationProject\DataTransformationItems\MyTemplatePackage.dtsx

E.g. C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\PrivateAssemblies\ProjectItems\DataTransformationProject\DataTransformationItems\MyTemplatePackage.dtsx

引用:我也尝试过使用导出模板向导,但此功能似乎在 VS2012 的 SSDT 中消失了

VS2012 的 SSDT 没有导出模板向导.它仅适用于 VS2012.

SSDT for VS2012 does not have an export template wizard. It's only avaible for VS2012.

这篇关于在 SQL Server Data Tools for Visual Studio 2012 中设置 SSIS 项模板的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆