SQL Server Agent failed to execute SSIS package in Job

Source: Internet
Author: User
Tags ssis

RT, failed to execute, always only prompt a "to XXXX user identity execution Failure", it is difficult to find the reason. 

Reference http://bbs.csdn.net/topics/300059148

Sql2005 How to run SSIS (DTS) packages with dtexec

first, in Business intelligence design the package, and debugging through.

second, the use of dtexec tools to run the package


(i) Open xp_cmdshell option

the xp_cmdshell option introduced in SQL Server 2005 is a server configuration option that enables system administrators to control whether xp_cmdshell extended stored procedures can be executed on the system. By default, the xp_cmdshell option is disabled on newly installed software, but you can enable it by using the Surface Area Configuration tool or by running the sp_configure system stored procedure, as shown in the following code example:


To, advanced options to is changed.

EXEC sp_configure ' show advanced options ', 1 go–


To update the currently configured value for advanced options. RECONFIGURE GO-To enable the feature.


EXEC sp_configure ' xp_cmdshell ', 1 go–chinaz^com

To update the currently configured value for this feature. RECONFIGURE GO


(ii) Implementation of the package using the DTExec utility

Way one: directly by allowing SSIS files to execute

use the following command: xp_cmdshell ' dtexec/f "C:\UpsertData.dtsx"


method Two: Import the package into SQL 2005 before executing


1) Import Package

SQL2005 Open managemenet Studio, select Connect Integration Services, select "Stored Packages"-"MSDB", right-click Import Package, select File System, specify business Intelligence Development Studio-Ready package, select Import


Note: You need to choose to rely on server storage and role for access control in the protection level option


Otherwise, when running the package via dtexec-note: The Protected XML node "Dts:password" cannot be decrypted, and the error is 0x8009000b "The item is not suitable for use in a specified state. ”。 You may not have permission to access this information. This error occurs when there is a cryptographic error. Make sure that you provide the correct key.
 
2) Execution of statements in Managemenet Studio after import is complete

xp_cmdshell ' Dtexec/dts "\msdb\wangluo"/server "Xxw2006_1"/maxconcurrent "-1"/checkpointing off/reporting V '

Job execution SSIS package in SQL Server Agent failed

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.