Solved

How to convert between uni-code and non-unicode string data types

Posted on 2011-03-23
4
1,789 Views
Last Modified: 2012-05-11
I am trying to upload from excel spreadsheet two columns in text format, to a table in sql 2008 data type varchar

column names from excel to sql table are the same

code
description

Trying to upload SSIS Package Excel Source 2010 to OLE DB destination

Error messages on two columns

Error at Data Flow Task [OLE DB Desintation [151[]]: Column "Code" cannot convert between unicode and non-unicode string data types.

Error at Data Flow Task [OLE DB Destination [151]]: Columns "Description"  cannot convert between unicode and non uni-code string data types.


I have tried different string types but nothing is working. what should I format the spreadsheet two, numbers, text or general

0
Comment
Question by:Amanda Walshaw
  • 2
  • 2
4 Comments
 
LVL 17

Accepted Solution

by:
dbaSQL earned 500 total points
ID: 35204570
0
 

Author Comment

by:Amanda Walshaw
ID: 35204753
thanks for that followed those instructiosn but on my ole destination getting the following error

SSIS package "Package.dtsx" starting.
Information: 0x4004300A at Data Flow Task, SSIS.Pipeline: Validation phase is beginning.
Information: 0x4004300A at Data Flow Task 1, SSIS.Pipeline: Validation phase is beginning.
Warning: 0x802092A7 at Data Flow Task 1, OLE DB Destination [202]: Truncation may occur due to inserting data from data flow column "Code2" with a length of 50 to database column "Code" with a length of 2.
Information: 0x4004300A at Data Flow Task, SSIS.Pipeline: Validation phase is beginning.
Warning: 0x80049304 at Data Flow Task, SSIS.Pipeline: Warning: Could not open global shared memory to communicate with performance DLL; data flow performance counters are not available.  To resolve, run this package as an administrator, or on the system's console.
Warning: 0x80047076 at Data Flow Task, SSIS.Pipeline: The output column "Hierarchy 3 Code" (43) on output "Excel Source Output" (22) and component "Excel Source" (14) is not subsequently used in the Data Flow task. Removing this unused output column can increase Data Flow task performance.
Warning: 0x80047076 at Data Flow Task, SSIS.Pipeline: The output column "Hierachy 3 Description" (46) on output "Excel Source Output" (22) and component "Excel Source" (14) is not subsequently used in the Data Flow task. Removing this unused output column can increase Data Flow task performance.
Information: 0x40043006 at Data Flow Task, SSIS.Pipeline: Prepare for Execute phase is beginning.
Information: 0x40043007 at Data Flow Task, SSIS.Pipeline: Pre-Execute phase is beginning.
Error: 0xC0202009 at Data Flow Task, Excel Source [14]: SSIS Error Code DTS_E_OLEDBERROR.  An OLE DB error has occurred. Error code: 0x80040E37.
Error: 0xC02020E8 at Data Flow Task, Excel Source [14]: Opening a rowset for "Suggested$" failed. Check that the object exists in the database.
Error: 0xC004701A at Data Flow Task, SSIS.Pipeline: component "Excel Source" (14) failed the pre-execute phase and returned error code 0xC02020E8.
Information: 0x4004300B at Data Flow Task, SSIS.Pipeline: "component "PINVREP08" (137)" wrote 0 rows.
Information: 0x40043009 at Data Flow Task, SSIS.Pipeline: Cleanup phase is beginning.
Task failed: Data Flow Task
Warning: 0x80019002 at Package: SSIS Warning Code DTS_W_MAXIMUMERRORCOUNTREACHED.  The Execution method succeeded, but the number of errors raised (3) reached the maximum allowed (1); resulting in failure. This occurs when the number of errors reaches the number specified in MaximumErrorCount. Change the MaximumErrorCount or fix the errors.
SSIS package "Package.dtsx" finished: Failure.
0
 

Author Closing Comment

by:Amanda Walshaw
ID: 35204815
worked it out had to back through the entire ssis package put togehter
0
 
LVL 17

Expert Comment

by:dbaSQL
ID: 35206249
Glad you got it worked out.
0

Featured Post

Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
How to Install SSIS without the SQL Server CD 3 46
SqlAdvisor 2016 3 28
Help with SQL - TOP 10 by date and by group 13 34
Using CTE to insert records into a table 2 29
Long way back, we had to take help from third party tools in order to encrypt and decrypt data.  Gradually Microsoft understood the need for this feature and started to implement it by building functionality into SQL Server. Finally, with SQL 2008, …
In this article I will describe the Copy Database Wizard method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now