dbTalk Databases Forums  

Input and Output Parameters in DTS

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


Discuss Input and Output Parameters in DTS in the microsoft.public.sqlserver.dts forum.



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

Default Input and Output Parameters in DTS - 05-18-2004 , 03:16 PM






I am having a problem with paramters in DTS. I have an Execute SQL task that takes a count from a table. I then put that count into an output paramter. I then have another Execute SQL task to insert that count into another table in another database using an input parameter. The output of the count seems to work OK because I used an ActiveX script to display the count in a message box and it is correct. However, when I try to do the insert, I only get the first 3 numbers of the count. For example, the count is 899160 and only 899 gets inserted. I've tried integer vs. string data types and that hasn't made a difference. The lenght of the destination column is a varchar 500 so it's not a size issue (I even hard-coded the value 123456789 and the insert worked fine). Help!

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

Default RE: Input and Output Parameters in DTS - 05-19-2004 , 02:16 PM






I worked with this more today and found a solution. In my original insert statement I was not specifying the column names (i.e. Insert into tablename values (....)). Once I specified the column names it inserted the entire number (i.e insert into tablename (col1, col2, col3) values (1,2,3))

----- April wrote: ----

I am having a problem with paramters in DTS. I have an Execute SQL task that takes a count from a table. I then put that count into an output paramter. I then have another Execute SQL task to insert that count into another table in another database using an input parameter. The output of the count seems to work OK because I used an ActiveX script to display the count in a message box and it is correct. However, when I try to do the insert, I only get the first 3 numbers of the count. For example, the count is 899160 and only 899 gets inserted. I've tried integer vs. string data types and that hasn't made a difference. The lenght of the destination column is a varchar 500 so it's not a size issue (I even hard-coded the value 123456789 and the insert worked fine). 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.