Solved

SISS: Running 32bit  dtexec from Stored Procedure

Posted on 2010-11-30
5
2,227 Views
Last Modified: 2012-08-14
Hi Experts,

We've just upgraded to SQL Server 2008 and have found that our SSIS packages that import Excel spreadsheets don't work due to the 64bit/32bit issue. I understand I have to run the 32bit version of dtexec to get it to work again, but I can't find how to actually do it.

I have a code snippit from a SP that will  show you how I'm currently calling dtexec and the SSIS package.

EXEC sp_xp_cmdshell_proxy_account 'IIS\xxx', 'password'
EXEC @pc= master..xp_cmdshell  'dtexec /f "F:\SSIS\package1.dtsx"'

Open in new window


Any help will be, as always, greatly appreciated.

Regs,
Numb
0
Comment
Question by:ComfortablyNumb
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
5 Comments
 
LVL 18

Accepted Solution

by:
x-men earned 500 total points
ID: 34238100
as simple as: (make sure you get the full path right ;) )

EXEC @pc= master..xp_cmdshell  'c:\Program Files (x86)\...\dtexec /f "F:\SSIS\package1.dtsx"'
 
0
 

Author Comment

by:ComfortablyNumb
ID: 34238531
Hi x-men,

I tried that with :

'c:\Program Files (x86)\Microsoft SQL Server\100\DTS\Binn\dtexec /f "F:\SSIS\package1.dtsx"'

Open in new window


but get the following error when run:

'c:\Program' is not recognized as an internal or external command,
operable program or batch file.
NULL

I know I'm doing something dumb somewhere!

Numb

0
 

Author Comment

by:ComfortablyNumb
ID: 34238551
sorry didnt put in the full snippit:

EXEC @pc= master..xp_cmdshell  'c:\Program Files (x86)\Microsoft SQL Server\100\DTS\Binn\dtexec /f "F:\SSIS\ProductCore8.dtsx"'

Open in new window

0
 

Author Comment

by:ComfortablyNumb
ID: 34238619
For some reason the SP disnt like the spaces between folder names. Putting "" around them seems to have fixed  that...

'c:\"Program Files (x86)"\"Microsoft SQL Server"\100\DTS\Binn\dtexec /f "F:\SSIS\ProductCore8.dtsx"'

Open in new window

0
 

Author Closing Comment

by:ComfortablyNumb
ID: 34238628
Thansk for your help x-men. Ya got me sorted!
0

Featured Post

Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Occasionally there is a need to clean table columns, especially if you have inherited legacy data. There are obviously many ways to accomplish that, including elaborate UPDATE queries with anywhere from one to numerous REPLACE functions (even within…
This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
This video Micro Tutorial shows how to password-protect PDF files with free software. Many software products can do this, such as Adobe Acrobat (but not Adobe Reader), Nuance PaperPort, and Nuance Power PDF, but they are not free products. This vide…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question