I know it's a common issue, but I still didn't find a solution. I need to export data from SQL Server 2012 to an Excel destination using SSIS.
The value of one of the columns is going to be more that 255 characters long, so the cell in Excel has to accept more than 255 characters as well.
That's why I got an error.
I changed the registry key to 0, but it still doesn't work.
I tried to create a dummy column in Excel, but the data looks weird.
Are there any other solutions that I am not aware of?
This is what I usually do as a workaround in such cases.
I try to use SQL query as source, so this may work only in that case. So assuming you are picking up data from a view or table (say tbl)
so instead of
select ID,Name,DetailDescription from tbl
do (assuming DetailDescription
is the column which can contain huge data)
select
ID =NULL,
Name= N'',
DetailDescription =REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(N'__________','_','_____'),'_','_____'),'_','_____'),'_','_____'),'_','_____')
union
select ID,Name,DetailDescription from tbl
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With