xp_cmdshell exec ssis package in 32bit mode

  • insert "@" before path..

    e.g. '@"C:\Program Files(x86)\....."

    It should work. I have tried this solution and I was able to execute it.

  • Hi Try this,

    SET @QUERY='cd.. && "C:\Program Files (x86)\Microsoft SQL Server\110\DTS\Binn\DTExec.exe" /f......

    print @query

    EXEC master.dbo.XP_CMDSHELL @QUERY

  • hi

    i am also facing the same problem , do any one have solution of this problem

  • i am importing excel in db but in stored procedure it is giving following error: The GetEnumerator method of the ForEach Enumerator has failed with error 0x80040E21 "(null)". This occurs when the ForEach Enumerator cannot enumerate.

    otherwise it is running fine in BIDS

  • Please add @ before the double quotes.

    declare @cmd varchar(200)

    set @cmd = '@"c:\program files (x86)\microsoft sql server\100\dts\binn\dtexec.exe" /f "C:\Users\user1\Desktop\package.dtsx" '

    exec master..xp_cmdshell @cmd

Viewing 5 posts - 16 through 19 (of 19 total)

You must be logged in to reply to this topic. Login to reply