Solved

Sql Server Export errors

Posted on 2013-12-16
2
2,735 Views
Last Modified: 2016-02-10
Experts - I am getting this error when attempting to export data from Sql Server 2012 Express:

Error 0xc020802e: Data Flow Task 1: The data type for "Destination - Export test_csv.Inputs[Flat File Destination Input].Columns[Title]" is DT_NTEXT, which is not supported with ANSI files. Use DT_TEXT instead and convert the data to DT_NTEXT using the data conversion component.
 (SQL Server Import and Export Wizard)


What is the correct method (and in what application - sql server or the import/export wizard) to implement the solution in the error message:

Use DT_TEXT instead and convert the data to DT_NTEXT using the data conversion component.

I have several columns that are nvarchar(4000) in my SQL Server table which I suspect are causing the error. The Export Wizard identifies these columns are Unicode string [DT_WSTR] data type.

3 other columns are numeric and it identifies them as either eight-buyte integer [DT_I8] or double-precision float [DT-R8).

Thanks in advance.
0
Comment
Question by:bobinorlando
[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 Comments
 
LVL 15

Accepted Solution

by:
JimFive earned 500 total points
ID: 39724344
Assuming you are using the Export wizard you could do this:
Create a View and cast all Nvarchar columns to varchar, then export the view to the csv file.  If you are actually using unicode in the data you are going to lose it.

If you are creating a solution in the Business Intelligence Designer you can create a Data conversion item inside your data flow task.
0
 
LVL 1

Author Closing Comment

by:bobinorlando
ID: 39746339
Creating a view in SSMS did the trick! Thank you!!
0

Featured Post

Raise the IQ of Your IT Alerts

From IT major incidents to manufacturing line slowdowns, every business process generates insights that need to reach the people required to take action. You need a platform that integrates with your business tools to create fully enabled DevOps toolchains.

You need xMatters.

Question has a verified solution.

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

The Delta outage: 650 cancelled flights, more than 1200 delayed flights, thousands of frustrated customers, tens of millions of dollars in damages – plus untold reputational damage to one of the world’s most trusted airlines. All due to a catastroph…
For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
Viewers will learn how the fundamental information of how to create a table.

695 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