2012-08-02 111 views
1

包含腳本的包是使用VS 2008創建的,但是它所在的服務器只有VS 2010 PowerShell。我能夠構建沒有錯誤的腳本,並在本地進行了測試,運行良好。錯誤是:2012年部署帶腳本的SSIS包

Error at Data Flow Task [Script Component [111]]: The binary code for the script is not found. Please open the script in the designer by clicking Edit Script button and make sure it builds successfully. 
Error at Data Flow Task [SSIS.Pipeline]: "Script Component" failed validation and returned validation status "VS_ISBROKEN". 
Error at Data Flow Task [SSIS.Pipeline]: One or more component failed validation. 
Error at Data Flow Task: There were errors during task validation. 
+0

嗨,我想你的問題中有一些術語混淆了 - 你可以在你下臺之前清除它。 Visual Studio 2008有商業智能開發者工作室(BIDS)組件來編輯,測試和運行鍼對SQL Server 2008和2008R2的SSIS包。 Visual Studio 2010有一個組件SQL Server數據工具(SSDT),它是BIDS的後繼者。 SSDT可以編輯SQL Server 2012包。您將無法在未安裝SQL Server 2012的服務器上運行(dtexec)2008 SSIS包。 – billinkc 2012-08-02 19:09:54

回答

2

SSIS包部署SQL Server 2012的改變有一個寫得很好,一步一步blog後,告訴您如何將SSIS包部署到Integration Services服務器。還有MSDN documentation中SSIS部署更改的摘要。

SSDT是SQL Server 2012中的開發工具(而不像以前版本中的BIDS),用於創建SSIS包。我一般也有關於SSDT的blogged

1

我終於得到了修正。

打開項目後,我將菜單工具欄下的「構建」下拉菜單從「調試」更改爲「發佈」。當我選擇構建時出現錯誤:

Task could not find "sgen.exe" using the SdkToolsPath "" or the registry key "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v7.0A". Make sure the SdkToolsPath is set and the tool exists in the correct processor specific location under the SdkToolsPath and that the Microsoft Windows SDK is installed

雖然我安裝了正確的SDK,但sgen.exe文件丟失。我試圖安裝適用於Windows 7和.NET Framework 4(版本7.1)的Microsoft Windows SDK,但在2008服務器上失敗。我安裝了它在我的Windows 7 PC上,並複製了我的電腦的sgen.exe到構建服務器到

\\vpdr1\c$\Program Files\Microsoft SDKs\Windows\v7.0A\bin\NETFX 4.0 Tools

我打開項目,編輯腳本,將發佈並能夠建立和保存。現在沒有紅色X和SSIS包可以工作!

+1

你可以編輯你的其他答案並添加這個David。保持一切組織得很好:-) – Josien 2012-09-21 09:17:02