我导入了一个使用VS2015从较低版本创建的SSIS包,因此它自动升级。这是运行包的代码:
Process process = new Process();
process.ErrorDataReceived += delegate (object sender, DataReceivedEventArgs e)
{
errorBuilder.Append(e.Data);
};
//call this before process start
process.StartInfo.RedirectStandardError = true;
process.StartInfo.WorkingDirectory = @"C:\Program Files\Microsoft SQL Server\110\DTS\Binn";
process.StartInfo.FileName = "DTExec.exe";
process.StartInfo.Arguments = @"/File " + pkgLocation;
process.StartInfo.UseShellExecute = false;
process.StartInfo.RedirectStandardOutput = true;
process.StartInfo.RedirectStandardError = true;
process.StartInfo.RedirectStandardInput = true;
process.Start();
但我得到错误:
Started: 2:32:00 PM
Error: 2016-06-27 14:32:00.81
Code: 0xC001700A
Source:
Description: The version number in the package is not valid. The version number cannot be greater than current version number.
End Error
Error: 2016-06-27 14:32:00.83
Code: 0xC0016020
Source:
Description: Package migration from version 8 to version 6 failed with error 0xC001700A "The version number in the package is not valid. The version number cannot be greater than current version number.".
End Error
Error: 2016-06-27 14:32:00.86
Code: 0xC0010018
Source: LoadClaimsFilePDNew
Description: Error loading value "<DTS:Property xmlns:DTS="www.microsoft.com/SqlServer/Dts" DTS:Name="PackageFormatVersion">8</DTS:Property>" from node "DTS:Property".
End Error
我已经安装了sql server数据工具和其他可能解决的问题,但我无法使其工作。我有vs 2015和sql server 2012
答案 0 :(得分:0)
您需要使用您正在使用的任何源控件来回滚您的包。
然后打开包,允许转换项目,一切都会好的。