Wrox Programmer Forums
Go Back   Wrox Programmer Forums > SQL Server > SQL Server 2000 > SQL Server 2000
|
SQL Server 2000 General discussion of Microsoft SQL Server -- for topics that don't fit in one of the more specific SQL Server forums. version 2000 only. There's a new forum for SQL Server 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Server 2000 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 3rd, 2010, 11:15 AM
Authorized User
 
Join Date: Jun 2003
Posts: 54
Thanks: 2
Thanked 0 Times in 0 Posts
Default Passing Variables from Parent to Child DTS Packages

I inherited a SQL Server 2000 database and I need to use DTS. In particular, I need to take a value that I store in the Parent Package's Global Variables and pass it to a Child Package. I have been various forums but I cannot find anything that describes how you pass values from Parent to Child packages.

What I have tried so far is to create a global variable in the Child Pkg called "Received_Value". I have a global variable in the Parent called "Received_Value" (both of the same type). I load the parent variable with a value. In the Child package, on the "Outer Package Global Variables", I dropped it down and selected "Received_Value". I tried running it like this and nothing was passed.

Then I used a Dynamic Properties task to pass the Parent's Value to the Child's value. That did not work.

Then I tried using a Inner Package Global Variable and a Dynamic Properties task to pass the value to it. That did not work.

One of the problems I am having is that I don't know the difference between the Inner Package and Outer Package Global Variables in the Execute Package Task and there does not seem to be any documentation on it.

I scoured the SQLDTS.COM site but could not find an explanation of how it is done with the Execute Package Task. (they did have an explanation on ActiveX, but I would prefer not go that direction).

Can someone point me in the right directions? Thanks!
__________________
--- Tom





Similar Threads
Thread Thread Starter Forum Replies Last Post
Posting asp form variables from child to parent aspless Javascript How-To 0 July 20th, 2007 10:36 AM
parent child form data passing maddy137 ASP.NET 1.0 and 1.1 Basics 0 April 26th, 2006 01:00 PM
passing var from parent to child darkhalf Javascript 6 April 13th, 2004 09:27 PM
Mass Import DTS Packages ritag SQL Server DTS 2 September 16th, 2003 02:40 PM
Combining DTS Packages VBAHole22 SQL Server 2000 3 June 10th, 2003 01:01 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.