Solution for job execution SSIS package failure in SQL Server Agent _mssql

Source: Internet
Author: User
Tags ssis

RT, execution failed, always only prompt one sentence "As a XXXX user execution failed", it is difficult to find the reason.

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

Sql2005 How to run SSIS (DTS) packages with dtexec

First, in the Business Intelligence design good package, and debugging through.

Second, choose the DTExec tool to run the package

(i) Open the 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 it can be enabled by using the Perimeter Application Configurator tool or by running the sp_configure system stored procedure, as shown in the following code example:

 To allow advanced the options to be 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 packages using dtexec utility tools

Way one: directly by allowing SSIS file execution

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

Mode two: First to import the package into SQL 2005 in the execution

1) Import Package

SQL2005 Open managemenet Studio, select Integration Services, select "Stored Packages"-"MSDB", right-click on the package, select File System, specify business Intelligence Development Studio Good package, select Import

Note: The protection level option needs to choose to rely on server storage and roles for access control

Otherwise, an error occurs when the package is run via dtexec-note: The Protected XML node "Dts:password" cannot be decrypted and the fault is 0x8009000b "This item is not suitable for use in the 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 After the import is complete, you can execute the statement in Managemenet Studio

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

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.