Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

64 bit SSIS running as 32 bit issues Expand / Collapse
Author
Message
Posted Wednesday, December 10, 2008 9:27 AM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Friday, January 31, 2014 3:13 PM
Points: 103, 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
Post #617157
Posted Wednesday, December 10, 2008 11:28 AM
SSCrazy

SSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazy

Group: General Forum Members
Last Login: Tuesday, August 10, 2010 5:07 AM
Points: 2,732, Visits: 23,078
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.
Post #617272
Posted Wednesday, December 10, 2008 1:02 PM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Friday, January 31, 2014 3:13 PM
Points: 103, Visits: 357
ok I'll give it another go.
Post #617342
Posted Sunday, January 17, 2010 10:57 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Today @ 8:45 AM
Points: 4, Visits: 242
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



Post #848881
Posted Wednesday, November 13, 2013 12:37 PM
SSC Eights!

SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!

Group: General Forum Members
Last Login: Monday, July 21, 2014 7:44 PM
Points: 817, Visits: 1,646
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!
Post #1514036
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse