Posts mit dem Label SP3 werden angezeigt. Alle Posts anzeigen
Posts mit dem Label SP3 werden angezeigt. Alle Posts anzeigen

Dienstag, 2. Februar 2010

SQL Server 2005: 32-bit-exe von DTEXEC auf 64-bit-SQL Server benutzen

Situation:
SCOM-Reports sollen als Textdateien für die asynchrone Weiterverarbeitung in HP Open View bereitgestellt werden. Ein dtsx-Paket lädt dazu Daten aus einem csv-File und gibt die Daten umformatiert in eine andere Textdatei aus. Im BIDS funktionierte alles bestens.

Problem:
Nach dem Deployment des dtsx-Pakets als SQL Server Agent job trat folgender Fehler auf:

Error: 2010-01-29 10:01:08.32 Code: 0xC0048020 Source: Data Flow Task SCOM_PERFDATA_SYSTEM Data Flow Task SCOM_PERFDATA_SYSTEM (DTS.Pipeline) Description: The version of component "Flat File Source" (1) is not compatible with this version of the DataFlow. End Error The package execution fa... The step failed.

Ursache:
Wenn Sie SQL Server 2005 mit Integration Services und Business Intelligence Development Studio installieren, werden alle verfügbaren 32-Bit- und 64-Bit-Entwurfszeit und Laufzeit-Features von Integration Services installiert. Flatfile-Datasources und Destinations Provider sind nur in der 32-Bit-Version von dtexec.exe enthalten.

Lösung:
Server Agent job step als CmdExec-Typ anlegen, in der Befehlszeile auf die dtexec.exe im 32-bit-Verzeichnis verweisen:

E:\Program Files\Microsoft SQL Server (x86)\90\DTS\Binn\dtexec.exe /SQL "\SSIS package name" /SERVER "servername" /MAXCONCURRENT " -1 " /CHECKPOINTING OFF /REPORTING E

Link:
http://msdn.microsoft.com/en-us/library/ms141766(SQL.90).aspx

MS SQL Server SSIS Problem

Situation:
We needed to install SSIS on a server running 64-bit-MS SQL Server 2005 SP3 with Cumulative update package 2 for SQL Server 2005 Service Pack 3 (9.0.4211) to support a SQL Server Agent job running a dtsx-package includes flatfile sources and destinations.

Problem:
Trying to register SSIS in SQL Server management Studio 2005 we received this Error:
Failed to retrieve data for this request. (Microsoft.SqlServer.SmoEnum) ...
Connect to SSIS Service on machine "ComputerName" failed:
Error loading type library/DLL.
The SQL Server Agent job failed, showing a similar error message stating the package could not be loaded.

Solution:
If the versions of the instances of SQL Server 2005 are not earlier than SQL Server 2005 SP2, run the following command at a command prompt to register the 32-bit Dts.dll file:
%windir%\syswow64\regsvr32 "%ProgramFiles(x86)%\Microsoft SQL Server\90\dts\binn\dts.dll"
You may also need to manually register MsDtsSrvrUtil.dll, using
%windir%\syswow64\regsvr32 "%ProgramFiles(x86)%\Microsoft SQL Server\90\dts\binn\MsDtsSrvrUtil.dll


If running 64-bit Integration Services, you may need to manually register the 64-bit dlls using these commands
%windir%\system32\regsvr32 "%ProgramFiles%\Microsoft SQL Server\90\dts\binn\dts.dll
%windir%\system32\regsvr32 "%ProgramFiles%\Microsoft SQL Server\90\dts\binn\MsDtsSrvrUtil.dll


Link: http://support.microsoft.com/kb/919224/en-us