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

Executing SSIS Package in 64-bit server Expand / Collapse
Author
Message
Posted Thursday, December 17, 2009 7:19 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Tuesday, October 25, 2011 1:01 PM
Points: 8, Visits: 49
Hi,

I got the mentioned problem since a few weeks ago when I try to deploy the SSIS package into an SQL server of 64-bit. After a few weeks googling, I still couldn't find out the right way to get it solve, so I decided to post the question here and hope to get the solution from here.

The system looks like this:

Let’s say Server A represents Web Server and Server B represents the Sql server.

Web Site (deployed in Server A) -> Web Services (deployed in Server B) -> SSIS packages (deployed in Server B) -> Database (in Server B).

Web Site: User upload an excel file, which will be processed in the SSIS package later, through this web site. The details of the upload will then be passed to the web services for further action.

Web services: Call the SSIS package here along with the package variables.

SSIS package: Process the uploaded excel file and transform into another excel file.

Database: Refer to the data in database during SSIS package execution.

In Web services, I’m using the following way to call the SSIS package:

Imports Microsoft.SqlServer.Dts.Runtime

Dim package As Package
Dim app As New Application
Dim result As DTSExecResult

app.PackagePassword = "xxx"

Package = app.LoadPackage(packagePath, Nothing)
Package.Variables("A").Value = a
Package.Variables("B").Value = b
Package.Variables("C").Value = c
Package.Variables("D").Value = d
Package.Variables("E").Value = e
Package.Variables("F").Value = f
Package.Variables("G").Value = g
Package.Variables("H").Value = h
Package.Variables("I").Value = i
Package.Variables("J").Value = j
Package.Variables("K").Value = k
Package.Variables("L").Value = l

result = Package.Execute

I call it in this way as I will need the execution result, either success or fail, to pass back to the website as a status reporting.

I understand that I will need to call dtexec.exe from Program Files (x86) in order to run the SSIS package in 64-bit server, but may I know how can I do it with the above way?

Is the Microsfot.SqlServer.Dts.Runtime only applicable to 32-bit server?

If the above way cannot be used, what’s the alternative way should I use to get the same result?

Please advice.

Thanks.
Post #836092
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse