Cannot map tinyint to a SSIS data type in resultset
If I have an executesql task that returns a result set, if the result set contains a tinyint, I can't find what SSIS data type to declare the variable as. They all cause errors.
December 16th, 2005 1:52am

Answered my own question have a look at my post http://www.sqljunkies.com/WebLog/simons/archive/2006/02/24/tinyint_in_SSIS.aspx [2009-10-03] The blog above has moved the link should now be http://sqlblogcasts.com/blogs/simons/archive/2006/02/24/SSIS-data-flows-and-tinyint.aspx
Free Windows Admin Tool Kit Click here and download it now
February 24th, 2006 11:06pm

This link does not work any longer. I having the same problem tinyint to SSIS data type and could use some assistance. Thanks!
October 3rd, 2008 9:11pm

I would imagine that you would have to wrap the SQL in a "CAST(x AS INT)", then use an Int32 SSIS type.
Free Windows Admin Tool Kit Click here and download it now
October 3rd, 2008 9:15pm

Trying to avoid this casting. I will also be writing this variable to the table which has the column defined as a tinyint. I would imagine there might be some problems doing that too if it cannot be handled as a tinyint dt in SSIS.
October 3rd, 2008 9:42pm

The link should be http://sqlblogcasts.com/blogs/simons/archive/2006/02/24/SSIS-data-flows-and-tinyint.aspx
Free Windows Admin Tool Kit Click here and download it now
October 5th, 2008 3:59pm

Thanks. The article seems to indicate a data type of DT_UI1 (single byte un-signed integer); However, I do not see that variable type in the Data Type drop down for SSIS package variables. Did I miss something?
October 24th, 2008 1:56am

Try Byte. One of the great things about SSIS is the numerous lists of data types
Free Windows Admin Tool Kit Click here and download it now
October 24th, 2008 2:29am

Byte does not work either, at least in 2005, so holen1Master's original question is still unanswered. If you are trying to assign a tinyint value from a sql result set to an SSIS variable, there is no compatible SSIS variable
March 16th, 2011 6:04pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics