Solved

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

Posted on 2008-10-06
5
1,736 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 500 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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
MS SQL Backup 24 70
Ranking Based On Value 3 29
C# SQL BULK INSERT CLASS 5 35
How to simplify my SQL statement? 12 16
Nowadays, some of developer are too much worried about data. Who is using data, who is updating it etc. etc. Because, data is more costlier in term of money and information. So security of data is focusing concern in days. Lets' understand the Au…
Everyone has problem when going to load data into Data warehouse (EDW). They all need to confirm that data quality is good but they don't no how to proceed. Microsoft has provided new task within SSIS 2008 called "Data Profiler Task". It solve th…
Using examples as well as descriptions, and references to Books Online, show the different Recovery Models available in SQL Server and explain, as well as show how full, differential and transaction log backups are performed
Viewers will learn how to use the UPDATE and DELETE statements to change or remove existing data from their tables. Make a table: Update a specific column given a specific row using the UPDATE statement: Remove a set of values using the DELETE s…

758 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now