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

2008 - Derived Column Tranformation Editor NVARCHAR(MAX) ADO --> Flat file

$
0
0

I'm having to revamp a table that was imported from Access and the bulk of the default fielding was set to NVARCHAR and we really don't want the overhead going forward because it buys us nothing for this use case. I've restructured the table in question how I would like to see it laid out and would like to migrate the data over from the old table to the new and just for simplicity wanted to move it to a text file first. I have several column merges and splits that need to take place so it will just make life easier to break it into phases and control that process at some points in text then import it into the new table I've have built.

The issue is there are four fields defined as NVARCHAR(MAX) and I am not seeing a way in 'Derived Colum Transformation Editor' to deal with getting this to a usable text format for output to a flat file destination.

Can someone suggest an expression that would work with the NVARCHAR(MAX) to do this?  Below is a clip of my conundrum:



The Expressions in black (sussessful) are NVARCHAR(##) where ## is a specific numeric value. The one in red is of course a failure and is an NVARCHAR(MAX).

Thanks,

Ken...


Viewing all articles
Browse latest Browse all 24688

Trending Articles



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