微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

定位SQLServer 2019时,Visual Studio 2019 SSIS项目出现80040153错误

如何解决定位SQLServer 2019时,Visual Studio 2019 SSIS项目出现80040153错误

Visual Studio社区2019 16.8.1,sql Server 2019

我在VS 2019中创建了一个新的SSIS项目。然后我创建了Connection Manager,并成功地针对数据库测试了连接。

使用简单的sql Task执行query时出现此错误

[Execute sql Task] Error: Executing the query "" Failed with the following error: "Retrieving the COM class factory for component with CLSID {0EB5013B-538B-456B-AF1B-96DD1004026B} Failed due to the following error: 80040153 Invalid value for registry (Exception from HRESULT: 0x80040153 (REGDB_E_INVALIDVALUE)).". Possible failure reasons: Problems with the query,"ResultSet" property not set correctly,parameters not set correctly,or connection not established correctly.

如果我打开使用Visual Studio 2017创建的SSIS项目并设置相同的Connection ManagerExecute sql Taskquery,则它将成功运行。

由于query与VS 2017 SSIS项目一起使用,我相信系统配置正确。

我已经在Visual Studio中取消安装并重新安装了sql Server Integration Serives Projects扩展名,然后删除并重新创建了SSIS项目。

.dtproj文件中有一个条目。

  <Configurations>
    <Configuration>
      <Name>Development</Name>
      <Options>
        <OutputPath>bin</OutputPath>
        <ConnectionMappings />
        <ConnectionProviderMappings />
        <ConnectionSecurityMappings />
        <DatabaseStorageLocations />
        <TargetServerVersion>sqlServer2017</TargetServerVersion>
        <AzureMode>false</AzureMode>
        <LinkedAzureTenantId />
        <LinkedAzureAccountId />
        <LinkedAzureSSISIR />
        <LinkedAzureStorage />
        <RemoteExecutionFolder />
        <ParameterConfigurationValues>
          <ConfigurationSetting>
            <Id>LastModifiedTime</Id>
            <Name>LastModifiedTime</Name>
            <Value xsi:type="xsd:dateTime">2019-07-04T21:20:58.4351661Z</Value>
          </ConfigurationSetting>
        </ParameterConfigurationValues>
      </Options>
    </Configuration>
  </Configurations>

在VS 2017 SSIS项目中,它设置为sqlServer2017。在VS 2019 SSIS项目sqlServer2019中。如果我以VS 2019 SSIS项目中的2017为目标,则错误会清除。

我从SSMS运行查询SELECT @@VERSION,并报告:

Microsoft sql Server 2019 (RTM-GDR) (KB4517790) - 15.0.2070.41 (X64) Oct 28 2019 19:56:59 copyright (C) 2019 Microsoft Corporation Developer Edition (64-bit) on Windows 10 Pro 10.0 <X64> (Build 18363: ) (Hypervisor)

为何定位sqlServer2019会引发错误,但定位sqlServer2017成功运行?

解决方法

在命令提示符下,您需要运行regsvr32 SQLTaskConnections.dll来注册DLL。这将允许在.dtproj文件中定位SQLServer2019

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。