dataflowtask

How do I get SSIS Data Flow to put '0.00' in a flat file?

感情迁移 提交于 2019-12-01 00:09:45
问题 I have an SSIS package with a Data Flow that takes an ADO.NET data source (just a small table), executes a select * query, and outputs the query results to a flat file (I've also tried just pulling the whole table and not using a SQL select). The problem is that the data source pulls a column that is a Money datatype, and if the value is not zero, it comes into the text flat file just fine (like '123.45'), but when the value is zero, it shows up in the destination flat file as '.00'. I need

Is it possible to perform a “LIKE” statement in a SSIS Expression?

泪湿孤枕 提交于 2019-11-28 08:25:44
I'm using a Derived Column Task to change column data using a CASE WHEN statement. However, I need to be able to say.. SQL CODE WOULD BE: CASE WHEN Column01 LIKE '%i%' THEN '0' ELSE '1' END In SSIS Expression Language that would be: [Column01] == "i" ? "0" : "1" (that's for equals i, not, LIKE %i%. Is it possible to use a LIKE operator? I believe you'll want to use the FINDSTRING function . FINDSTRING(character_expression, searchstring, occurrence) ... FINDSTRING returns null if either character_expression or searchstring are null. Guilherme de Jesus Santos I know it is an old question, but