Solved

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

Posted on 2011-03-23
4
1,781 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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Suggested Solutions

I have written a PowerShell script to "walk" the security structure of each SQL instance to find:         Each Login (Windows or SQL)             * Its Server Roles             * Every database to which the login is mapped             * The associated "Database User" for this …
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 video discusses moving either the default database or any database to a new volume.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

747 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

9 Experts available now in Live!

Get 1:1 Help Now