Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2011-03-23
4
Medium Priority
?
1,832 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 2000 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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 we will get to know that how can we recover deleted data if it happens accidently. We really can recover deleted rows if we know the time when data is deleted by using the transaction log.
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…

926 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