即使在配置配置文件后,也会在SSIS中进行错误调度

时间:2016-07-17 07:16:28

标签: sql-server-2008

我很难通过Management Studio尝试在SSIS中安排程序包。我正在使用SQL Server 2008 R2。 直接从BIDS执行我的包运行正常。但是,当我创建作业并从Management Studio运行它时,会抛出各种错误。当我放置DontSaveSensitive时,包不会从BIDS运行,但当我放在EmcryptSensitivedataWithKey时,它在BIDS上运行但在Management Studio中失败,错误DTS:Password有错误

  

0x8009000B密钥无法在指定状态下使用。   您可能无权访问此信息。加密错误时会发生此错误。

我已将包设置更改为DontSaveSensitiv e并修改了配置文件,以在连接字符串中包含密码。

我的XML看起来像这样:

<?xml version="1.0"?><DTSConfiguration><DTSConfigurationHeading><DTSConfigurationFileInfo GeneratedBy="SEWA\120097" GeneratedFromPackageName="Payments2" GeneratedFromPackageID="{07F1FADD-D78D-4229-B71D-0E19692DE30C}" GeneratedDate="7/17/2016 8:26:14 AM"/></DTSConfigurationHeading><Configuration ConfiguredType="Property" Path="\Package.Connections[CCBPROD.RPTUSER].Properties[ConnectionString]" ValueType="String"><ConfiguredValue>Data Source=CCBPROD;Password=RPTUSER;User ID=RPTUSER;Provider=MSDAORA.1;Persist Security Info=True;</ConfiguredValue></Configuration><Configuration ConfiguredType="Property" Path="\Package.Connections[CCBPROD.RPTUSER].Properties[Description]" ValueType="String"><ConfiguredValue></ConfiguredValue></Configuration><Configuration ConfiguredType="Property" Path="\Package.Connections[CCBPROD.RPTUSER].Properties[InitialCatalog]" ValueType="String"><ConfiguredValue></ConfiguredValue></Configuration><Configuration ConfiguredType="Property" Path="\Package.Connections[CCBPROD.RPTUSER].Properties[Name]" ValueType="String"><ConfiguredValue>CCBPROD.RPTUSER</ConfiguredValue></Configuration><Configuration ConfiguredType="Property" Path="\Package.Connections[CCBPROD.RPTUSER].Properties[Password]" ValueType="String"><ConfiguredValue></ConfiguredValue></Configuration><Configuration ConfiguredType="Property" Path="\Package.Connections[CCBPROD.RPTUSER].Properties[ProtectionLevel]" ValueType="Int32"><ConfiguredValue>1</ConfiguredValue></Configuration><Configuration ConfiguredType="Property" Path="\Package.Connections[CCBPROD.RPTUSER].Properties[RetainSameConnection]" ValueType="Boolean"><ConfiguredValue>0</ConfiguredValue></Configuration><Configuration ConfiguredType="Property" Path="\Package.Connections[CCBPROD.RPTUSER].Properties[ServerName]" ValueType="String"><ConfiguredValue>CCBPROD</ConfiguredValue></Configuration><Configuration ConfiguredType="Property" Path="\Package.Connections[CCBPROD.RPTUSER].Properties[UserName]" ValueType="String"><ConfiguredValue>RPTUSER</ConfiguredValue></Configuration><Configuration ConfiguredType="Property" Path="\Package.Connections[CCBTEST.RPTUSER].Properties[ConnectionString]" ValueType="String"><ConfiguredValue>Data Source=CCBTEST;Password=RPTUSER;User ID=RPTUSER;Provider=MSDAORA.1;</ConfiguredValue></Configuration><Configuration ConfiguredType="Property" Path="\Package.Connections[CCBTEST.RPTUSER].Properties[Description]" ValueType="String"><ConfiguredValue></ConfiguredValue></Configuration><Configuration ConfiguredType="Property" Path="\Package.Connections[CCBTEST.RPTUSER].Properties[InitialCatalog]" ValueType="String"><ConfiguredValue></ConfiguredValue></Configuration><Configuration ConfiguredType="Property" Path="\Package.Connections[CCBTEST.RPTUSER].Properties[Name]" ValueType="String"><ConfiguredValue>CCBTEST.RPTUSER</ConfiguredValue></Configuration><Configuration ConfiguredType="Property" Path="\Package.Connections[CCBTEST.RPTUSER].Properties[Password]" ValueType="String"><ConfiguredValue></ConfiguredValue></Configuration><Configuration ConfiguredType="Property" Path="\Package.Connections[CCBTEST.RPTUSER].Properties[ProtectionLevel]" ValueType="Int32"><ConfiguredValue>1</ConfiguredValue></Configuration><Configuration ConfiguredType="Property" Path="\Package.Connections[CCBTEST.RPTUSER].Properties[RetainSameConnection]" ValueType="Boolean"><ConfiguredValue>0</ConfiguredValue></Configuration><Configuration ConfiguredType="Property" Path="\Package.Connections[CCBTEST.RPTUSER].Properties[ServerName]" ValueType="String"><ConfiguredValue>CCBTEST</ConfiguredValue></Configuration><Configuration ConfiguredType="Property" Path="\Package.Connections[CCBTEST.RPTUSER].Properties[UserName]" ValueType="String"><ConfiguredValue>RPTUSER</ConfiguredValue></Configuration><Configuration ConfiguredType="Property" Path="\Package.Properties[PackagePassword]" ValueType="String"><ConfiguredValue></ConfiguredValue></Configuration><Configuration ConfiguredType="Property" Path="\Package.Properties[ProtectionLevel]" ValueType="Int32"><ConfiguredValue>2</ConfiguredValue></Configuration></DTSConfiguration>

请帮助!!

0 个答案:

没有答案