The sum of all SQL Server matter that exist,
and the space in which all SQL Server events
occur or could occur.
Welcome to SQL Server Universe.com Sign in | Join | Help
in
Home SS SLUG Forums Articles Photos Downloads

SSIS variables

Last post 09-21-2007, 5:29 by Gogula G. Aryalingam. 1 replies.
Sort Posts: Previous
  • SSIS variables

     09-21-2007, 4:33

    • Joined on 05-07-2007
    • Colombo
    • Posts 17
    • Points 0
    • Top 10 Contributor
      Male

    hi

    In SSIS, What should be the data type of the Variable, when you want to store (DT_NUMERIC) data type.

    cheers!

    Supun 

  • Re: SSIS variables

     09-21-2007, 5:29

    • Joined on 11-22-2006
    • Colombo, Sri Lanka
    • Posts 230
    • Points 0
    • Top 10 Contributor
      Male

    Hi,

    There is no numeric data type for SSIS Variables that directly maps to DT_NUMERIC. Therefore, you could use one of the available numeric data types such as Int32, Int64 (which are integers) or Single and Double (which are floating point).

    But you have to first check on the precision and the scale of the original numeric variable in order to chose the appropriate SSIS Variable data type. For example, if the scale is 0, then an integer variable might suit your need, else you may choose a floating point data type. Again you would have to check on the precision to see how big the variable has to be Int64 or Double for a bigger data. Refer Books Online for data type capacities.

    You may sometimes run into problems if the numeric data type is of a size larger than what the available SSIS Variables types can handle.

    Regards


    Gogula G. Aryalingam (MVP - SQL Server)

    DB Antics

View as RSS news feed in XML

(Best viewed with a resolution of more than 1024 * 768)

Powered by Community Server, by Telligent Systems