?
Solved

Scope of DTS Global Variable and DTSRUN

Posted on 2006-07-08
2
Medium Priority
?
704 Views
Last Modified: 2013-11-30
Dear Experts,

I have created a DTS Package with 2 Global Variables (gvInput & gvOutput) (defined in design mode i.e. using Package Properties).  On execution of the DTS Package the execution result is stored in gvOutput.  

If I execute the package in DTS Designer everything works perfect and gvOutput retains the value, even after closing and reopening EM.

But, if I execute the package through DTSRUN command line utility, everything works perfect, but the values are not retained.

I hope most of the experts might have faced this.

Thanks in advance ;-)
0
Comment
Question by:sankarbha
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 75

Accepted Solution

by:
Anthony Perkins earned 1200 total points
ID: 17064973
>>But, if I execute the package through DTSRUN command line utility, everything works perfect, but the values are not retained.<<
That is correct.  Since you have not saved the package they will not be saved.  In much the same way if you had run the DTS Package manually and not saved the package when you closed it.
0
 
LVL 3

Assisted Solution

by:chhapia_chintak
chhapia_chintak earned 300 total points
ID: 17071334
Yes you can pass value to global variable but can not take output when you are running DTS package from outside.

If you want to access the value of gvOutput after execution you can store value of gvOutput in datatable or you can store value of gvOutput to file on server at the end of DTS package execution. So after execution you can access that value.
0

Featured Post

Veeam Disaster Recovery in Microsoft Azure

Veeam PN for Microsoft Azure is a FREE solution designed to simplify and automate the setup of a DR site in Microsoft Azure using lightweight software-defined networking. It reduces the complexity of VPN deployments and is designed for businesses of ALL sizes.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
It is possible to export the data of a SQL Table in SSMS and generate INSERT statements. It's neatly tucked away in the generate scripts option of a database.
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Suggested Courses

765 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