ssis - 项目一致性检查失败。与项目的保护级别不同

标签 ssis sql-server-2012

我有一个烦人的问题,它说项目和程序包具有不同的保护级别。事实并非如此,它们都设置为“EncryptSensitiveWithUserKey”相同。

我尝试了这个Protection level changed mid project - now project won't build和其他一些解决方案,但是没有用。

每当我要构建或重建时,它都会说:

Error 1 Project consistency check failed. The following inconsistencies were detected: Persoon.dtsx has a different ProtectionLevel than the project. CountableUren.dtsx has a different ProtectionLevel than the project. Projecten.dtsx has a different ProtectionLevel than the project. Master_LAB_DSA.dtsx has a different ProtectionLevel than the project. DimProject.dtsx has a different ProtectionLevel than the project. DimPersoon.dtsx has a different ProtectionLevel than the project. DimLookupSources.dtsx has a different ProtectionLevel than the project. InitializeDim.dtsx has a different ProtectionLevel than the project. Master_LAB_ETL.dtsx has a different ProtectionLevel than the project. Master_LAB_DWH.dtsx has a different ProtectionLevel than the project. 0 0



设置为“EncryptSensitiveWithUserKey”时,在“查看代码”中没有“DTS:ProtectionLevel =“X”“。并在项目的属性中将其设置为“EncryptSensitiveWithUserKey”。我还尝试将所有内容都设置为“DontSaveSensitive”,这也给了我同样的错误。

如何解决这个问题?

最佳答案

解决方案是在billinkc的帮助下以及上面的解决方案中找到的:Protection level changed mid project - now project won't build

问题是ProtectionLevel的保护等级不同。有些是1,有些是2,而在属性菜单中,它们都是相同的。

因此,这些步骤已解决:

  • 在Visual Studio(2012)中打开您的项目。
  • 右键单击解决方案资源管理器中右侧的项目名称
    屏幕上,然后选择属性
  • 将安全性下的ProtectionLevel更改为DontSaveSensitive
  • 双击一个包,然后在“属性”下应有一个列表
    与属性。将“安全性”下的“保护级别”更改为
    属性中的DontSaveSensitive(对所有软件包都执行此操作)
  • 保存全部关闭Visual Studio(2012)
  • 然后转到C:\ ProjectName \ ProjectName \并使用
    .dtproj扩展名。类型为 Integration Services的一个
    项目文件
    而不是类型为Visual Studio的项目文件
    项目用户选项文件。
  • 使用文本编辑器打开ProjectName.dtproj。我使用 Notepad++ ,但是
    您还可以使用Visual Studio和其他文本编辑器将其打开。
  • 搜索并更改
    EncryptSensitiveWithUserKey到DontSaveSensitive。
  • 搜索并更改
    此数字后面的任何数字都为0零。搜索整个文件,在那里
    如果您的软件包多于一个,则应大于一个。
  • 保存文件,关闭文件,进入Visual Studio(2012),然后右键
    在解决方案资源管理器中单击项目名称,然后单击生成。
    现在一切正常。
  • 关于ssis - 项目一致性检查失败。与项目的保护级别不同,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30055796/

    相关文章:

    sql-server - SSIS事务管理MSSQL

    C# SSIS 数据流组件 - 创建自定义输入列

    sql : duplicate row and all related rows

    sqlclr - 为 CLR 函数设置 SCHEMABINDING 和 IsDeterministic

    sql-server - 执行 SSIS 包给出 System.IO.IOException

    sql-server - SSIS 2014 ADO.NET 与 Oracle 的连接对于 1 个表来说很慢(其余的都很好)

    sql - 如何创建一个 SSIS 包,该包循环使用名称中包含特定关键字的 excel 文件?

    SQL Server : How to CROSS JOIN between 2 Columns of the same table?(每列包含分隔值)

    SQL Server : recursive update statement

    SQL JOIN AND OR 条件