Solved

Scope of DTS Global Variable and DTSRUN

Posted on 2006-07-08
2
694 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 400 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 100 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Slowly Changing Dimension Transformation component in data task flow is very useful for us to manage and control how data changes in SSIS.
This article shows gives you an overview on SQL Server 2016 row level security. You will also get to know the usages of row-level-security and how it works
Using examples as well as descriptions, and references to Books Online, show the documentation available for datatypes, explain the available data types and show how data can be passed into and out of variables.
Viewers will learn how to use the SELECT statement in SQL to return specific rows and columns, with various degrees of sorting and limits in place.

733 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