SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


64 bit SSIS running as 32 bit issues


64 bit SSIS running as 32 bit issues

Author
Message
JMartin-392745
JMartin-392745
Old Hand
Old Hand (331 reputation)Old Hand (331 reputation)Old Hand (331 reputation)Old Hand (331 reputation)Old Hand (331 reputation)Old Hand (331 reputation)Old Hand (331 reputation)Old Hand (331 reputation)

Group: General Forum Members
Points: 331 Visits: 357
Hello

I have written an SSIS package that makes use of 32 bit drivers for connecting to the data source, I can get this working by setting the relevent option in visual studio and it is fine. However I am struggling to get it to function under SQL 2005 SP2 64 bit.

I know that under SQL 2008 there is a /X86 option on DTExec, however does anyone know of a comparable option for SQL 2005?? I have had a look around and not been able to find anthing that makes much sense.

Cheers
Michael Earl-395764
Michael Earl-395764
SSChampion
SSChampion (13K reputation)SSChampion (13K reputation)SSChampion (13K reputation)SSChampion (13K reputation)SSChampion (13K reputation)SSChampion (13K reputation)SSChampion (13K reputation)SSChampion (13K reputation)

Group: General Forum Members
Points: 13239 Visits: 23078
That option is not available in the job agent in SQL 2005. You have to call the SSIS package using the CMD step type and give the path to the 32 bit DTExec.exe.

Search google a bit for this, it is pretty common.
JMartin-392745
JMartin-392745
Old Hand
Old Hand (331 reputation)Old Hand (331 reputation)Old Hand (331 reputation)Old Hand (331 reputation)Old Hand (331 reputation)Old Hand (331 reputation)Old Hand (331 reputation)Old Hand (331 reputation)

Group: General Forum Members
Points: 331 Visits: 357
ok I'll give it another go.
smorozov
smorozov
SSC Rookie
SSC Rookie (34 reputation)SSC Rookie (34 reputation)SSC Rookie (34 reputation)SSC Rookie (34 reputation)SSC Rookie (34 reputation)SSC Rookie (34 reputation)SSC Rookie (34 reputation)SSC Rookie (34 reputation)

Group: General Forum Members
Points: 34 Visits: 253
Hello!

Please check following link:

http://www.sqlservercentral.com/blogs/dknight/archive/2009/12/11/running-ssis-32-bit-drivers-or-tasks-on-a-64-bit-machine.aspx

This is an example of running SSIS package in the 32-bits mode from SQL stored procedure:

DECLARE @result INT,
@dtsExecCmd varchar(8000)

-- Assign values to package variables
-- @pNumber - SP parameter
SET @dtsExecCmd = ' /SET "\package.Variables[User::pNumber].Properties[Value]";' + cast(@pNumber as varchar(10))

SET @dtsExecCmd = 'c: & cd\ & cd "C:\Program Files (x86)\Microsoft SQL Server\90\DTS\Binn\" & dtexec.exe /FILE "C:\SSIS\V5.dtsx" /MAXCONCURRENT " -1 " /CHECKPOINTING OFF /REPORTING EWCDI ' + @dtsExecCmd

-- following lines will work when package was deployed on SQL and OS level by running of .SSISDeploymentManifest file.
-- SET @dtsExecCmd = 'c: & cd\ & cd "C:\Program Files (x86)\Microsoft SQL Server\90\DTS\Binn\" & dtexec.exe /SQL "\V5" /MAXCONCURRENT " -1 " /CHECKPOINTING OFF /REPORTING EW ' + @dtsExecCmd

-- SET @dtsExecCmd = 'c: & cd\ & cd "C:\Program Files (x86)\Microsoft SQL Server\90\DTS\Binn\" & dtexec.exe /DTS "\MSDB\V5" /MAXCONCURRENT " -1 " /CHECKPOINTING OFF /REPORTING V ' + @dtsExecCmd


/*
Previuos lines let us to run SSIS package in the 32-bit mode, because we are running 32-bits version of dtexec.exe.
Note – cmdshell will run multiple DOS commands by one call (operands splitted by “&”).
*/

DECLARE @output TABLE( [ssisOutput] varchar(max) )
INSERT INTO @output
EXEC @result = master..xp_cmdshell @dtsExecCmd

if @pDebugMode = 1 -- input parameter of SQL sp
begin
SELECT * FROM @output
print @result
end

Good luck,
Sergey



kramaswamy
kramaswamy
Hall of Fame
Hall of Fame (3.9K reputation)Hall of Fame (3.9K reputation)Hall of Fame (3.9K reputation)Hall of Fame (3.9K reputation)Hall of Fame (3.9K reputation)Hall of Fame (3.9K reputation)Hall of Fame (3.9K reputation)Hall of Fame (3.9K reputation)

Group: General Forum Members
Points: 3912 Visits: 1832
Hey - I know this is a very old post, but I must have spent *hours* searching for the solution, and this was *exactly* what I needed.

Thanks a ton Sergey! You've saved me countless more hours of fruitless searching and forced re-writing of scripts!
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search