Drop Table

Support Forum for database administrators and web based access to important newsgroups related to databases
Register on Database Support Forum Edit your profileCalendarFind other Database Support forum membersFrequently Asked QuestionsSearch this forum -> 
For Database admins: Free Database-related Magazines Now Free shipping to Texas


Post New Thread










Thread
Author

SQL2005 SSIS problem when exporting data to Excel
Hi

I'm trying to design a fairly simple SSIS package, that just selects
some data from a database and then export these data to an Excel sheet.
When I run/debug the package, it fails with a
"Error at Data Flow Task [Excel Destination [1741]]: Column "xxxx"
cannot convert between unicode and non-unicode string data types."

It does that for all the string columns I have in the export.

In the package, I have an OLE DB Source with a SQL query to find the
data. I then have a Data Flow Task to an Excel Destination.
I've checked the Input/Output properties for the OLE DB source, and in
here all the columns are of type "String [DT_STR]". In the Data Flow
Metadata view, it also reports the columns as being DT_STR.

If I then look at the Excel Destination Input/Output columns, the
datatype of the columns in "Excel Destination Input - > External
Columns" are Unicode string[DT_WSTR] where the type in "Excel
Destination Input -> Input Columns" are of type DT_STR.

I have tried to change the External COlumns definition to "String
[DT_STR] but it doesn't seems to make any difference. Also when I go
back to check it, it has set back the type to Unikcode....

How do others do this simple task to export some data to Excel without
running into this problem? I have tried everything I can think of, but
with no luck.

Regards
Steen

Report this thread to moderator Post Follow-up to this message
Old Post
Steen Persson (DK)
03-31-06 02:23 PM


Sponsored Links





Last Thread Next Thread
Post New Thread

MS SQL Server archive

Show a Printable Version Email This Page to Someone! Receive updates to this thread
Microsoft SQL Server
Access database support
PostgreSQL Replication
SQL Server ODBC
FoxPro Support
PostgreSQL pgAdmin
SQL Server Clustering
MySQL ODBC
Web Applications with dBASE
SQL Server CE
MySQL++
Sybase Database Support
MS SQL Full Text Search
PostgreSQL Administration
SQL Anywhere support
DB2 UDB Database
Paradox Database Support
Filemaker Database
Berkley DB
SQL 2000/2000i database
ASE Database
Forum Jump:
All times are GMT. The time now is 08:17 PM.

 
Mobile devices forum | Database support forum archive




Copyrights DropTable.com Database Support Forum 2004 - 2006