dbTalk Databases Forums  

DTS/Global Variable help needed!

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


Discuss DTS/Global Variable help needed! in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
scott.rick@cit-net.com
 
Posts: n/a

Default DTS/Global Variable help needed! - 10-20-2005 , 11:06 AM






I have a DTS package which exports data from SQL(2000 sp4) to Access
2000 all toll their are 40 Transform Data Tasks (each representing a
table). 39 of the 40 work perfectly the last one
executes but does not send any data or give any errors. I am using a
Global Variable (the same one for each Transform) in a simple way
simply...

Select * From tblCity Where MarketCd = ?

I click the parameter button to associate the parameter and save
everything, run my package, after it finish's executing I go to the
transform that does not send data and click the parameter button and my
global variable is no longer selected??? Help!


Reply With Quote
  #2  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: DTS/Global Variable help needed! - 10-20-2005 , 02:13 PM






Hello scott.rick (AT) cit-net (DOT) com,

If it maps in 39 and not the 40th and you are sure you put the variable in
there at design time then there is no reasonable explanation for this. Things
to try

If you map the ? to the variable at design time and close the datapump and
then reopen in design time. Still there?
Use a different variable?

The thing is that if there was no variable there at runtime then the pump
should fail as the statement would be rubbish.

Is the package set to fail on first error?

Allan




Quote:
I have a DTS package which exports data from SQL(2000 sp4) to Access
2000 all toll their are 40 Transform Data Tasks (each representing a
table). 39 of the 40 work perfectly the last one
executes but does not send any data or give any errors. I am using a
Global Variable (the same one for each Transform) in a simple way
simply...
Select * From tblCity Where MarketCd = ?

I click the parameter button to associate the parameter and save
everything, run my package, after it finish's executing I go to the
transform that does not send data and click the parameter button and
my global variable is no longer selected??? Help!




Reply With Quote
  #3  
Old   
scott.rick@cit-net.com
 
Posts: n/a

Default Re: DTS/Global Variable help needed! - 10-21-2005 , 08:03 AM



Thanks for the response! I have tried the options you mentioned,
mapped the variable, closed, reopened and it is still there...doesn't
dissappear until I actually run the package. Used a different
variable...same results. This particular Transform is towards the
beginning of the package and the remaining steps execute so the package
(and global Variable) is not failing just this step...and actually it
tells me it executed...just no records (and yes there are records in
there that should get pulled). I tried one other thing, hard coded the
value for that one Transform and ran it...this time the Transform
failed with a 'LA'(the value I hard coded in) is not a defined Global
Variable...so I put the ? back in and tried again and got the original
results. At that point I went to the Transform associated the ? to the
Global Variable and ran just that Step and it worked...ran the whole
package and it went back to the original problem...I'm at a loss at
this point? Any other things I should try?


Allan Mitchell wrote:
Quote:
Hello scott.rick (AT) cit-net (DOT) com,

If it maps in 39 and not the 40th and you are sure you put the variable in
there at design time then there is no reasonable explanation for this. Things
to try

If you map the ? to the variable at design time and close the datapump and
then reopen in design time. Still there?
Use a different variable?

The thing is that if there was no variable there at runtime then the pump
should fail as the statement would be rubbish.

Is the package set to fail on first error?

Allan




I have a DTS package which exports data from SQL(2000 sp4) to Access
2000 all toll their are 40 Transform Data Tasks (each representing a
table). 39 of the 40 work perfectly the last one
executes but does not send any data or give any errors. I am using a
Global Variable (the same one for each Transform) in a simple way
simply...
Select * From tblCity Where MarketCd = ?

I click the parameter button to associate the parameter and save
everything, run my package, after it finish's executing I go to the
transform that does not send data and click the parameter button and
my global variable is no longer selected??? Help!



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.