dbTalk Databases Forums  

SSIS SQL task - problem with variable assignment

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


Discuss SSIS SQL task - problem with variable assignment in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
=?Utf-8?B?dGhhYnJvd24=?=
 
Posts: n/a

Default SSIS SQL task - problem with variable assignment - 06-01-2006 , 04:12 PM






Hello,
In SSIS projects, when creating a variable, it seems the data types are
limited... I have an SQL task as follows:
SELECT SUM(Shares) AS sumshares, SUM(TransAmtUSD) AS sumusd
FROM Transactions

TransAmtUSD is defined as money type on the database, but with my SSIS user
variable sumUSDbefore defined as Double (there's no choice of float or
money),
I receive the following error when running the package:
[Execute SQL Task] Error: An error occurred while assigning a value to
variable "sumUSDbefore": "The type of the value being assigned to variable
"User::sumUSDbefore" differs from the current variable type. Variables may
not change type during execution. Variable types are strict, except for
variables of type Object. ".

Any suggestions?

Thank you,

Thomas

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.