ejecucion dtexec desde xp_cmdshell sql 2008
Publicado por Pedro Julio Rodriguez (1 intervención) el 18/08/2011 18:13:39
Buen dia amigos, estoy con un problema en la ejecucion de dtexec, les cuento: estoy ejecutando un dtsx (sql integration services) para migrar de excel a sql 2008. AL ejecutar mi paquete dtsx desde consola cmd , de la siguiente manera me funciona perfectamente:
'"C:\Program Files (x86)\Microsoft SQL Server\100\dts\binn\dtexec.exe" /f C:\ASOCAM\ASOCAM_MIGRACION.DTSX
migra OK, y todo va bien, pero necesito mandar a llamar esta instrucción desde un procedimiento almacenado para posteriormente utilizarlo en codigo en vb6, en el procedimiento almacenado utilizo xp_cmdshell para conectarme a consola: utilizo la siguiente instrucción:
EXEC xp_cmdshell '"C:\Program Files (x86)\Microsoft SQL Server\100\dts\binn\dtexec.exe" /f C:\ASOCAM\ASOCAM_MIGRACION.DTSX'
lamentablemente desde sql no me funciona :( aparentemente encuentra el ejecutable y el paquete, pero no lo migra, los mensajes de error que me marca son:
Microsoft (R) SQL Server Execute Package Utility
Version 10.50.1600.1 for 32-bit
Copyright (C) Microsoft Corporation 2010. All rights reserved.
NULL
Started: 10:01:49 a.m.
Error: 2011-08-18 10:01:49.80
Code: 0xC0016016
Source:
Description: Failed to decrypt protected XML node "DTS:Password" with error 0x8009000B "Key not valid for use in specified state.". You may not be authorized to access this information. This error occurs when there is a cryptographic error. Verify that
the correct key is available.
End Error
Progress: 2011-08-18 10:01:50.33
Source: Data Flow Task 1
Validating: 0% complete
End Progress
Progress: 2011-08-18 10:01:50.40
Source: Data Flow Task 1
Validating: 33% complete
End Progress
Error: 2011-08-18 10:01:50.51
Code: 0xC0202009
Source: ASOCAM_MIGRACION Connection manager "DestinationConnectionOLEDB"
Description: SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x80040E4D.
An OLE DB record is available. Source: "Microsoft SQL Server Native Client 10.0" Hresult: 0x80040E4D Description: "Login failed for user 'ASOCAM'.".
End Error
Error: 2011-08-18 10:01:50.51
Code: 0xC020801C
Source: Data Flow Task 1 Destination - PRESTAMOS [35]
Description: SSIS Error Code DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER. The AcquireConnection method call to the connection manager "DestinationConnectionOLEDB" failed with error code 0xC0202009. There may be error messages posted before thi
s with more information on why the AcquireConnection method call failed.
End Error
Error: 2011-08-18 10:01:50.51
Code: 0xC0047017
Source: Data Flow Task 1 SSIS.Pipeline
Description: component "Destination - PRESTAMOS" (35) failed validation and returned error code 0xC020801C.
End Error
Progress: 2011-08-18 10:01:50.51
Source: Data Flow Task 1
Validating: 66% complete
End Progress
Error: 2011-08-18 10:01:50.51
Code: 0xC004700C
Source: Data Flow Task 1 SSIS.Pipeline
Description: One or more component failed validation.
End Error
Error: 2011-08-18 10:01:50.51
Code: 0xC0024107
Source: Data Flow Task 1
Description: There were errors during task validation.
End Error
DTExec: The package execution returned DTSER_FAILURE (1).
Started: 10:01:49 a.m.
Finished: 10:01:50 a.m.
Elapsed: 1.031 seconds
NULL
ojala alguien me puediera ayuda ;( saludos.
'"C:\Program Files (x86)\Microsoft SQL Server\100\dts\binn\dtexec.exe" /f C:\ASOCAM\ASOCAM_MIGRACION.DTSX
migra OK, y todo va bien, pero necesito mandar a llamar esta instrucción desde un procedimiento almacenado para posteriormente utilizarlo en codigo en vb6, en el procedimiento almacenado utilizo xp_cmdshell para conectarme a consola: utilizo la siguiente instrucción:
EXEC xp_cmdshell '"C:\Program Files (x86)\Microsoft SQL Server\100\dts\binn\dtexec.exe" /f C:\ASOCAM\ASOCAM_MIGRACION.DTSX'
lamentablemente desde sql no me funciona :( aparentemente encuentra el ejecutable y el paquete, pero no lo migra, los mensajes de error que me marca son:
Microsoft (R) SQL Server Execute Package Utility
Version 10.50.1600.1 for 32-bit
Copyright (C) Microsoft Corporation 2010. All rights reserved.
NULL
Started: 10:01:49 a.m.
Error: 2011-08-18 10:01:49.80
Code: 0xC0016016
Source:
Description: Failed to decrypt protected XML node "DTS:Password" with error 0x8009000B "Key not valid for use in specified state.". You may not be authorized to access this information. This error occurs when there is a cryptographic error. Verify that
the correct key is available.
End Error
Progress: 2011-08-18 10:01:50.33
Source: Data Flow Task 1
Validating: 0% complete
End Progress
Progress: 2011-08-18 10:01:50.40
Source: Data Flow Task 1
Validating: 33% complete
End Progress
Error: 2011-08-18 10:01:50.51
Code: 0xC0202009
Source: ASOCAM_MIGRACION Connection manager "DestinationConnectionOLEDB"
Description: SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x80040E4D.
An OLE DB record is available. Source: "Microsoft SQL Server Native Client 10.0" Hresult: 0x80040E4D Description: "Login failed for user 'ASOCAM'.".
End Error
Error: 2011-08-18 10:01:50.51
Code: 0xC020801C
Source: Data Flow Task 1 Destination - PRESTAMOS [35]
Description: SSIS Error Code DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER. The AcquireConnection method call to the connection manager "DestinationConnectionOLEDB" failed with error code 0xC0202009. There may be error messages posted before thi
s with more information on why the AcquireConnection method call failed.
End Error
Error: 2011-08-18 10:01:50.51
Code: 0xC0047017
Source: Data Flow Task 1 SSIS.Pipeline
Description: component "Destination - PRESTAMOS" (35) failed validation and returned error code 0xC020801C.
End Error
Progress: 2011-08-18 10:01:50.51
Source: Data Flow Task 1
Validating: 66% complete
End Progress
Error: 2011-08-18 10:01:50.51
Code: 0xC004700C
Source: Data Flow Task 1 SSIS.Pipeline
Description: One or more component failed validation.
End Error
Error: 2011-08-18 10:01:50.51
Code: 0xC0024107
Source: Data Flow Task 1
Description: There were errors during task validation.
End Error
DTExec: The package execution returned DTSER_FAILURE (1).
Started: 10:01:49 a.m.
Finished: 10:01:50 a.m.
Elapsed: 1.031 seconds
NULL
ojala alguien me puediera ayuda ;( saludos.
Valora esta pregunta


0