I am new to the Integration Services and have a question. I need to export some data to a flat file. I set up a project and have a OLE DB Source object that I wrote a query to grab the data. I then pass that data to a Flat File Destination object. My question is that in the database one of the fields is stored at True or False, but in the flat file I need for it to be -1 or 0. Any help would be appreciated.
Thanks
The easiest way to do this is in your data set. Use a sql CASE statement to read the value and return the appropriate values to the column for TRUE and FALSE.
Hope that helps.
|||That will work perfect, Thank you.
|||
You can also do the same thing in a derived column transform using:
Code Snippet
[YourColumn] ? -1 : 0
assuming 0 is false and -1 is true.
没有评论:
发表评论