Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

Execute Sql Task; Map a variable of object type to a parameter of LONG type and not being able to return NULL

$
0
0

I have a package variable, SomeID, of data type Object; Then I use an Execute Sql Task to return into it a value from some field in a table of data type integer; I map the variable to a parameter of type LONG. The goal is to be able to return NULL along with integer values and then pass the variable further to another Execute Sql Task where I can test it agains NULL.

I can't do it; if the field value is NULL the variable will get back 0. Furthermore in the parameter mapping screen of the Execute Sql Type there is no OBJECT data type for the parameters and to be honest I can't figure out what kind of types are those; they are not mapping to the list of data types supported for SSIS package variable but neither to let's say the data provider chosen in the Source of the Execute Sql Task.

Anyone has any idea about how to achieve that? I don't want those solutions like mapping NULL to some special values (like 0 or -1 in case of INTEGER).

Thanks in advance

Iulian


Viewing all articles
Browse latest Browse all 24688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>