Please start any new threads on our new site at We've got lots of great SQL Server experts to answer whatever question you can come up with.

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
Save Password
Forgot your Password?

 All Forums
 SQL Server 2012 Forums
 SSIS and Import/Export (2012)
 Set global variable and file name in DTS
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Starting Member

1 Posts

Posted - 09/12/2013 :  18:11:54  Show Profile  Reply with Quote
Hi All,


I am new to DTS and i need some help regarding the following

Our environment is SQL 2008 but we have 2005 backward compatability pack on our server so we have dtsrun.exe.

We have the DTS placed on a shred drive and by using xp_cmdshell we run the dts packages. Our application was based on MS Access before and now we are trying to migrate to Java. We have a stored procedure that we call from java to run the DTS.The Java application will run on a unix machine.

Currently we are able to execute the DTS from the java application but we are facing difficulties updating the global variables. I tried this

exec databasename..xp_cmdshell 'DTSRun.exe /a VariableName:String="21713-1" /f "D:/DTS/Load table.dts"'

but when i execute this the query is running for long time and nothing is happening.

I also have one more DTS, which accepts the input file and updates the tables. The user can browse the file from any location and upload.
In the DTS, if i right click for the connection properties we have a kept the datasource as text source and hardcoded a file name now. How can we update the file name location from java.

This is what we have in Access application
myPkg.Connections("Load File").DataSource = stFile

Please help

  Previous Topic Topic Next Topic  
 Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.02 seconds. Powered By: Snitz Forums 2000