dbTalk Databases Forums  

Using multiple global variables

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


Discuss Using multiple global variables in the microsoft.public.sqlserver.dts forum.



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

Default Using multiple global variables - 11-17-2003 , 12:49 PM






Hello all. We have a dts package that has 2 global variables, which will be
used in the WHERE clause of a SELECT statement in a data pump. However, we
don't know how to differentiate between the two, because both are referenced
using the "?" question mark. Here's our WHERE clause, with PARAMETER1 and
PARAMETER2 used to differentiate between the two. Thanks in advance.

....
WHERE
((RTFILE_SP.RT_TERM = PARAMETER1) OR (RTFILE_SP.RT_TERM = PARAMETER2))
AND
((RCFILE_ROOT_SEG.RC_TERM = PARAMETER1) OR (RCFILE_ROOT_SEG.RC_TERM =
PARAMETER2))
....



Reply With Quote
  #2  
Old   
dw
 
Posts: n/a

Default Re: Using multiple global variables - 11-17-2003 , 12:52 PM






Nevermind for the brainless question you can indicate which ? goes with
which parameter after you enter the ? marks into the query. Duh!

"dw" <cougarmana_NOSPAM (AT) uncw (DOT) edu> wrote

Quote:
Hello all. We have a dts package that has 2 global variables, which will
be
used in the WHERE clause of a SELECT statement in a data pump. However, we
don't know how to differentiate between the two, because both are
referenced
using the "?" question mark. Here's our WHERE clause, with PARAMETER1 and
PARAMETER2 used to differentiate between the two. Thanks in advance.

...
WHERE
((RTFILE_SP.RT_TERM = PARAMETER1) OR (RTFILE_SP.RT_TERM = PARAMETER2))
AND
((RCFILE_ROOT_SEG.RC_TERM = PARAMETER1) OR (RCFILE_ROOT_SEG.RC_TERM =
PARAMETER2))
...





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.