如何在 Visual Studio 2019 中打开 DTSX 文件?
How do I open a DTSX file in Visual Studio 2019?
如何使用 Visual Studio 2019 打开 DTSX 文件进行编辑?
我已经使用 SQL Server Management Studio 中的导入数据向导生成了一个 DTSX 文件,使用 . The 解释了如何编辑 .dtsx 文件,但它似乎没有是正确的了。我正在使用 Visual Studio 2019。答案说我需要使用此 link 下载 SQL Server Data Tools for Visual Studio:
但是在那link处,它说:
Changes in SSDT for Visual Studio 2019
With Visual Studio 2019, the required functionality to enable Analysis Services,
Integration Services, and Reporting Services projects has moved into the
respective Visual Studio extensions. The core SSDT functionality to
create Database Projects has remained integral to Visual Studio (you
need to select the Data storage, and processing workload during
install). There's no more standalone SSDT installation required.
If you already have a license to Visual Studio 2019:
- For SQL Database Projects, install the Data storage and Processing
workload for Visual Studio
- For Analysis Services, Integration Services
or Reporting Services projects, install the appropriate extension(s)
from the marketplace
我认为我需要集成服务,但市场上没有 link 相应的扩展。通过各种谷歌搜索路径 1,一切都指向 SQL Server Integration Services Projects 扩展。我已经安装了这个扩展2,但我仍然无法打开 DSTX 文件。
以下是我尝试执行此操作的方法:在 Visual Studio 中,我将转到“文件”|“打开项目”。然后我浏览到其中包含 .dtsx 文件的文件夹,将筛选器更改为 *.*
(因为 .dtsx 不在支持的项目扩展名列表中),选择该文件,然后单击“打开”。我收到这个消息框:
那么,我的问题又来了:如何打开 Visual Studio 2019 年的 DSTX 文件?
有关详细版本和已安装的扩展,请参阅下文。
1例如见Lesson 1-1: Create a new Integration Services project, where they create a DSTX project. The lesson's Prerequistes instructs you to install the SQL Server Data Tools from Download SQL Server Data Tools,与上面link相同
2 我注意到扩展的 3.1 版目前被标记为预览版,该版本的发行说明包括文本,"This is the second preview release. We do not recommend using it for production." 但我没有看到我可以从市场网站或 Visual Studio 下载此扩展的早期版本。如果我能找到它,我会尝试最新的生产版本,但它似乎不可用。
我还看到有两条关于此预览版问题的说明。两者似乎都与我的情况无关。第一个是 VS 16.2 中的回归,他们建议升级到 16.2.3。我已经在 16.2.4 上了。第二个是扩展 and/or Visual Studio Tools for Applications 2019 可能会在 VS 实例升级期间被删除的问题。自从安装此扩展后,我没有对 VS 进行任何升级。
已安装的软件
- Visual Studio 2019,版本 16.2.4
- SQL Server Management Studio,版本 17.9.1。
在 Visual Studio 中,当我转到“帮助|关于 Microsoft Visual Studio”时,我还在“已安装的产品”中看到以下列出的内容(此列表不完整;它仅包括看起来相关的项目):
- SQL 服务器数据工具 16.0.61906.28070
- SQL 服务器集成服务 15.0.1301.433
在 Visual Studio 中,当我转到扩展|管理扩展时,我在已安装的扩展列表中看到 SQL 服务器集成服务项目。
错误消息表明您正在尝试打开 project/solution。 DTSX 是一个包。
您首先需要打开.sln 或.proj 文件。在项目(解决方案资源管理器)中,您可以打开 dtsx.不要尝试从源代码管理资源管理器打开 dtsx 文件,因为它不会与项目引用一起打开。
总而言之,打开 solution/project,然后从解决方案资源管理器中打开包。
您必须从 VS 扩展安装 SSMS、SSAS>(在 VS 菜单中,单击 "Extensions",然后单击“管理扩展
编辑和创建集成服务包 (.dtsx
) 是安装 SQL Server Integration Services Projects 所必需的。
安装后 Visual Studio 2019 可以独立(打开文件)或在 Integration Services Project 中创建或编辑集成包。即使 SSMS 失败并显示消息,也可以在 SQL 服务器上打开包:
Connecting to the Integration Services service on the computer "xxxx" failed with the following error: "Access is denied."
如何使用 Visual Studio 2019 打开 DTSX 文件进行编辑?
我已经使用 SQL Server Management Studio 中的导入数据向导生成了一个 DTSX 文件,使用
但是在那link处,它说:
Changes in SSDT for Visual Studio 2019
With Visual Studio 2019, the required functionality to enable Analysis Services, Integration Services, and Reporting Services projects has moved into the respective Visual Studio extensions. The core SSDT functionality to create Database Projects has remained integral to Visual Studio (you need to select the Data storage, and processing workload during install). There's no more standalone SSDT installation required.
If you already have a license to Visual Studio 2019:
- For SQL Database Projects, install the Data storage and Processing workload for Visual Studio
- For Analysis Services, Integration Services or Reporting Services projects, install the appropriate extension(s) from the marketplace
我认为我需要集成服务,但市场上没有 link 相应的扩展。通过各种谷歌搜索路径 1,一切都指向 SQL Server Integration Services Projects 扩展。我已经安装了这个扩展2,但我仍然无法打开 DSTX 文件。
以下是我尝试执行此操作的方法:在 Visual Studio 中,我将转到“文件”|“打开项目”。然后我浏览到其中包含 .dtsx 文件的文件夹,将筛选器更改为 *.*
(因为 .dtsx 不在支持的项目扩展名列表中),选择该文件,然后单击“打开”。我收到这个消息框:
那么,我的问题又来了:如何打开 Visual Studio 2019 年的 DSTX 文件?
有关详细版本和已安装的扩展,请参阅下文。
1例如见Lesson 1-1: Create a new Integration Services project, where they create a DSTX project. The lesson's Prerequistes instructs you to install the SQL Server Data Tools from Download SQL Server Data Tools,与上面link相同
2 我注意到扩展的 3.1 版目前被标记为预览版,该版本的发行说明包括文本,"This is the second preview release. We do not recommend using it for production." 但我没有看到我可以从市场网站或 Visual Studio 下载此扩展的早期版本。如果我能找到它,我会尝试最新的生产版本,但它似乎不可用。
我还看到有两条关于此预览版问题的说明。两者似乎都与我的情况无关。第一个是 VS 16.2 中的回归,他们建议升级到 16.2.3。我已经在 16.2.4 上了。第二个是扩展 and/or Visual Studio Tools for Applications 2019 可能会在 VS 实例升级期间被删除的问题。自从安装此扩展后,我没有对 VS 进行任何升级。
已安装的软件
- Visual Studio 2019,版本 16.2.4
- SQL Server Management Studio,版本 17.9.1。
在 Visual Studio 中,当我转到“帮助|关于 Microsoft Visual Studio”时,我还在“已安装的产品”中看到以下列出的内容(此列表不完整;它仅包括看起来相关的项目):
- SQL 服务器数据工具 16.0.61906.28070
- SQL 服务器集成服务 15.0.1301.433
在 Visual Studio 中,当我转到扩展|管理扩展时,我在已安装的扩展列表中看到 SQL 服务器集成服务项目。
错误消息表明您正在尝试打开 project/solution。 DTSX 是一个包。
您首先需要打开.sln 或.proj 文件。在项目(解决方案资源管理器)中,您可以打开 dtsx.不要尝试从源代码管理资源管理器打开 dtsx 文件,因为它不会与项目引用一起打开。
总而言之,打开 solution/project,然后从解决方案资源管理器中打开包。
您必须从 VS 扩展安装 SSMS、SSAS>(在 VS 菜单中,单击 "Extensions",然后单击“管理扩展
编辑和创建集成服务包 (.dtsx
) 是安装 SQL Server Integration Services Projects 所必需的。
安装后 Visual Studio 2019 可以独立(打开文件)或在 Integration Services Project 中创建或编辑集成包。即使 SSMS 失败并显示消息,也可以在 SQL 服务器上打开包:
Connecting to the Integration Services service on the computer "xxxx" failed with the following error: "Access is denied."