dbTalk Databases Forums  

DTS Parameters

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss DTS Parameters in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Gary
 
Posts: n/a

Default DTS Parameters - 09-13-2005 , 12:23 PM






I am using "Execute SQL Task" to execute the following statement:
Select top 1 companyid from file_locations where statusid=0
I want to pass the companyid as a parameter to a global variable in the
package.

How do I do this?
Please show an example.
Thank you

Gary


Reply With Quote
  #2  
Old   
Thomas Bradshaw via SQLMonster.com
 
Posts: n/a

Default Re: DTS Parameters - 09-13-2005 , 12:43 PM






You already did the first step by opening the task window & putting your SQL
statement in the center pane.

In the same window:
- Click 'Parameters' Button
- Click 'Output Parameters' Tab
- Choose 'Row Value' Radio button
- From here, dropdown under 'Output Global Variables'
to choose a premade Global ==OR==
- Click 'Create Global Variables' to create a new one

Once the task has been run, the global variable is populated for your use.

Also, check this out for a host of other goodies:
http://www.sqldts.com

Thomas Bradshaw
MyWebGrocer.com
Data Integration Services


--
Message posted via SQLMonster.com
http://www.sqlmonster.com/Uwe/Forums...r-dts/200509/1

Reply With Quote
  #3  
Old   
Gary
 
Posts: n/a

Default Re: DTS Parameters - 09-13-2005 , 04:41 PM



Thank you for your response.
That was what I was looking for.


"Thomas Bradshaw via SQLMonster.com" wrote:

Quote:
You already did the first step by opening the task window & putting your SQL
statement in the center pane.

In the same window:
- Click 'Parameters' Button
- Click 'Output Parameters' Tab
- Choose 'Row Value' Radio button
- From here, dropdown under 'Output Global Variables'
to choose a premade Global ==OR==
- Click 'Create Global Variables' to create a new one

Once the task has been run, the global variable is populated for your use.

Also, check this out for a host of other goodies:
http://www.sqldts.com

Thomas Bradshaw
MyWebGrocer.com
Data Integration Services


--
Message posted via SQLMonster.com
http://www.sqlmonster.com/Uwe/Forums...r-dts/200509/1


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.