Solved

Sql Server Export errors

Posted on 2013-12-16
2
2,714 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

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Copy data to New Year 9 33
How can I find this data? 3 28
SQL works but want to get the XML node data separately 11 30
SQL query 7 18
Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
A couple of weeks ago, my client requested me to implement a SSIS package that allows them to download their files from a FTP server and archives them. Microsoft SSIS is the powerful tool which allows us to proceed multiple files at same time even w…
Using examples as well as descriptions, and references to Books Online, show the different Recovery Models available in SQL Server and explain, as well as show how full, differential and transaction log backups are performed
Viewers will learn how to use the SELECT statement in SQL to return specific rows and columns, with various degrees of sorting and limits in place.

733 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