dbTalk Databases Forums  

Newbie:Weird DTS problem when exporting to .txt file

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


Discuss Newbie:Weird DTS problem when exporting to .txt file in the microsoft.public.sqlserver.dts forum.



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

Default Newbie:Weird DTS problem when exporting to .txt file - 09-22-2006 , 09:21 AM






Hi. I have a simple DTS package set up with a datasource, transform data
(for my query) linking to a destination text. I also have a global
variable of type decimal, which I use a parameter in my query.


If I run my query in QA it works fine or if I replace the parameter with
a hard-coded value.Otherwise it does not.

What is even weirder is if I replace the query with a different one
using the same parameter it also works.

Finally, the filter column, which is used for comparison with the param,
is also decimal.

I call the package like this:

dtsrun /S "MyServer" /Uuser /Ppwd /N "Test Package" /A
"client_id":14=22222

I would really love any suggestions.

Thanks.


*** Sent via Developersdex http://www.developersdex.com ***

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

Default Re: Newbie:Weird DTS problem when exporting to .txt file - 09-22-2006 , 09:32 AM






"Wierd" <> to an Error message

Redirect the DTSRUN stdio to a text file and post error?

Quote:
log_dts_run.txt


Rick Bond wrote:
Quote:
Hi. I have a simple DTS package set up with a datasource, transform data
(for my query) linking to a destination text. I also have a global
variable of type decimal, which I use a parameter in my query.


If I run my query in QA it works fine or if I replace the parameter with
a hard-coded value.Otherwise it does not.

What is even weirder is if I replace the query with a different one
using the same parameter it also works.

Finally, the filter column, which is used for comparison with the param,
is also decimal.

I call the package like this:

dtsrun /S "MyServer" /Uuser /Ppwd /N "Test Package" /A
"client_id":14=22222

I would really love any suggestions.

Thanks.


*** Sent via Developersdex http://www.developersdex.com ***


Reply With Quote
  #3  
Old   
Rick Bond
 
Posts: n/a

Default Re: Newbie:Weird DTS problem when exporting to .txt file - 09-22-2006 , 01:44 PM



Hi, thanks for the reply. I really did not think that I needed to
include logs since I was not getting errors generated. I was just not
getting any data transferred...even though the query works in QA.

However, I got a work around by calling a SP, in the transform data
task. I just found that with the joins in the query the package was not
returning data but if I removed them, then it worked. Not sure why. I
would still like to know what is wrong but at least the work around
works.


*** Sent via Developersdex http://www.developersdex.com ***

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.