Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 Bytes and SSIS Expressions

Author  Topic 

abarringer
Starting Member

13 Posts

Posted - 2006-02-16 : 15:23:20

I'm trying to import a text file using SQL2005 SSIS that contains a byte column with values 0-F.

I need to use the derived column expression editor to "and" this column.

Similar to this Expression

((4 & mybytecolumn) == 1)?1:0

where mybytecolumn = "C"k

Do any of you know what to cast mybytecolumn to that will support this operation? Casting mybytecolumn as a number works as long as my byte does not exceed 9 (such as A-F).

Thanks for your help,
Andrew

   

- Advertisement -