dbTalk Databases Forums  

DDQ and steps....

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


Discuss DDQ and steps.... in the microsoft.public.sqlserver.dts forum.



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

Default DDQ and steps.... - 12-16-2003 , 12:21 PM






Can you, using a DDQ, execute a given task in a package multiple times? I know that a DDQ allows you to perform *something* dependent on the value of a given field in the DDQ's query rowset, but I don't know if that includes TASKS. Help!

Reply With Quote
  #2  
Old   
Darren Green
 
Posts: n/a

Default Re: DDQ and steps.... - 12-16-2003 , 12:31 PM






In article <95FDA809-8B1D-4061-9D3A-FCE004F240B1 (AT) microsoft (DOT) com>,
Casualinfoguy <anonymous (AT) discussions (DOT) microsoft.com> writes
Quote:
Can you, using a DDQ, execute a given task in a package multiple times?
I know that a DDQ allows you to perform *something* dependent on the
value of a given field in the DDQ's query rowset, but I don't know if
that includes TASKS. Help!
In theory you could use the step execute method but this is not
recommended. You can execute SQL, not as a task but as a lookup, but
this can be any SQL you want and doesn't have to return anything.

There are alternatives for driving loops of a resultset, e.g.

How to loop through a global variable Rowset
(http://www.sqldts.com/default.aspx?298)

Workflow
(http://www.sqldts.com/default.aspx?103)
--
Darren Green (SQL Server MVP)
DTS - http://www.sqldts.com

PASS - the definitive, global community for SQL Server professionals
http://www.sqlpass.org



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

Default Re: DDQ and steps.... - 12-16-2003 , 12:46 PM





----- Darren Green wrote: ----

In article <95FDA809-8B1D-4061-9D3A-FCE004F240B1 (AT) microsoft (DOT) com>,
Casualinfoguy <anonymous (AT) discussions (DOT) microsoft.com> write
Quote:
Can you, using a DDQ, execute a given task in a package multiple times?
I know that a DDQ allows you to perform *something* dependent on the
value of a given field in the DDQ's query rowset, but I don't know if
that includes TASKS. Help
In theory you could use the step execute method but this is not
recommended. You can execute SQL, not as a task but as a lookup, but
this can be any SQL you want and doesn't have to return anything

There are alternatives for driving loops of a resultset, e.g

How to loop through a global variable Rowse
(http://www.sqldts.com/default.aspx?298

Workflo
(http://www.sqldts.com/default.aspx?103
--
Darren Green (SQL Server MVP
DTS - http://www.sqldts.co

PASS - the definitive, global community for SQL Server professional
http://www.sqlpass.or

Darren, do you have a telephone number that I could speak to you on, momentarily?


Reply With Quote
  #4  
Old   
Casualinfoguy
 
Posts: n/a

Default Re: DDQ and steps.... - 12-16-2003 , 02:41 PM



How do you set a global variable to "Dispatch" and what does that mean, exactly? (I think its a dispatch pointer, i.e., a recordset)

----- Darren Green wrote: -----

In article <95FDA809-8B1D-4061-9D3A-FCE004F240B1 (AT) microsoft (DOT) com>,
Casualinfoguy <anonymous (AT) discussions (DOT) microsoft.com> writes
Quote:
Can you, using a DDQ, execute a given task in a package multiple times?
I know that a DDQ allows you to perform *something* dependent on the
value of a given field in the DDQ's query rowset, but I don't know if
that includes TASKS. Help!
In theory you could use the step execute method but this is not
recommended. You can execute SQL, not as a task but as a lookup, but
this can be any SQL you want and doesn't have to return anything.

There are alternatives for driving loops of a resultset, e.g.

How to loop through a global variable Rowset
(http://www.sqldts.com/default.aspx?298)

Workflow
(http://www.sqldts.com/default.aspx?103)
--
Darren Green (SQL Server MVP)
DTS - http://www.sqldts.com

PASS - the definitive, global community for SQL Server professionals
http://www.sqlpass.org




Reply With Quote
  #5  
Old   
Darren Green
 
Posts: n/a

Default Re: DDQ and steps.... - 12-16-2003 , 03:11 PM



In article <DFBB8297-9DB9-4F99-9BA2-F8AAE23054D9 (AT) microsoft (DOT) com>,
Casualinfoguy <anonymous (AT) discussions (DOT) microsoft.com> writes

Darren, do you have a telephone number that I could speak to you
on, momentarily?

Please keep it in the newsgroup. It helps everyone this way.

--
Darren Green (SQL Server MVP)
DTS - http://www.sqldts.com

PASS - the definitive, global community for SQL Server professionals
http://www.sqlpass.org


Reply With Quote
  #6  
Old   
Darren Green
 
Posts: n/a

Default Re: DDQ and steps.... - 12-16-2003 , 03:12 PM



In article <67C50A81-582E-4F7C-9EFA-A602242720C9 (AT) microsoft (DOT) com>,
Casualinfoguy <anonymous (AT) discussions (DOT) microsoft.com> writes
Quote:
How do you set a global variable to "Dispatch" and what does that mean,
exactly? (I think its a dispatch pointer, i.e., a recordset)

You can't and nor do you need to. Leave the global variable as string,
and when you execute the package it will change the type for you. Global
variables are variants, so there are no type conversion issues to worry
about here. I almost always use strings, and if they get changed on
execution then so be it.
--
Darren Green (SQL Server MVP)
DTS - http://www.sqldts.com

PASS - the definitive, global community for SQL Server professionals
http://www.sqlpass.org



Reply With Quote
  #7  
Old   
Casualinfoguy
 
Posts: n/a

Default Re: DDQ and steps.... - 12-17-2003 , 11:16 AM



Darren, that seems to work fine. Thank you much.

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.