Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Error running dtexec in 32 bit on sql2005 x64 from stored proc

Posted on 2008-10-06
5
Medium Priority
?
1,788 Views
Last Modified: 2013-11-30
I am receiving the following error when i am trying to run an SSIS package in 32 bit mode from a stored procedure in sql 2005:

'C:\Program' is not recognized as an internal or operable program or batch file

I know its something stupid..but i can't figure it out...here is the code:

exec master..xp_cmdshell '"C:\Program Files (x86)\Microsoft SQL Server\90\DTS\Binn\DTExec.exe" /F "C:\One2OneUS\SSISPackages\SQL01One2OneUSToGenLookup.dtsx"'

Any help would be greatly appreciated...

Regards
Mark
0
Comment
Question by:metsey
  • 3
5 Comments
 
LVL 4

Expert Comment

by:randy_knight
ID: 22653481
try using C:\Progra~1 insead of the long name.  The space between Program and Files is likely your issue.
0
 
LVL 51

Accepted Solution

by:
Mark Wills earned 2000 total points
ID: 22667668
It is the two groups of quoted strings... Try :

exec master..xp_cmdshell '"C:\Program Files (x86)\Microsoft SQL Server\90\DTS\Binn\DTExec.exe" /F C:\One2OneUS\SSISPackages\SQL01One2OneUSToGenLookup.dtsx'

Or, simple make sure DTEXEC is part of the PATH and simply run :

exec master..xp_cmdshell 'DTExec.exe /F "C:\One2OneUS\SSISPackages\SQL01One2OneUSToGenLookup.dtsx"'

The trouble in 64 bit is that there is a 32 bit and a 64 bit version of deexec. The way we "fixed" that for batch jobs was to copy and save each as DTEXEC32 and DTEXEC64 respecitively - not really a good thing to do, but solved a heck of a lot of problems for our batch jobs !!
0
 
LVL 51

Expert Comment

by:Mark Wills
ID: 22667674
Oh, and that was a copy and save, not a rename...
0
 

Author Closing Comment

by:metsey
ID: 31503543
Thank you sir
0
 
LVL 51

Expert Comment

by:Mark Wills
ID: 22779351
A pleasure, and thanks for the "Thank You" always enjoy hearing those two words :)
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

An alternative to the "For XML" way of pivoting and concatenating result sets into strings, and an easy introduction to "common table expressions" (CTEs). Being someone who is always looking for alternatives to "work your data", I came across this …
Ready to get certified? Check out some courses that help you prepare for third-party exams.
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
Via a live example, show how to backup a database, simulate a failure backup the tail of the database transaction log and perform the restore.

916 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