marketoneDev
asked on
How do I get stop Excel columns from changing from TEXT to GENERAL when my data task within SSIS writes from an OLEDB to my Excel template file?
I have an SSIS package (2008 R2) where I have a SQL Server source writing to an Excel file. The Excel file is a template and all of the columns are TEXT. After the data is written to the Excel file the cells that now contain data have changed from TEXT to GENERAL. How do I prevent this so that all cells remain TEXT.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
If SSIS doesn't recognise the xlsm format then you could put the code into an addin and manually run the code when required.
ASKER
The suggestion to run a simple macro to convert the cells back to Text is what I needed. However, I cannot run this manually as it is part of a scheduled SSIS package and SSIS does not recognize an .xslm file. I'm going to try to use a script task within SSIS using c# to see if that will work.
ASKER