Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

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

Posted on 2011-03-23
4
Medium Priority
?
1,829 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

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

Hi all, It is important and often overlooked to understand “Database properties”. Often we see questions about "log files" or "where is the database" and one of the easiest ways to get general information about your database is to use “Database p…
Use this article to create a batch file to backup a Microsoft SQL Server database to a Windows folder.  The folder can be on the local hard drive or on a network share.  This batch file will query the SQL server to get the current date & time and wi…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…

704 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